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