Browse Source

Use msvs.py to generate Visual Studio project. Add debug flags for Visual Studio

pull/2/head
Alibek Omarov 6 years ago
parent
commit
ca28332c6c
  1. 7
      wscript

7
wscript

@ -28,7 +28,7 @@ top = '.' @@ -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): @@ -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…
Cancel
Save