mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2025-01-03 06:35:36 +01:00
wscript: print modules help before engine common options
This commit is contained in:
parent
248be5458f
commit
6cb3b2f01a
6
wscript
6
wscript
@ -99,6 +99,8 @@ REFDLLS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
def options(opt):
|
def options(opt):
|
||||||
|
opt.load('reconfigure compiler_optimizations xshlib xcompile compiler_cxx compiler_c sdl2 clang_compilation_database strip_on_install waf_unit_test msdev msvs msvc subproject')
|
||||||
|
|
||||||
grp = opt.add_option_group('Common options')
|
grp = opt.add_option_group('Common options')
|
||||||
|
|
||||||
grp.add_option('-d', '--dedicated', action = 'store_true', dest = 'DEDICATED', default = False,
|
grp.add_option('-d', '--dedicated', action = 'store_true', dest = 'DEDICATED', default = False,
|
||||||
@ -147,16 +149,12 @@ def options(opt):
|
|||||||
grp.add_option('--enable-fuzzer', action = 'store_true', dest = 'ENABLE_FUZZER', default = False,
|
grp.add_option('--enable-fuzzer', action = 'store_true', dest = 'ENABLE_FUZZER', default = False,
|
||||||
help = 'enable building libFuzzer runner [default: %default]' )
|
help = 'enable building libFuzzer runner [default: %default]' )
|
||||||
|
|
||||||
opt.load('compiler_optimizations subproject')
|
|
||||||
|
|
||||||
for i in SUBDIRS:
|
for i in SUBDIRS:
|
||||||
if not i.is_exists(opt):
|
if not i.is_exists(opt):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
opt.add_subproject(i.name)
|
opt.add_subproject(i.name)
|
||||||
|
|
||||||
opt.load('xshlib xcompile compiler_cxx compiler_c sdl2 clang_compilation_database strip_on_install waf_unit_test msdev msvs msvc reconfigure')
|
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
conf.load('fwgslib reconfigure compiler_optimizations')
|
conf.load('fwgslib reconfigure compiler_optimizations')
|
||||||
conf.env.MSVC_TARGETS = ['x86' if not conf.options.ALLOW64 else 'x64']
|
conf.env.MSVC_TARGETS = ['x86' if not conf.options.ALLOW64 else 'x64']
|
||||||
|
Loading…
Reference in New Issue
Block a user