Make SCons's DEBUG/_DEBUG consistent with CMake

Also move this to a generic place in SConstruct instead of having this
defines in 6 different configurations.

Should not be functional changes, but please verify all the platforms.
This commit is contained in:
Sergey Sharybin
2014-08-27 14:48:35 +06:00
parent e40d8258bb
commit 9b9ddb4669
7 changed files with 15 additions and 10 deletions

View File

@@ -210,6 +210,11 @@ if sys.platform=='win32':
if B.bitness==64:
env.Append(CPPFLAGS=['-DWIN64']) # -DWIN32 needed too, as it's used all over to target Windows generally
if env['BF_DEBUG']:
env.Append(CPPDEFINES=['_DEBUG', 'DEBUG'])
else:
env.Append(CPPDEFINES=['NDEBUG'])
if not env['BF_FANCY']:
B.bc.disable()