|
|
|
@ -39,28 +39,22 @@ def subdirs():
@@ -39,28 +39,22 @@ def subdirs():
|
|
|
|
|
def options(opt): |
|
|
|
|
grp = opt.add_option_group('Common options') |
|
|
|
|
|
|
|
|
|
grp.add_option( |
|
|
|
|
'--build-type', action='store', type='string', dest='BUILD_TYPE', default = None, |
|
|
|
|
grp.add_option('--build-type', action='store', dest='BUILD_TYPE', default = None, |
|
|
|
|
help = 'build type: debug, release or none(custom flags)') |
|
|
|
|
|
|
|
|
|
grp.add_option( |
|
|
|
|
'--dedicated', action = 'store_true', dest = 'DEDICATED', default = False, |
|
|
|
|
grp.add_option('--dedicated', action = 'store_true', dest = 'DEDICATED', default = False, |
|
|
|
|
help = 'build Xash Dedicated Server(XashDS)') |
|
|
|
|
|
|
|
|
|
grp.add_option( |
|
|
|
|
'--single-binary', action = 'store_true', dest = 'SINGLE_BINARY', default = False, |
|
|
|
|
grp.add_option( '--single-binary', action = 'store_true', dest = 'SINGLE_BINARY', default = False, |
|
|
|
|
help = 'build single "xash" binary instead of xash.dll/libxash.so (forced for dedicated)') |
|
|
|
|
|
|
|
|
|
grp.add_option( |
|
|
|
|
'--64bits', action = 'store_true', dest = 'ALLOW64', default = False, |
|
|
|
|
grp.add_option('--64bits', action = 'store_true', dest = 'ALLOW64', default = False, |
|
|
|
|
help = 'allow targetting 64-bit engine') |
|
|
|
|
|
|
|
|
|
grp.add_option( |
|
|
|
|
'--win-style-install', action = 'store_true', dest = 'WIN_INSTALL', default = False, |
|
|
|
|
grp.add_option('--win-style-install', action = 'store_true', dest = 'WIN_INSTALL', default = False, |
|
|
|
|
help = 'install like Windows build, ignore prefix, useful for development') |
|
|
|
|
|
|
|
|
|
grp.add_option( |
|
|
|
|
'--skip-subprojects', action='store', type = 'string', dest = 'SKIP_SUBDIRS', default=None, |
|
|
|
|
grp.add_option('--skip-subprojects', action='store', dest = 'SKIP_SUBDIRS', default=None, |
|
|
|
|
help = 'don\'t recurse into specified subprojects. Current subdirs: ' + str(subdirs())) |
|
|
|
|
|
|
|
|
|
for i in SUBDIRS: |
|
|
|
|