diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-10-09 00:39:56 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-10-09 00:39:56 +0400 |
commit | 663ce490e0174a90ba3e4ed6f3468301d593958a (patch) | |
tree | f01622031f002343f80e8479ea54cd37a5128ec9 /source/gameengine/SceneGraph | |
parent | 48d2aac250624664cd1db77470af0fc45526f3c9 (diff) |
Enable CXX_GUARDEDALLOC support through SCons.
Diffstat (limited to 'source/gameengine/SceneGraph')
-rw-r--r-- | source/gameengine/SceneGraph/SConscript | 8 |
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']) |