mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 10:30:00 +00:00
wscript: remove useless option type specifier
This commit is contained in:
parent
2c17dce25b
commit
5e17b4bf17
@ -15,12 +15,10 @@ import os
|
|||||||
|
|
||||||
def options(opt):
|
def options(opt):
|
||||||
grp = opt.add_option_group('SDL2 options')
|
grp = opt.add_option_group('SDL2 options')
|
||||||
grp.add_option(
|
grp.add_option('--sdl2', action='store', dest = 'SDL2_PATH', default = None,
|
||||||
'--sdl2', action='store', type='string', dest = 'SDL2_PATH', default = None,
|
|
||||||
help = 'path to precompiled SDL2 library(required for Windows)')
|
help = 'path to precompiled SDL2 library(required for Windows)')
|
||||||
|
|
||||||
grp.add_option(
|
grp.add_option('--skip-sdl2-sanity-check', action='store_false', default = True, dest='SDL2_SANITY_CHECK',
|
||||||
'--skip-sdl2-sanity-check', action='store_false', default = True, dest='SDL2_SANITY_CHECK',
|
|
||||||
help = 'skip checking SDL2 sanity')
|
help = 'skip checking SDL2 sanity')
|
||||||
|
|
||||||
def my_dirname(path):
|
def my_dirname(path):
|
||||||
|
@ -111,7 +111,7 @@ class Android:
|
|||||||
|
|
||||||
def options(opt):
|
def options(opt):
|
||||||
android = opt.add_option_group('Android options')
|
android = opt.add_option_group('Android options')
|
||||||
android.add_option('--android', action='store', type='string', dest='ANDROID_OPTS', default=None,
|
android.add_option('--android', action='store', dest='ANDROID_OPTS', default=None,
|
||||||
help='enable building for android, format: --android=<arch>,<toolchain>,<api>, example: --android=arm,4.9,26')
|
help='enable building for android, format: --android=<arch>,<toolchain>,<api>, example: --android=arm,4.9,26')
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
|
@ -10,16 +10,13 @@ top = '.'
|
|||||||
|
|
||||||
def options(opt):
|
def options(opt):
|
||||||
grp = opt.add_option_group('VGUI options')
|
grp = opt.add_option_group('VGUI options')
|
||||||
grp.add_option(
|
grp.add_option('--vgui', action = 'store', dest = 'VGUI_DEV',
|
||||||
'--vgui', action = 'store', type='string', dest = 'VGUI_DEV',
|
|
||||||
help = 'path to vgui-dev repo', default='' )
|
help = 'path to vgui-dev repo', default='' )
|
||||||
|
|
||||||
grp.add_option(
|
grp.add_option('--disable-vgui', action = 'store_true', dest = 'NO_VGUI',
|
||||||
'--disable-vgui', action = 'store_true', dest = 'NO_VGUI',
|
|
||||||
help = 'disable vgui_support', default=False )
|
help = 'disable vgui_support', default=False )
|
||||||
|
|
||||||
grp.add_option(
|
grp.add_option('--skip-vgui-sanity-check', action = 'store_false', dest = 'VGUI_SANITY_CHECK',
|
||||||
'--skip-vgui-sanity-check', action = 'store_false', dest = 'VGUI_SANITY_CHECK',
|
|
||||||
help = 'skip checking VGUI sanity', default=True )
|
help = 'skip checking VGUI sanity', default=True )
|
||||||
return
|
return
|
||||||
|
|
||||||
|
18
wscript
18
wscript
@ -39,28 +39,22 @@ def subdirs():
|
|||||||
def options(opt):
|
def options(opt):
|
||||||
grp = opt.add_option_group('Common options')
|
grp = opt.add_option_group('Common options')
|
||||||
|
|
||||||
grp.add_option(
|
grp.add_option('--build-type', action='store', dest='BUILD_TYPE', default = None,
|
||||||
'--build-type', action='store', type='string', dest='BUILD_TYPE', default = None,
|
|
||||||
help = 'build type: debug, release or none(custom flags)')
|
help = 'build type: debug, release or none(custom flags)')
|
||||||
|
|
||||||
grp.add_option(
|
grp.add_option('--dedicated', action = 'store_true', dest = 'DEDICATED', default = False,
|
||||||
'--dedicated', action = 'store_true', dest = 'DEDICATED', default = False,
|
|
||||||
help = 'build Xash Dedicated Server(XashDS)')
|
help = 'build Xash Dedicated Server(XashDS)')
|
||||||
|
|
||||||
grp.add_option(
|
grp.add_option( '--single-binary', action = 'store_true', dest = 'SINGLE_BINARY', default = False,
|
||||||
'--single-binary', action = 'store_true', dest = 'SINGLE_BINARY', default = False,
|
|
||||||
help = 'build single "xash" binary instead of xash.dll/libxash.so (forced for dedicated)')
|
help = 'build single "xash" binary instead of xash.dll/libxash.so (forced for dedicated)')
|
||||||
|
|
||||||
grp.add_option(
|
grp.add_option('--64bits', action = 'store_true', dest = 'ALLOW64', default = False,
|
||||||
'--64bits', action = 'store_true', dest = 'ALLOW64', default = False,
|
|
||||||
help = 'allow targetting 64-bit engine')
|
help = 'allow targetting 64-bit engine')
|
||||||
|
|
||||||
grp.add_option(
|
grp.add_option('--win-style-install', action = 'store_true', dest = 'WIN_INSTALL', default = False,
|
||||||
'--win-style-install', action = 'store_true', dest = 'WIN_INSTALL', default = False,
|
|
||||||
help = 'install like Windows build, ignore prefix, useful for development')
|
help = 'install like Windows build, ignore prefix, useful for development')
|
||||||
|
|
||||||
grp.add_option(
|
grp.add_option('--skip-subprojects', action='store', dest = 'SKIP_SUBDIRS', default=None,
|
||||||
'--skip-subprojects', action='store', type = 'string', dest = 'SKIP_SUBDIRS', default=None,
|
|
||||||
help = 'don\'t recurse into specified subprojects. Current subdirs: ' + str(subdirs()))
|
help = 'don\'t recurse into specified subprojects. Current subdirs: ' + str(subdirs()))
|
||||||
|
|
||||||
for i in SUBDIRS:
|
for i in SUBDIRS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user