diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-10-01 20:32:33 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-10-01 20:32:33 +0400 |
commit | 15d81b21f6db8656b4784729b307a0a147c8e362 (patch) | |
tree | fce19a3d2dec5d75984407d44cc8f8badc871f4c /source/blender/makesrna/SConscript | |
parent | 37a729cb1d3aa4957a40f30267bb784c2376cf89 (diff) |
Fixing scons compile on windows.
Since bli_threads.h now includes pthreads directly, we need to had instructions in SConscripts everywhere for proper include path.
Frankly, I feel like this should be done in a global manner and not in a per lib fashion, but that is for another day.
This commit also fixes more missing properties
Diffstat (limited to 'source/blender/makesrna/SConscript')
-rw-r--r-- | source/blender/makesrna/SConscript | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/SConscript b/source/blender/makesrna/SConscript index 8fc9df0fbf6..72dc6be683c 100644 --- a/source/blender/makesrna/SConscript +++ b/source/blender/makesrna/SConscript @@ -40,4 +40,12 @@ if env['WITH_BF_GAMEENGINE']: if env['BF_UNIT_TEST']: defs.append('UNIT_TEST') + +if env['OURPLATFORM'] == 'linux2': + cflags='-pthread' + incs += ' ../../../extern/binreloc/include' + +if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'): + incs += ' ' + env['BF_PTHREADS_INC'] + env.BlenderLib ( 'bf_rna', objs, Split(incs), defines=defs, libtype=['core','player'], priority = [165,20] ) |