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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-08 17:19:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-08 17:19:55 +0400
commit28617bd7106b918bfd40305fdd709f3e73649d9c (patch)
tree178d9584c7887e166d3a4a967e00073be428e33e /source
parenta9a0e2d98f4093244157a6ceb9d9960ba813b2ce (diff)
fix for recent commit, WITH_GUARDEDALLOC wasn't enabled for makesrna, makesdna.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesdna/intern/CMakeLists.txt5
-rw-r--r--source/blender/makesdna/intern/SConscript2
-rw-r--r--source/blender/makesrna/intern/CMakeLists.txt5
-rw-r--r--source/blender/makesrna/intern/SConscript1
4 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/CMakeLists.txt b/source/blender/makesdna/intern/CMakeLists.txt
index 1dd1d7e8f87..0bd53ec8765 100644
--- a/source/blender/makesdna/intern/CMakeLists.txt
+++ b/source/blender/makesdna/intern/CMakeLists.txt
@@ -50,6 +50,11 @@ endif()
# SRC_DNA_INC is defined in the parent dir
+# for mallocn.c
+if (WITH_GUARDEDALLOC)
+ add_definitions(-DWITH_GUARDEDALLOC)
+endif()
+
add_executable(makesdna ${SRC} ${SRC_DNA_INC})
# Output dna.c
diff --git a/source/blender/makesdna/intern/SConscript b/source/blender/makesdna/intern/SConscript
index add9611866d..3dada5f0a44 100644
--- a/source/blender/makesdna/intern/SConscript
+++ b/source/blender/makesdna/intern/SConscript
@@ -36,6 +36,8 @@ cflags = ''
defines = []
root_build_dir=normpath(env['BF_BUILDDIR'])
+defines.append('WITH_GUARDEDALLOC')
+
source_files = ['makesdna.c']
header_files = env.Glob('../*.h')
diff --git a/source/blender/makesrna/intern/CMakeLists.txt b/source/blender/makesrna/intern/CMakeLists.txt
index 609592cc1cd..2e0eacf90e5 100644
--- a/source/blender/makesrna/intern/CMakeLists.txt
+++ b/source/blender/makesrna/intern/CMakeLists.txt
@@ -247,6 +247,11 @@ if(WITH_BULLET)
add_definitions(-DWITH_BULLET)
endif()
+# for mallocn.c
+if (WITH_GUARDEDALLOC)
+ add_definitions(-DWITH_GUARDEDALLOC)
+endif()
+
# Build makesrna executable
blender_include_dirs(
.
diff --git a/source/blender/makesrna/intern/SConscript b/source/blender/makesrna/intern/SConscript
index 910cf8385f5..98f82ee7909 100644
--- a/source/blender/makesrna/intern/SConscript
+++ b/source/blender/makesrna/intern/SConscript
@@ -145,6 +145,7 @@ if env['WITH_BF_FREESTYLE']:
if not env['BF_DEBUG']:
defs.append('NDEBUG')
+defs.append('WITH_GUARDEDALLOC')
makesrna_tool.Append(CPPDEFINES=defs)