add command line option to not download game packs

This commit is contained in:
Thomas Debesse 2018-01-28 03:10:45 +01:00
parent e3bf363a63
commit 0392cb1e56
3 changed files with 12 additions and 4 deletions

View File

@ -18,6 +18,9 @@ proj = utils.vcxproj( os.path.join( GetLaunchDir(), 'radiant/radiant.vcxproj' )
radiant = env.Program( 'radiant.bin', lib_objects + [ os.path.join( 'radiant', i ) for i in proj.getSourceFiles() ] ) radiant = env.Program( 'radiant.bin', lib_objects + [ os.path.join( 'radiant', i ) for i in proj.getSourceFiles() ] )
AddOption('--no-packs',
dest='no_packs',
action='store_true',
help="don't fetch game packs")
Return( 'radiant' ) Return( 'radiant' )

View File

@ -17,7 +17,7 @@ else:
Help( Help(
""" """
====================================================================== ======================================================================
ZeroRadiant 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
@ -25,6 +25,10 @@ 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
but do not download any game packs
$ scons -j8 --no-packs
====================================================================== ======================================================================
""" ) """ )
Return() Return()

View File

@ -298,7 +298,8 @@ class Config:
pass pass
else: else:
# special case, fetch external paks under the local install directory # special case, fetch external paks under the local install directory
if not Environment().GetOption('clean'): env = Environment()
if not env.GetOption('clean') and not env.GetOption('no_packs'):
self.FetchGamePaks( self.install_directory ) self.FetchGamePaks( self.install_directory )
# NOTE: unrelated to self.setup_platforms - grab support files and binaries and install them # NOTE: unrelated to self.setup_platforms - grab support files and binaries and install them
if ( self.platform == 'Windows' ): if ( self.platform == 'Windows' ):