Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-08-27 12:48:35 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-08-27 12:49:47 +0400
commit9b9ddb46697b56213cb1e968ac0c8ddefc5ee79e (patch)
treef1f722583633221ce99cb31a1c90cfd4ad9c3fa8 /SConstruct
parente40d8258bb46926a1aecf51236822532397993f3 (diff)
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.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 7263a5ddfa1..0c398f87256 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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()