Fix T39597: Missing entries in VSE Preview menu
[blender.git] / source / blender / makesrna / SConscript
1 #!/usr/bin/env python
2 #
3 # ***** BEGIN GPL LICENSE BLOCK *****
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #
19 # The Original Code is Copyright (C) 2006, Blender Foundation
20 # All rights reserved.
21 #
22 # The Original Code is: all of this file.
23 #
24 # Contributor(s): Nathan Letwory.
25 #
26 # ***** END GPL LICENSE BLOCK *****
27
28 Import ('env')
29
30 objs = []
31
32 o = SConscript('intern/SConscript')
33 objs += o
34
35 incs = [
36     '.',
37     './intern',
38     '#/intern/guardedalloc',
39     '#/intern/atomic',
40     '#/intern/memutil',
41     '#/extern/glew/include',
42     '#/intern/audaspace/intern',
43     '#/intern/cycles/blender',
44     '#/intern/smoke/extern',
45     '../blenfont',
46     '../blenkernel',
47     '../blenlib',
48     '../bmesh',
49     '../editors/include',
50     '../gpu',
51     '../ikplugin',
52     '../imbuf',
53     '../makesdna',
54     '../nodes',
55     '../render/extern/include',
56     '../windowmanager',
57     ]
58 incs = ' '.join(incs)
59
60 defs = []
61
62 if env['WITH_BF_SMOKE']:
63     defs.append('WITH_SMOKE')
64
65 if env['WITH_BF_BULLET']:
66     defs.append('WITH_BULLET')
67     incs += ' #/intern/rigidbody'
68
69 if env['WITH_BF_OIIO']:
70     defs.append('WITH_OPENIMAGEIO')
71
72 if env['WITH_BF_OPENEXR']:
73     defs.append('WITH_OPENEXR')
74
75 if env['WITH_BF_TIFF']:
76     defs.append('WITH_TIFF')
77
78 if env['WITH_BF_OPENJPEG']:
79     defs.append('WITH_OPENJPEG')
80
81 if env['WITH_BF_DDS']:
82     defs.append('WITH_DDS')
83
84 if env['WITH_BF_CINEON']:
85     defs.append('WITH_CINEON')
86
87 if env['WITH_BF_HDR']:
88     defs.append('WITH_HDR')
89
90 if env['WITH_BF_FRAMESERVER']:
91     defs.append('WITH_FRAMESERVER')
92
93 if env['WITH_BF_FFMPEG']:
94     defs.append('WITH_FFMPEG')
95     incs += ' ' + env['BF_FFMPEG_INC'] + ' #/intern/ffmpeg'
96
97 if env['WITH_BF_QUICKTIME']:
98     defs.append('WITH_QUICKTIME')
99     incs += ' ../quicktime'
100
101 if env['WITH_BF_GAMEENGINE']:
102     defs.append('WITH_GAMEENGINE')
103
104 if env['BF_UNIT_TEST']:
105     defs.append('UNIT_TEST')
106
107 if env['WITH_BF_PYTHON']:
108     defs.append('WITH_PYTHON')
109     incs += ' ../python'
110
111 if env['WITH_BF_COLLADA']:
112     defs.append('WITH_COLLADA')
113
114 if env['WITH_BF_OCEANSIM']:
115     defs.append('WITH_OCEANSIM')
116
117 if env['WITH_BF_CYCLES']:
118     defs.append('WITH_CYCLES')
119
120 if env['WITH_BF_SDL']:
121     defs.append('WITH_SDL')
122
123 if env['WITH_BF_OPENAL']:
124     defs.append('WITH_OPENAL')
125
126 if env['WITH_BF_JACK']:
127     defs.append('WITH_JACK')
128
129 if env['OURPLATFORM'] == 'linux':
130     cflags='-pthread'
131
132 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
133     incs += ' ' + env['BF_PTHREADS_INC']
134
135 if env['WITH_BF_INTERNATIONAL']:
136     defs.append('WITH_INTERNATIONAL')
137
138 rnalib = env.BlenderLib ( 'bf_rna', objs, Split(incs), defines=defs, libtype=['core','player'], priority = [165,20] )
139
140 Return ('rnalib')