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>2010-10-09 00:39:56 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2010-10-09 00:39:56 +0400
commit663ce490e0174a90ba3e4ed6f3468301d593958a (patch)
treef01622031f002343f80e8479ea54cd37a5128ec9 /source/gameengine/SceneGraph/SConscript
parent48d2aac250624664cd1db77470af0fc45526f3c9 (diff)
Enable CXX_GUARDEDALLOC support through SCons.
Diffstat (limited to 'source/gameengine/SceneGraph/SConscript')
-rw-r--r--source/gameengine/SceneGraph/SConscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/gameengine/SceneGraph/SConscript b/source/gameengine/SceneGraph/SConscript
index 2a33cd67b5e..992a10befa2 100644
--- a/source/gameengine/SceneGraph/SConscript
+++ b/source/gameengine/SceneGraph/SConscript
@@ -6,4 +6,10 @@ sources = env.Glob('*.cpp')
incs = '. #intern/moto/include'
-env.BlenderLib ( 'bf_scenegraph', sources, Split(incs), [], libtype=['core','player'], priority=[325,85], cxx_compileflags=env['BGE_CXXFLAGS'])
+defs = []
+
+if env['WITH_BF_CXX_GUARDEDALLOC']:
+ defs.append('WITH_CXX_GUARDEDALLOC')
+ incs += ' #intern/guardedalloc'
+
+env.BlenderLib ( 'bf_scenegraph', sources, Split(incs), defs, libtype=['core','player'], priority=[325,85], cxx_compileflags=env['BGE_CXXFLAGS'])