mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
SCons: Convert SConstruct file to Unix line endings
All other SCons files appear to have Unix line endings
This commit is contained in:
parent
db2c35a57c
commit
e94a2ebd3a
1 changed files with 68 additions and 68 deletions
136
SConstruct
136
SConstruct
|
@ -1,68 +1,68 @@
|
||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# GtkRadiant build scripts
|
# GtkRadiant build scripts
|
||||||
# TTimo <ttimo@ttimo.net>
|
# TTimo <ttimo@ttimo.net>
|
||||||
# http://scons.org/
|
# http://scons.org/
|
||||||
|
|
||||||
import sys, os, platform, pickle
|
import sys, os, platform, pickle
|
||||||
|
|
||||||
import utils, config
|
import utils, config
|
||||||
|
|
||||||
conf_filename = 'site.sconf'
|
conf_filename = 'site.sconf'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sys.argv.index( '-h' )
|
sys.argv.index( '-h' )
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
Help(
|
Help(
|
||||||
"""
|
"""
|
||||||
======================================================================
|
======================================================================
|
||||||
GtkRadiant build system quick help
|
GtkRadiant build system quick help
|
||||||
|
|
||||||
You need scons v0.97.0d20070918.r2446 or newer
|
You need scons v0.97.0d20070918.r2446 or newer
|
||||||
|
|
||||||
Default build (release), just run scons at the toplevel
|
Default build (release), just run scons at the toplevel
|
||||||
|
|
||||||
debug build:
|
debug build:
|
||||||
$ scons config=debug
|
$ scons config=debug
|
||||||
|
|
||||||
build using 8 parallel build jobs
|
build using 8 parallel build jobs
|
||||||
but do not download any game packs
|
but do not download any game packs
|
||||||
$ scons -j8 --no-packs
|
$ scons -j8 --no-packs
|
||||||
======================================================================
|
======================================================================
|
||||||
""" )
|
""" )
|
||||||
Return()
|
Return()
|
||||||
|
|
||||||
AddOption('--no-packs',
|
AddOption('--no-packs',
|
||||||
dest='no_packs',
|
dest='no_packs',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help="don't fetch game packs")
|
help="don't fetch game packs")
|
||||||
|
|
||||||
active_configs = []
|
active_configs = []
|
||||||
|
|
||||||
# load up configurations from the save file
|
# load up configurations from the save file
|
||||||
if ( os.path.exists( conf_filename ) ):
|
if ( os.path.exists( conf_filename ) ):
|
||||||
f = open( conf_filename )
|
f = open( conf_filename )
|
||||||
print( 'reading saved configuration from site.conf' )
|
print( 'reading saved configuration from site.conf' )
|
||||||
try:
|
try:
|
||||||
while ( True ):
|
while ( True ):
|
||||||
c = pickle.load( f )
|
c = pickle.load( f )
|
||||||
active_configs.append( c )
|
active_configs.append( c )
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# read the command line and build configs
|
# read the command line and build configs
|
||||||
config_statements = sys.argv[1:]
|
config_statements = sys.argv[1:]
|
||||||
active_configs = config.ConfigParser().parseStatements( active_configs, config_statements )
|
active_configs = config.ConfigParser().parseStatements( active_configs, config_statements )
|
||||||
assert( len( active_configs ) >= 1 )
|
assert( len( active_configs ) >= 1 )
|
||||||
|
|
||||||
# save the config
|
# save the config
|
||||||
print( 'saving updated configuration' )
|
print( 'saving updated configuration' )
|
||||||
f = open( conf_filename, 'wb' )
|
f = open( conf_filename, 'wb' )
|
||||||
for c in active_configs:
|
for c in active_configs:
|
||||||
pickle.dump( c, f, -1 )
|
pickle.dump( c, f, -1 )
|
||||||
|
|
||||||
print( 'emit build rules' )
|
print( 'emit build rules' )
|
||||||
for c in active_configs:
|
for c in active_configs:
|
||||||
print( 'emit configuration: %s' % repr( c ) )
|
print( 'emit configuration: %s' % repr( c ) )
|
||||||
c.emit()
|
c.emit()
|
||||||
|
|
Loading…
Reference in a new issue