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