mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 07:37:52 +00:00
wscript: spaces to tabs
This commit is contained in:
parent
7852192fc4
commit
e9d988f5d6
20
wscript
20
wscript
@ -46,15 +46,15 @@ def options(opt):
|
|||||||
opt.load('compiler_cxx compiler_c')
|
opt.load('compiler_cxx compiler_c')
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
opt.load('msvc msvs')
|
opt.load('msvc msvs')
|
||||||
|
|
||||||
opt.add_option(
|
opt.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(
|
opt.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(
|
opt.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')
|
||||||
@ -68,7 +68,7 @@ def options(opt):
|
|||||||
help = 'SDL2 path to build(required for Windows)')
|
help = 'SDL2 path to build(required for Windows)')
|
||||||
|
|
||||||
opt.add_option(
|
opt.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.recurse(SUBDIRS)
|
opt.recurse(SUBDIRS)
|
||||||
@ -113,23 +113,23 @@ def configure(conf):
|
|||||||
Logs.warn('WARNING: 64-bit engine may be unstable')
|
Logs.warn('WARNING: 64-bit engine may be unstable')
|
||||||
|
|
||||||
linker_flags = {
|
linker_flags = {
|
||||||
'common': {
|
'common': {
|
||||||
'msvc': ['/DEBUG'],
|
'msvc': ['/DEBUG'],
|
||||||
'default': ['-Wl,--no-undefined']
|
'default': ['-Wl,--no-undefined']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
compiler_c_cxx_flags = {
|
compiler_c_cxx_flags = {
|
||||||
'common': {
|
'common': {
|
||||||
'msvc': ['/D_USING_V110_SDK71_'],
|
'msvc': ['/D_USING_V110_SDK71_'],
|
||||||
'default': ['-g']
|
'default': ['-g']
|
||||||
},
|
},
|
||||||
'release': {
|
'release': {
|
||||||
'msvc': ['/Zi', '/O2'],
|
'msvc': ['/Zi', '/O2'],
|
||||||
'default': ['-O3']
|
'default': ['-O3']
|
||||||
},
|
},
|
||||||
'debug': {
|
'debug': {
|
||||||
'msvc': ['/Z7'],
|
'msvc': ['/Z7'],
|
||||||
'clang': ['-O0', '-gdwarf-2'],
|
'clang': ['-O0', '-gdwarf-2'],
|
||||||
'default': ['-O0']
|
'default': ['-O0']
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user