From ca28332c6c8116fb6ecc6eddfad48c85a1aa3e79 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 14 Jun 2018 21:22:17 +0300 Subject: [PATCH] Use msvs.py to generate Visual Studio project. Add debug flags for Visual Studio --- wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 80c89364..679c8dec 100644 --- a/wscript +++ b/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' )