wscript: check for dedicated or singlebinary before recurse into subdirectory, add a chance to skip some subprojects on configuration stage

This commit is contained in:
Alibek Omarov
2019-02-19 17:49:09 +03:00
parent 1b372115a5
commit 2c17dce25b
5 changed files with 82 additions and 30 deletions
+1 -8
View File
@@ -14,10 +14,6 @@ def options(opt):
'--enable-bsp2', action = 'store_true', dest = 'SUPPORT_BSP2_FORMAT', default = False,
help = 'build engine with BSP2 map support(recommended for Quake, breaks compatibility!)')
grp.add_option(
'--single-binary', action = 'store_true', dest = 'SINGLE_BINARY', default = None,
help = 'build single "xash" binary instead of xash.dll/libxash.so (default for dedicated)')
grp.add_option(
'--stdin-input', action = 'store_true', dest = 'USE_SELECT', default = None,
help = 'enable console input from stdin (default for dedicated)')
@@ -38,10 +34,7 @@ def configure(conf):
conf.fatal('SDL2 not availiable! If you want to build dedicated server, specify --dedicated')
conf.env.append_unique('DEFINES', 'XASH_SDL')
if conf.options.SINGLE_BINARY == None:
conf.options.SINGLE_BINARY = conf.options.DEDICATED # We don't need game launcher on dedicated
conf.env.SINGLE_BINARY = conf.options.SINGLE_BINARY
if conf.options.SINGLE_BINARY:
if conf.env.SINGLE_BINARY:
conf.env.append_unique('DEFINES', 'SINGLE_BINARY')
if conf.options.USE_SELECT == None: