mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-12-22 17:01:14 +01: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):
|
||||
opt.load('compiler_cxx compiler_c')
|
||||
if sys.platform == 'win32':
|
||||
opt.load('msvc')
|
||||
opt.load('msvc msvs')
|
||||
|
||||
opt.add_option(
|
||||
'--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('CXXFLAGS', '-Og')
|
||||
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'):
|
||||
conf.check( lib='dl' )
|
||||
|
Loading…
Reference in New Issue
Block a user