Some options used for "expert" x264 setup were removed from FFmpeg 0.11
[blender.git] / source / blender / blenkernel / 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 Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 set(INC
27         .
28         ../avi
29         ../blenfont
30         ../blenlib
31         ../blenloader
32         ../gpu
33         ../ikplugin
34         ../imbuf
35         ../makesdna
36         ../makesrna
37         ../bmesh
38         ../modifiers
39         ../nodes
40         ../render/extern/include
41         ../../../intern/guardedalloc
42         ../../../intern/iksolver/extern
43         ../../../intern/memutil
44         ../../../intern/mikktspace
45         ../../../intern/opennl/extern
46         ../../../intern/raskter
47
48         # XXX - BAD LEVEL CALL WM_api.h
49         ../windowmanager
50 )
51
52 set(INC_SYS
53         ${GLEW_INCLUDE_PATH}
54         ${ZLIB_INCLUDE_DIRS}
55 )
56
57 set(SRC
58         intern/CCGSubSurf.c
59         intern/DerivedMesh.c
60         intern/action.c
61         intern/anim.c
62         intern/anim_sys.c
63         intern/armature.c
64         intern/blender.c
65         intern/bmfont.c
66         intern/boids.c
67         intern/booleanops_mesh.c
68         intern/brush.c
69         intern/bullet.c
70         intern/bvhutils.c
71         intern/camera.c
72         intern/cdderivedmesh.c
73         intern/cloth.c
74         intern/collision.c
75         intern/colortools.c
76         intern/constraint.c
77         intern/context.c
78         intern/curve.c
79         intern/customdata.c
80         intern/customdata_file.c
81         intern/deform.c
82         intern/depsgraph.c
83         intern/displist.c
84         intern/dynamicpaint.c
85         intern/editderivedmesh.c
86         intern/effect.c
87         intern/fcurve.c
88         intern/fluidsim.c
89         intern/fmodifier.c
90         intern/font.c
91         intern/gpencil.c
92         intern/group.c
93         intern/icons.c
94         intern/idcode.c
95         intern/idprop.c
96         intern/image.c
97         intern/image_gen.c
98         intern/implicit.c
99         intern/ipo.c
100         intern/key.c
101         intern/lamp.c
102         intern/lattice.c
103         intern/library.c
104         intern/mask.c
105         intern/material.c
106         intern/mball.c
107         intern/mesh.c
108         intern/mesh_validate.c
109         intern/modifier.c
110         intern/modifiers_bmesh.c
111         intern/movieclip.c
112         intern/multires.c
113         intern/nla.c
114         intern/node.c
115         intern/object.c
116         intern/ocean.c
117         intern/packedFile.c
118         intern/paint.c
119         intern/particle.c
120         intern/particle_system.c
121         intern/pointcache.c
122         intern/property.c
123         intern/report.c
124         intern/sca.c
125         intern/scene.c
126         intern/screen.c
127         intern/script.c
128         intern/seqcache.c
129         intern/seqeffects.c
130         intern/sequencer.c
131         intern/shrinkwrap.c
132         intern/sketch.c
133         intern/smoke.c
134         intern/softbody.c
135         intern/sound.c
136         intern/speaker.c
137         intern/subsurf_ccg.c
138         intern/suggestions.c
139         intern/text.c
140         intern/texture.c
141         intern/tracking.c
142         intern/unit.c
143         intern/world.c
144         intern/writeavi.c
145         intern/writeframeserver.c
146         
147         BKE_DerivedMesh.h
148         BKE_action.h
149         BKE_anim.h
150         BKE_animsys.h
151         BKE_armature.h
152         BKE_blender.h
153         BKE_bmesh.h
154         BKE_bmfont.h
155         BKE_bmfont_types.h
156         BKE_boids.h
157         BKE_booleanops_mesh.h
158         BKE_brush.h
159         BKE_bullet.h
160         BKE_bvhutils.h
161         BKE_camera.h
162         BKE_ccg.h
163         BKE_cdderivedmesh.h
164         BKE_cloth.h
165         BKE_collision.h
166         BKE_colortools.h
167         BKE_constraint.h
168         BKE_context.h
169         BKE_curve.h
170         BKE_customdata.h
171         BKE_customdata_file.h
172         BKE_deform.h
173         BKE_depsgraph.h
174         BKE_displist.h
175         BKE_dynamicpaint.h
176         BKE_effect.h
177         BKE_fcurve.h
178         BKE_fluidsim.h
179         BKE_font.h
180         BKE_global.h
181         BKE_gpencil.h
182         BKE_group.h
183         BKE_icons.h
184         BKE_idcode.h
185         BKE_idprop.h
186         BKE_image.h
187         BKE_ipo.h
188         BKE_key.h
189         BKE_lamp.h
190         BKE_lattice.h
191         BKE_library.h
192         BKE_mask.h
193         BKE_main.h
194         BKE_material.h
195         BKE_mball.h
196         BKE_mesh.h
197         BKE_modifier.h
198         BKE_movieclip.h
199         BKE_multires.h
200         BKE_nla.h
201         BKE_node.h
202         BKE_object.h
203         BKE_ocean.h
204         BKE_packedFile.h
205         BKE_paint.h
206         BKE_particle.h
207         BKE_pointcache.h
208         BKE_property.h
209         BKE_report.h
210         BKE_sca.h
211         BKE_scene.h
212         BKE_screen.h
213         BKE_script.h
214         BKE_sequencer.h
215         BKE_shrinkwrap.h
216         BKE_sketch.h
217         BKE_smoke.h
218         BKE_softbody.h
219         BKE_sound.h
220         BKE_speaker.h
221         BKE_subsurf.h
222         BKE_suggestions.h
223         BKE_tessmesh.h
224         BKE_text.h
225         BKE_texture.h
226         BKE_tracking.h
227         BKE_unit.h
228         BKE_utildefines.h
229         BKE_world.h
230         BKE_writeavi.h
231         BKE_writeframeserver.h
232         depsgraph_private.h
233         nla_private.h
234         intern/CCGSubSurf.h
235 )
236
237 add_definitions(-DGLEW_STATIC)
238
239 if(WITH_AUDASPACE)
240         list(APPEND INC
241                 ../../../intern/audaspace/intern
242         )
243         add_definitions(-DWITH_AUDASPACE)
244 endif()
245
246 if(WITH_BULLET)
247         list(APPEND INC
248                 ../../../extern/bullet2/src
249         )
250         add_definitions(-DUSE_BULLET)
251 endif()
252
253 if(WITH_MOD_CLOTH_ELTOPO)
254         list(APPEND INC
255                 ../../../extern/eltopo
256         )
257         add_definitions(-DWITH_ELTOPO)
258 endif()
259
260 if(WITH_IMAGE_OPENEXR)
261         add_definitions(-DWITH_OPENEXR)
262 endif()
263
264 if(WITH_IMAGE_TIFF)
265         add_definitions(-DWITH_TIFF)
266 endif()
267
268 if(WITH_IMAGE_OPENJPEG)
269         add_definitions(-DWITH_OPENJPEG)
270 endif()
271
272 if(WITH_IMAGE_DDS)
273         add_definitions(-DWITH_DDS)
274 endif()
275
276 if(WITH_IMAGE_CINEON)
277         add_definitions(-DWITH_CINEON)
278 endif()
279
280 if(WITH_IMAGE_FRAMESERVER)
281         add_definitions(-DWITH_FRAMESERVER)
282 endif()
283
284 if(WITH_IMAGE_HDR)
285         add_definitions(-DWITH_HDR)
286 endif()
287
288 if(WITH_CODEC_QUICKTIME)
289         list(APPEND INC
290                 ../quicktime
291         )
292         list(APPEND INC_SYS
293                 ${QUICKTIME_INCLUDE_DIRS}
294         )
295         add_definitions(-DWITH_QUICKTIME)
296 endif()
297
298 if(WITH_CODEC_FFMPEG)
299         list(APPEND SRC
300                 intern/writeffmpeg.c
301                 BKE_writeffmpeg.h
302         )
303         list(APPEND INC
304                 ../../../intern/ffmpeg
305         )
306         list(APPEND INC_SYS
307                 ${FFMPEG_INCLUDE_DIRS}
308         )
309         add_definitions(-DWITH_FFMPEG)
310
311         remove_strict_flags_file(
312                 intern/writeffmpeg.c
313         )
314 endif()
315
316 if(WITH_PYTHON)
317         list(APPEND INC
318                 ../python
319         )
320         list(APPEND INC_SYS
321                 ${PYTHON_INCLUDE_DIRS}
322         )
323         add_definitions(-DWITH_PYTHON)
324
325         if(WITH_PYTHON_SECURITY)
326                 add_definitions(-DWITH_PYTHON_SECURITY)
327         endif()
328 endif()
329
330 if(WITH_OPENMP)
331         add_definitions(-DPARALLEL=1)
332 endif()
333
334 if(WITH_MOD_FLUID)
335         list(APPEND INC
336                 ../../../intern/elbeem/extern
337         )
338         add_definitions(-DWITH_MOD_FLUID)
339 endif()
340
341 if(WITH_MOD_SMOKE)
342         list(APPEND INC
343                 ../../../intern/smoke/extern
344         )
345         add_definitions(-DWITH_SMOKE)
346 endif()
347
348 if(WITH_MOD_OCEANSIM)
349         add_definitions(-DWITH_OCEANSIM)
350 endif()
351
352 if(WITH_MOD_DECIMATE)
353         list(APPEND INC
354                 ../../../intern/decimation/extern
355         )
356 endif()
357
358 if(WITH_MOD_BOOLEAN)
359         list(APPEND INC
360                 ../../../intern/bsp/extern
361         )
362 endif()
363
364 if(WITH_JACK)
365         add_definitions(-DWITH_JACK)
366 endif()
367
368 if(WITH_LZO)
369         list(APPEND INC_SYS
370                 ../../../extern/lzo/minilzo
371         )
372         add_definitions(-DWITH_LZO)
373 endif()
374
375 if(WITH_LZMA)
376         list(APPEND INC_SYS
377                 ../../../extern/lzma
378         )
379         add_definitions(-DWITH_LZMA)
380 endif()
381
382 if(WITH_GAMEENGINE)
383         list(APPEND INC_SYS
384                 ../../../extern/recastnavigation
385         )
386         list(APPEND SRC
387                 intern/navmesh_conversion.c
388                 BKE_navmesh_conversion.h
389         )
390
391         add_definitions(-DWITH_GAMEENGINE)
392 endif()
393
394 if(WITH_LIBMV)
395         list(APPEND INC
396                 ../../../extern/libmv
397         )
398         add_definitions(-DWITH_LIBMV)
399 endif()
400
401 if(WITH_FFTW3)
402         list(APPEND INC_SYS
403                 ${FFTW3_INCLUDE_DIRS}
404         )
405         add_definitions(-DFFTW3=1)
406 endif()
407
408 if(WITH_INTERNATIONAL)
409         add_definitions(-DWITH_INTERNATIONAL)
410 endif()
411
412 ## Warnings as errors, this is too strict!
413 #if(MSVC)
414 #       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
415 #endif()
416
417 blender_add_lib(bf_blenkernel "${SRC}" "${INC}" "${INC_SYS}")