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