mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 13:51:45 +08:00
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:
+1
-8
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user