Merged changes in the trunk up to revision 51126.
[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 #/intern/cycles/blender'
12 incs += ' ../nodes'
13 incs += ' #/extern/glew/include'
14 incs += ' #/intern/smoke/extern'
15 incs += ' ../freestyle'
16
17 incs += ' ../bmesh'
18
19 defs = []
20
21 if env['WITH_BF_SMOKE']:
22     defs.append('WITH_SMOKE')
23
24 if env['WITH_BF_OPENEXR']:
25     defs.append('WITH_OPENEXR')
26
27 if env['WITH_BF_TIFF']:
28     defs.append('WITH_TIFF')
29
30 if env['WITH_BF_OPENJPEG']:
31     defs.append('WITH_OPENJPEG')
32
33 if env['WITH_BF_DDS']:
34     defs.append('WITH_DDS')
35
36 if env['WITH_BF_CINEON']:
37     defs.append('WITH_CINEON')
38
39 if env['WITH_BF_HDR']:
40     defs.append('WITH_HDR')
41
42 if env['WITH_BF_FRAMESERVER']:
43     defs.append('WITH_FRAMESERVER')
44
45 if env['WITH_BF_FFMPEG']:
46     defs.append('WITH_FFMPEG')
47     incs += ' ' + env['BF_FFMPEG_INC']
48
49 if env['WITH_BF_QUICKTIME']:
50     defs.append('WITH_QUICKTIME')
51     incs += ' ../quicktime'
52
53 if env['WITH_BF_GAMEENGINE']:
54     defs.append('WITH_GAMEENGINE')
55
56 if env['BF_UNIT_TEST']:
57     defs.append('UNIT_TEST')
58
59 if env['WITH_BF_PYTHON']:
60     defs.append('WITH_PYTHON')
61
62 if env['WITH_BF_COLLADA']:
63     defs.append('WITH_COLLADA')
64
65 if env['WITH_BF_OCEANSIM']:
66     defs.append('WITH_OCEANSIM')
67
68 if env['WITH_BF_CYCLES']:
69     defs.append('WITH_CYCLES')
70
71 if env['OURPLATFORM'] == 'linux':
72     cflags='-pthread'
73     incs += ' ../../../extern/binreloc/include'
74
75 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
76     incs += ' ' + env['BF_PTHREADS_INC']
77
78 if env['WITH_BF_INTERNATIONAL']:
79     defs.append('WITH_INTERNATIONAL')
80
81 rnalib = env.BlenderLib ( 'bf_rna', objs, Split(incs), defines=defs, libtype=['core','player'], priority = [165,20] )
82
83 Return ('rnalib')