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>2009-09-06 02:39:42 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2009-09-06 02:39:42 +0400
commit75407a4ecceb701c9cc760768f5b58f2d099727b (patch)
tree8ca3affd5ea959dabfd3b0a7b4d5e31b6706cc9d /source/blender/makesrna
parent08b8fc34cfc082d73e657d1c2941662c36bc3514 (diff)
== SCons ==
* makesrna and makesdna now use CFLAGS, CCFLAGS and Linking flags as specified in config. This might help with cross-compile on OSX 10.6 (32bit on 64bit). devroo & jensverwiebe, please test and report.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/SConscript6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/SConscript b/source/blender/makesrna/intern/SConscript
index a24c25b8b95..9234efa2a5d 100644
--- a/source/blender/makesrna/intern/SConscript
+++ b/source/blender/makesrna/intern/SConscript
@@ -6,7 +6,7 @@ def normpath(path):
return os.path.abspath(os.path.normpath(path))
Import ('env')
-cflags = '-Wall'
+cflags = ['-Wall']
defines = []
root_build_dir=normpath(env['BF_BUILDDIR'])
@@ -96,6 +96,10 @@ if not (root_build_dir[0]==os.sep or root_build_dir[1]==':'):
makesrna_tool.Append (LIBPATH = libdir)
+makesrna_tool.Append( CFLAGS = env['CFLAGS'])
+makesrna_tool.Append( CCFLAGS = env['CCFLAGS'])
+makesrna_tool.Append( LINKFLAGS = env['PLATFORM_LINKFLAGS'])
+
if env['BF_PROFILE']:
makesrna_tool.Append (LINKFLAGS = env['BF_PROFILE_FLAGS'])