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:
authorNathan Letwory <nathan@letworyinteractive.com>2004-02-18 17:35:36 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2004-02-18 17:35:36 +0300
commit32fb5478a877fef3a0efefa0152e969b28ad3753 (patch)
tree6eecf11c83273a2c45432af36efc8ad30a068f7f /SConstruct
parent6000b811bc571d7b322a9e0a1cd83791ba8e9306 (diff)
* [WIN32] Make SCons build with debuggable info when BUILD_BINARY set to 'debug' in config.opts
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct12
1 files changed, 9 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 84ab8e58283..bcc11452313 100644
--- a/SConstruct
+++ b/SConstruct
@@ -149,10 +149,10 @@ elif sys.platform == 'win32':
use_sumo = 'false'
use_ode = 'true'
release_flags = ['/G6', '/GF']
- debug_flags = []
+ debug_flags = ['/Zi']
extra_flags = ['/EHsc', '/J', '/W3', '/Gd', '/MT']
cxxflags = []
- defines = ['WIN32', 'NDEBUG', '_CONSOLE', 'FTGL_STATIC_LIBRARY']
+ defines = ['WIN32', '_CONSOLE', 'FTGL_STATIC_LIBRARY']
defines += ['INTERNATIONAL', 'WITH_QUICKTIME']
defines += ['_LIB', 'WITH_FREETYPE2', 'USE_OPENAL']
warn_flags = []
@@ -383,13 +383,19 @@ else:
if user_options_dict['BUILD_BINARY'] == 'release':
cflags = extra_flags + release_flags + warn_flags
+ if sys.platform == 'win32':
+ defines += ['NDEBUG']
else:
cflags = extra_flags + debug_flags + warn_flags
+ if sys.platform == 'win32':
+ #defines += ['_DEBUG'] specifying this makes msvc want to link to python22_d.lib??
+ platform_linkflags += ['/DEBUG','/PDB:blender.pdb']
+
#-----------------------------------------------------------------------------
# Settings to be exported to other SConscript files
#-----------------------------------------------------------------------------
-cflags = extra_flags + release_flags + warn_flags
+#cflags = extra_flags + release_flags + warn_flags
Export ('python_include')
Export ('cflags')