|
|
@ -17,27 +17,28 @@ SUBDIRS = [ 'engine', 'game_launch', 'mainui', 'vgui_support' ] |
|
|
|
top = '.' |
|
|
|
top = '.' |
|
|
|
|
|
|
|
|
|
|
|
def options(opt): |
|
|
|
def options(opt): |
|
|
|
opt.load('xcompile compiler_cxx compiler_c') |
|
|
|
grp = opt.add_option_group('Common options') |
|
|
|
if sys.platform == 'win32': |
|
|
|
|
|
|
|
opt.load('msvc msvs') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
opt.add_option( |
|
|
|
grp.add_option( |
|
|
|
'--build-type', action='store', type='string', 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)') |
|
|
|
|
|
|
|
|
|
|
|
opt.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)') |
|
|
|
|
|
|
|
|
|
|
|
opt.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') |
|
|
|
|
|
|
|
|
|
|
|
opt.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') |
|
|
|
|
|
|
|
|
|
|
|
opt.recurse(SUBDIRS) |
|
|
|
opt.recurse(SUBDIRS) |
|
|
|
|
|
|
|
opt.load('xcompile compiler_cxx compiler_c') |
|
|
|
|
|
|
|
if sys.platform == 'win32': |
|
|
|
|
|
|
|
opt.load('msvc msvs') |
|
|
|
|
|
|
|
|
|
|
|
def configure(conf): |
|
|
|
def configure(conf): |
|
|
|
conf.start_msg('Build type') |
|
|
|
conf.start_msg('Build type') |
|
|
|