Merged changes in the trunk up to revision 36092.
[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 ../blenfont ../blenloader'
11 incs += ' ../render/extern/include'
12 incs += ' #/extern/glew/include'
13 incs += ' ../freestyle'
14
15 defs = []
16
17 if env['WITH_BF_OPENEXR']:
18     defs.append('WITH_OPENEXR')
19
20 if env['WITH_BF_TIFF']:
21     defs.append('WITH_TIFF')
22
23 if env['WITH_BF_OPENJPEG']:
24     defs.append('WITH_OPENJPEG')
25
26 if env['WITH_BF_DDS']:
27     defs.append('WITH_DDS')
28
29 if env['WITH_BF_CINEON']:
30     defs.append('WITH_CINEON')
31
32 if env['WITH_BF_HDR']:
33     defs.append('WITH_HDR')
34
35 if env['WITH_BF_FFMPEG']:
36     defs.append('WITH_FFMPEG')
37     incs += ' ' + env['BF_FFMPEG_INC']
38
39 if env['WITH_BF_OGG']:
40     defs.append('WITH_OGG')
41
42 if env['WITH_BF_QUICKTIME']:
43     defs.append('WITH_QUICKTIME')
44     incs += ' ../quicktime'
45
46 if env['WITH_BF_LCMS']:
47     defs.append('WITH_LCMS')
48     incs += ' ' + env['BF_LCMS_INC']
49     
50 if env['WITH_BF_GAMEENGINE']:
51     defs.append('WITH_GAMEENGINE')
52
53 if env['BF_UNIT_TEST']:
54     defs.append('UNIT_TEST')
55
56 if env['WITH_BF_PYTHON']:
57     defs.append('WITH_PYTHON')
58
59 if env['WITH_BF_COLLADA']:
60     defs.append('WITH_COLLADA')
61
62 if env['OURPLATFORM'] == 'linux2':
63     cflags='-pthread'
64     incs += ' ../../../extern/binreloc/include'
65
66 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
67     incs += ' ' + env['BF_PTHREADS_INC']
68
69 env.BlenderLib ( 'bf_rna', objs, Split(incs), defines=defs, libtype=['core','player'], priority = [165,20] )