wscript: proper default showing in help

This commit is contained in:
Alibek Omarov 2019-10-11 03:46:17 +03:00
parent 8889bda261
commit ae624801ac
5 changed files with 22 additions and 24 deletions

View File

@ -9,11 +9,9 @@ top = '.'
def options(opt):
grp = opt.add_option_group('Engine options')
grp.add_option('--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('--stdin-input', action = 'store_true', dest = 'USE_SELECT', default = None,
help = 'enable console input from stdin (default for dedicated)')
grp.add_option('--enable-stdin-input', action = 'store_true', dest = 'USE_SELECT', default = False,
help = 'enable console input from stdin (always enabled for dedicated) [default: %default]')
opt.load('sdl2')

2
mainui

@ -1 +1 @@
Subproject commit c95b7e59be219dc1acb4ec95fd6fc2b75f4393ab
Subproject commit 26fc03f7a8dc09d446773a7d8224da18089628cd

View File

@ -10,17 +10,17 @@ top = '.'
def options(opt):
grp = opt.add_option_group('ref_gl options')
grp.add_option('--enable-static-gl', action='store_true', dest='GL_STATIC',
help = 'don\'t load opengl in runtime, instead link to libGL directly(default: False)')
grp.add_option('--enable-static-gl', action='store_true', dest='GL_STATIC', default=False,
help = 'enable direct linking to opengl [default: %default]')
grp.add_option('--enable-gles1', action='store_true', dest='NANOGL',
help = 'enable gles1 renderer by linking nanogl statically(put source to ref_gl directory)')
grp.add_option('--enable-gles1', action='store_true', dest='NANOGL', default=False,
help = 'enable gles1 renderer [default: %default]')
grp.add_option('--enable-gles2', action='store_true', dest='GLWES',
help = 'enable gles2 renderer by linking gl-wes-v2 statically(put source to ref_gl directory)')
grp.add_option('--enable-gles2', action='store_true', dest='GLWES', default=False,
help = 'enable gles2 renderer [default: %default]')
grp.add_option('--disable-gl', action='store_false', dest='GL', default=True,
help = 'disable building OpenGL renderer(default: False)')
help = 'disable opengl [default: %default]')
# stub
return

View File

@ -11,14 +11,14 @@ VGUI_SUPPORTED_OS = ['win32', 'darwin', 'linux']
def options(opt):
grp = opt.add_option_group('VGUI options')
grp.add_option('--vgui', action = 'store', dest = 'VGUI_DEV',
help = 'path to vgui-dev repo(default: "vgui-dev")', default='' )
grp.add_option('--vgui', action = 'store', dest = 'VGUI_DEV', default='vgui-dev',
help = 'path to vgui-dev repo [default: %default]')
grp.add_option('--disable-vgui', action = 'store_true', dest = 'NO_VGUI',
help = 'disable vgui_support(default: enabled only on supported platforms)', default=False )
grp.add_option('--disable-vgui', action = 'store_true', dest = 'NO_VGUI', default = False,
help = 'disable vgui_support [default: %default]')
grp.add_option('--skip-vgui-sanity-check', action = 'store_false', dest = 'VGUI_SANITY_CHECK',
help = 'skip checking VGUI sanity', default=True )
grp.add_option('--skip-vgui-sanity-check', action = 'store_false', dest = 'VGUI_SANITY_CHECK', default=False,
help = 'skip checking VGUI sanity [default: %default]' )
return
def configure(conf):

12
wscript
View File

@ -44,22 +44,22 @@ def options(opt):
help = 'build type: debug, release or none(custom flags)')
grp.add_option('-d', '--dedicated', action = 'store_true', dest = 'DEDICATED', default = False,
help = 'build Xash Dedicated Server(XashDS)')
help = 'build Xash Dedicated Server [default: %default]')
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)')
help = 'build single "xash" binary [default: %default]')
grp.add_option('-8', '--64bits', action = 'store_true', dest = 'ALLOW64', default = False,
help = 'allow targetting 64-bit engine')
help = 'allow targetting 64-bit engine(Linux/Windows/OSX x86 only) [default: %default]')
grp.add_option('-W', '--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 [default: %default]')
grp.add_option('--enable-bsp2', action = 'store_true', dest = 'SUPPORT_BSP2_FORMAT', default = False,
help = 'build engine and renderers with BSP2 map support(recommended for Quake, breaks compability!)')
help = 'build engine and renderers with BSP2 map support(recommended for Quake, breaks compatibility!) [default: %default]')
grp.add_option('--enable-lto', action = 'store_true', dest = 'LTO', default = False,
help = 'enable Link Time Optimization')
help = 'enable Link Time Optimization [default: %default]')
opt.load('subproject')