Imbuf: remove libredcode
[blender.git] / source / blender / python / intern / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurainm, Campbell Barton
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC 
27         ..
28         ../../blenkernel
29         ../../blenlib
30         ../../blenloader
31         ../../blentranslation
32         ../../editors/include
33         ../../gpu
34         ../../imbuf
35         ../../makesdna
36         ../../makesrna
37         ../../windowmanager
38         ../../../../intern/cycles/blender
39         ../../../../intern/opencolorio
40         ../../../../intern/guardedalloc
41 )
42
43 set(INC_SYS
44         ${PYTHON_INCLUDE_DIRS}
45 )
46
47 set(SRC
48         gpu.c
49         gpu_offscreen.c
50         bpy.c
51         bpy_app.c
52         bpy_app_build_options.c
53         bpy_app_ffmpeg.c
54         bpy_app_handlers.c
55         bpy_app_ocio.c
56         bpy_app_oiio.c
57         bpy_app_openvdb.c
58         bpy_app_sdl.c
59         bpy_app_translations.c
60         bpy_driver.c
61         bpy_interface.c
62         bpy_interface_atexit.c
63         bpy_intern_string.c
64         bpy_library.c
65         bpy_operator.c
66         bpy_operator_wrap.c
67         bpy_path.c
68         bpy_props.c
69         bpy_rna.c
70         bpy_rna_anim.c
71         bpy_rna_array.c
72         bpy_rna_callback.c
73         bpy_rna_id_collection.c
74         bpy_traceback.c
75         bpy_util.c
76         bpy_utils_previews.c
77         bpy_utils_units.c
78         stubs.c
79
80         gpu.h
81         bpy.h
82         bpy_app.h
83         bpy_app_build_options.h
84         bpy_app_ffmpeg.h
85         bpy_app_handlers.h
86         bpy_app_ocio.h
87         bpy_app_oiio.h
88         bpy_app_openvdb.h
89         bpy_app_sdl.h
90         bpy_app_translations.h
91         bpy_driver.h
92         bpy_intern_string.h
93         bpy_library.h
94         bpy_operator.h
95         bpy_operator_wrap.h
96         bpy_path.h
97         bpy_props.h
98         bpy_rna.h
99         bpy_rna_anim.h
100         bpy_rna_callback.h
101         bpy_rna_id_collection.h
102         bpy_traceback.h
103         bpy_util.h
104         bpy_utils_previews.h
105         bpy_utils_units.h
106         ../BPY_extern.h
107 )
108
109 # only to check if buildinfo is available
110 if(WITH_BUILDINFO)
111         add_definitions(-DBUILD_DATE)
112 endif()
113
114 if(WITH_PYTHON_MODULE)
115         add_definitions(-DWITH_PYTHON_MODULE)
116 endif()
117
118 if(WITH_PYTHON_SAFETY)
119         add_definitions(-DWITH_PYTHON_SAFETY)
120 endif()
121
122
123
124 if(WITH_AUDASPACE)
125         add_definitions(-DWITH_AUDASPACE)
126 endif()
127
128 if(WITH_BULLET)
129         add_definitions(-DWITH_BULLET)
130 endif()
131
132 if(WITH_CODEC_AVI)
133         add_definitions(-DWITH_AVI)
134 endif()
135
136 if(WITH_CODEC_FFMPEG)
137         list(APPEND INC_SYS
138                 ${FFMPEG_INCLUDE_DIRS}
139         )
140         add_definitions(-DWITH_FFMPEG)
141 endif()
142
143 if(WITH_CODEC_QUICKTIME)
144         add_definitions(-DWITH_QUICKTIME)
145 endif()
146
147 if(WITH_CODEC_SNDFILE)
148         add_definitions(-DWITH_SNDFILE)
149 endif()
150
151 if(WITH_COMPOSITOR)
152         add_definitions(-DWITH_COMPOSITOR)
153 endif()
154
155 if(WITH_CYCLES)
156         add_definitions(-DWITH_CYCLES)
157 endif()
158
159 if(WITH_CYCLES_OSL)
160         add_definitions(-DWITH_CYCLES_OSL)
161 endif()
162
163 if(WITH_FREESTYLE)
164         list(APPEND INC
165                 ../../freestyle/intern/python
166         )
167         add_definitions(-DWITH_FREESTYLE)
168 endif()
169
170 if(WITH_GAMEENGINE)
171         add_definitions(-DWITH_GAMEENGINE)
172 endif()
173
174 if(WITH_IMAGE_CINEON)
175         add_definitions(-DWITH_CINEON)
176 endif()
177
178 if(WITH_IMAGE_DDS)
179         add_definitions(-DWITH_DDS)
180 endif()
181
182 if(WITH_IMAGE_FRAMESERVER)
183         add_definitions(-DWITH_FRAMESERVER)
184 endif()
185
186 if(WITH_IMAGE_HDR)
187         add_definitions(-DWITH_HDR)
188 endif()
189
190 if(WITH_IMAGE_OPENEXR)
191         add_definitions(-DWITH_OPENEXR)
192 endif()
193
194 if(WITH_OPENIMAGEIO)
195         add_definitions(-DWITH_OPENIMAGEIO)
196 endif()
197
198 if(WITH_IMAGE_OPENJPEG)
199         add_definitions(-DWITH_OPENJPEG)
200 endif()
201
202 if(WITH_IMAGE_TIFF)
203         add_definitions(-DWITH_TIFF)
204 endif()
205
206 if(WITH_INPUT_NDOF)
207         add_definitions(-DWITH_INPUT_NDOF)
208 endif()
209
210 if(WITH_INTERNATIONAL)
211         add_definitions(-DWITH_INTERNATIONAL)
212 endif()
213
214 if(WITH_OPENAL)
215         add_definitions(-DWITH_OPENAL)
216 endif()
217
218 if(WITH_SDL)
219         list(APPEND INC_SYS
220                 ${SDL_INCLUDE_DIR}
221         )
222         add_definitions(-DWITH_SDL)
223 endif()
224
225 if(WITH_SDL_DYNLOAD)
226         list(APPEND INC
227                 ../../../../extern/sdlew/include
228         )
229         add_definitions(-DWITH_SDL_DYNLOAD)
230 endif()
231
232 if(WITH_JACK)
233         add_definitions(-DWITH_JACK)
234 endif()
235
236 if(WITH_LIBMV)
237         add_definitions(-DWITH_LIBMV)
238 endif()
239
240 if(WITH_MOD_BOOLEAN)
241         add_definitions(-DWITH_MOD_BOOLEAN)
242 endif()
243
244 if(WITH_MOD_FLUID)
245         add_definitions(-DWITH_MOD_FLUID)
246 endif()
247
248 if(WITH_MOD_OCEANSIM)
249         add_definitions(-DWITH_OCEANSIM)
250 endif()
251
252 if(WITH_MOD_REMESH)
253         add_definitions(-DWITH_MOD_REMESH)
254 endif()
255
256 if(WITH_MOD_SMOKE)
257         add_definitions(-DWITH_SMOKE)
258 endif()
259
260 if(WITH_OPENCOLLADA)
261         add_definitions(-DWITH_COLLADA)
262 endif()
263
264 if(WITH_OPENCOLORIO)
265         add_definitions(-DWITH_OCIO)
266 endif()
267
268 if(WITH_OPENVDB)
269         add_definitions(-DWITH_OPENVDB)
270         list(APPEND INC
271                 ../../../../intern/openvdb
272         )
273 endif()
274
275 if(WITH_OPENIMAGEIO)
276         add_definitions(-DWITH_OPENIMAGEIO)
277         list(APPEND INC
278                 ../../imbuf/intern/oiio
279         )
280 endif()
281
282 if(WITH_PLAYER)
283         add_definitions(-DWITH_PLAYER)
284 endif()
285
286 add_definitions(${GL_DEFINITIONS})
287
288 blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")