svn merge -r 30566:30717 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / makesrna / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 objs = []
5
6 o = SConscript('intern/SConscript')
7 objs += o
8
9 incs = '#/intern/guardedalloc #/intern/memutil #/intern/audaspace/intern ../blenkernel ../blenlib ../makesdna intern .'
10 incs += ' ../windowmanager ../editors/include ../gpu ../imbuf ../ikplugin'
11 incs += ' ../render/extern/include'
12
13 defs = []
14
15 if env['WITH_BF_OPENEXR']:
16         defs.append('WITH_OPENEXR')
17
18 if env['WITH_BF_TIFF']:
19         defs.append('WITH_TIFF')
20
21 if env['WITH_BF_OPENJPEG']:
22         defs.append('WITH_OPENJPEG')
23
24 if env['WITH_BF_DDS']:
25         defs.append('WITH_DDS')
26
27 if env['WITH_BF_FFMPEG']:
28         defs.append('WITH_FFMPEG')
29         incs += ' ' + env['BF_FFMPEG_INC']
30
31 if env['WITH_BF_OGG']:
32         defs.append('WITH_OGG')
33
34 if env['WITH_BF_QUICKTIME']:
35         defs.append('WITH_QUICKTIME')
36         incs += ' ../quicktime'
37
38 if env['WITH_BF_LCMS']:
39         defs.append('WITH_LCMS')
40         incs += ' ' + env['BF_LCMS_INC']
41         
42 if env['WITH_BF_GAMEENGINE']:
43         defs.append('GAMEBLENDER=1')
44
45 if env['BF_UNIT_TEST']:
46         defs.append('UNIT_TEST')
47
48 if env['OURPLATFORM'] == 'linux2':
49         cflags='-pthread'
50         incs += ' ../../../extern/binreloc/include'
51
52 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
53         incs += ' ' + env['BF_PTHREADS_INC']
54
55 env.BlenderLib ( 'bf_rna', objs, Split(incs), defines=defs, libtype=['core','player'], priority = [165,20] )