mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-09 14:47:59 +00:00
Use msvs.py to generate Visual Studio project. Add debug flags for Visual Studio
This commit is contained in:
parent
f15e2c2dcf
commit
ca28332c6c
7
wscript
7
wscript
@ -28,7 +28,7 @@ top = '.'
|
|||||||
def options(opt):
|
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')
|
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,
|
||||||
@ -84,6 +84,11 @@ def configure(conf):
|
|||||||
conf.env.append_unique('CFLAGS', '-g')
|
conf.env.append_unique('CFLAGS', '-g')
|
||||||
conf.env.append_unique('CXXFLAGS', '-Og')
|
conf.env.append_unique('CXXFLAGS', '-Og')
|
||||||
conf.env.append_unique('CXXFLAGS', '-g')
|
conf.env.append_unique('CXXFLAGS', '-g')
|
||||||
|
else:
|
||||||
|
if(not conf.options.RELEASE):
|
||||||
|
conf.env.append_unique('CFLAGS', '/Z7')
|
||||||
|
conf.env.append_unique('CXXFLAGS', '/Z7')
|
||||||
|
conf.env.append_unique('LINKFLAGS', '/DEBUG')
|
||||||
|
|
||||||
if(conf.env.DEST_OS != 'win32'):
|
if(conf.env.DEST_OS != 'win32'):
|
||||||
conf.check( lib='dl' )
|
conf.check( lib='dl' )
|
||||||
|
Loading…
Reference in New Issue
Block a user