Depsgraph: Move update-related functions into own files
[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         ../physics
40         ../render/extern/include
41         ../../../intern/ghost
42         ../../../intern/guardedalloc
43         ../../../intern/glew-mx
44         ../../../intern/iksolver/extern
45         ../../../intern/memutil
46         ../../../intern/mikktspace
47         ../../../intern/raskter
48         ../../../intern/smoke/extern
49         ../../../intern/atomic
50         ../../../extern/libmv
51
52         # XXX - BAD LEVEL CALL WM_api.h
53         ../windowmanager
54 )
55
56 set(INC_SYS
57         ${GLEW_INCLUDE_PATH}
58         ${ZLIB_INCLUDE_DIRS}
59 )
60
61 set(SRC
62         intern/CCGSubSurf.c
63         intern/DerivedMesh.c
64         intern/action.c
65         intern/addon.c
66         intern/anim.c
67         intern/anim_sys.c
68         intern/appdir.c
69         intern/armature.c
70         intern/armature_update.c
71         intern/autoexec.c
72         intern/blender.c
73         intern/bmfont.c
74         intern/boids.c
75         intern/bpath.c
76         intern/brush.c
77         intern/bullet.c
78         intern/bvhutils.c
79         intern/camera.c
80         intern/cdderivedmesh.c
81         intern/cloth.c
82         intern/collision.c
83         intern/colortools.c
84         intern/constraint.c
85         intern/context.c
86         intern/crazyspace.c
87         intern/curve.c
88         intern/customdata.c
89         intern/customdata_file.c
90         intern/data_transfer.c
91         intern/deform.c
92         intern/depsgraph.c
93         intern/displist.c
94         intern/dynamicpaint.c
95         intern/editderivedmesh.c
96         intern/editmesh.c
97         intern/editmesh_bvh.c
98         intern/effect.c
99         intern/fcurve.c
100         intern/fluidsim.c
101         intern/fmodifier.c
102         intern/font.c
103         intern/freestyle.c
104         intern/gpencil.c
105         intern/group.c
106         intern/icons.c
107         intern/idcode.c
108         intern/idprop.c
109         intern/image.c
110         intern/image_gen.c
111         intern/ipo.c
112         intern/key.c
113         intern/lamp.c
114         intern/lattice.c
115         intern/library.c
116         intern/library_query.c
117         intern/linestyle.c
118         intern/mask.c
119         intern/mask_evaluate.c
120         intern/mask_rasterize.c
121         intern/material.c
122         intern/mball.c
123         intern/mball_tessellate.c
124         intern/mesh.c
125         intern/mesh_evaluate.c
126         intern/mesh_mapping.c
127         intern/mesh_remap.c
128         intern/mesh_validate.c
129         intern/modifier.c
130         intern/modifiers_bmesh.c
131         intern/movieclip.c
132         intern/multires.c
133         intern/nla.c
134         intern/node.c
135         intern/object.c
136         intern/object_deform.c
137         intern/object_dupli.c
138         intern/object_update.c
139         intern/ocean.c
140         intern/outliner_treehash.c
141         intern/packedFile.c
142         intern/paint.c
143         intern/particle.c
144         intern/particle_child.c
145         intern/particle_distribute.c
146         intern/particle_system.c
147         intern/pbvh.c
148         intern/pbvh_bmesh.c
149         intern/pointcache.c
150         intern/property.c
151         intern/report.c
152         intern/rigidbody.c
153         intern/sca.c
154         intern/scene.c
155         intern/screen.c
156         intern/seqcache.c
157         intern/seqeffects.c
158         intern/seqmodifier.c
159         intern/sequencer.c
160         intern/shrinkwrap.c
161         intern/sketch.c
162         intern/smoke.c
163         intern/softbody.c
164         intern/sound.c
165         intern/speaker.c
166         intern/subsurf_ccg.c
167         intern/suggestions.c
168         intern/text.c
169         intern/texture.c
170         intern/tracking.c
171         intern/tracking_auto.c
172         intern/tracking_detect.c
173         intern/tracking_plane_tracker.c
174         intern/tracking_region_tracker.c
175         intern/tracking_solver.c
176         intern/tracking_stabilize.c
177         intern/tracking_util.c
178         intern/unit.c
179         intern/world.c
180         intern/writeavi.c
181         intern/writeframeserver.c
182
183         BKE_DerivedMesh.h
184         BKE_action.h
185         BKE_addon.h
186         BKE_anim.h
187         BKE_animsys.h
188         BKE_appdir.h
189         BKE_armature.h
190         BKE_autoexec.h
191         BKE_blender.h
192         BKE_bmfont.h
193         BKE_bmfont_types.h
194         BKE_boids.h
195         BKE_bpath.h
196         BKE_brush.h
197         BKE_bullet.h
198         BKE_bvhutils.h
199         BKE_camera.h
200         BKE_ccg.h
201         BKE_cdderivedmesh.h
202         BKE_cloth.h
203         BKE_collision.h
204         BKE_colortools.h
205         BKE_constraint.h
206         BKE_context.h
207         BKE_crazyspace.h
208         BKE_curve.h
209         BKE_customdata.h
210         BKE_customdata_file.h
211         BKE_data_transfer.h
212         BKE_deform.h
213         BKE_depsgraph.h
214         BKE_displist.h
215         BKE_dynamicpaint.h
216         BKE_editmesh.h
217         BKE_editmesh_bvh.h
218         BKE_effect.h
219         BKE_fcurve.h
220         BKE_fluidsim.h
221         BKE_font.h
222         BKE_freestyle.h
223         BKE_global.h
224         BKE_gpencil.h
225         BKE_group.h
226         BKE_icons.h
227         BKE_idcode.h
228         BKE_idprop.h
229         BKE_image.h
230         BKE_ipo.h
231         BKE_key.h
232         BKE_lamp.h
233         BKE_lattice.h
234         BKE_library.h
235         BKE_library_query.h
236         BKE_linestyle.h
237         BKE_main.h
238         BKE_mask.h
239         BKE_material.h
240         BKE_mball.h
241         BKE_mball_tessellate.h
242         BKE_mesh.h
243         BKE_mesh_mapping.h
244         BKE_mesh_remap.h
245         BKE_modifier.h
246         BKE_movieclip.h
247         BKE_multires.h
248         BKE_nla.h
249         BKE_node.h
250         BKE_object.h
251         BKE_object_deform.h
252         BKE_ocean.h
253         BKE_outliner_treehash.h
254         BKE_packedFile.h
255         BKE_paint.h
256         BKE_particle.h
257         BKE_pbvh.h
258         BKE_pointcache.h
259         BKE_property.h
260         BKE_report.h
261         BKE_rigidbody.h
262         BKE_sca.h
263         BKE_scene.h
264         BKE_screen.h
265         BKE_sequencer.h
266         BKE_shrinkwrap.h
267         BKE_sketch.h
268         BKE_smoke.h
269         BKE_softbody.h
270         BKE_sound.h
271         BKE_speaker.h
272         BKE_subsurf.h
273         BKE_suggestions.h
274         BKE_text.h
275         BKE_texture.h
276         BKE_tracking.h
277         BKE_unit.h
278         BKE_utildefines.h
279         BKE_world.h
280         BKE_writeavi.h
281         BKE_writeframeserver.h
282
283         depsgraph_private.h
284         nla_private.h
285         tracking_private.h
286         intern/CCGSubSurf.h
287         intern/pbvh_intern.h
288         intern/data_transfer_intern.h
289 )
290
291 if(WITH_BINRELOC)
292         list(APPEND INC_SYS
293                 ${BINRELOC_INCLUDE_DIRS}
294         )
295         add_definitions(-DWITH_BINRELOC)
296 endif()
297
298 add_definitions(${GL_DEFINITIONS})
299
300 if(WIN32)
301         list(APPEND INC
302                 ../../../intern/utfconv
303         )
304 endif()
305
306 if(WITH_AUDASPACE)
307         list(APPEND INC
308                 ../../../intern/audaspace/intern
309         )
310         add_definitions(-DWITH_AUDASPACE)
311 endif()
312
313 if(WITH_BULLET)
314         list(APPEND INC_SYS
315                 ${BULLET_INCLUDE_DIRS}
316         )
317         list(APPEND INC
318                 ../../../intern/rigidbody
319         )
320         add_definitions(-DWITH_BULLET)
321 endif()
322
323 #if(WITH_MOD_CLOTH_ELTOPO)
324 #       list(APPEND INC
325 #               ../../../extern/eltopo
326 #               ../../../extern/eltopo/eltopo3d
327 #       )
328 #       add_definitions(-DWITH_ELTOPO)
329 #endif()
330
331 if(WITH_IMAGE_OPENEXR)
332         add_definitions(-DWITH_OPENEXR)
333 endif()
334
335 if(WITH_IMAGE_TIFF)
336         add_definitions(-DWITH_TIFF)
337 endif()
338
339 if(WITH_OPENIMAGEIO)
340         add_definitions(-DWITH_OPENIMAGEIO)
341 endif()
342
343 if(WITH_IMAGE_OPENJPEG)
344         add_definitions(-DWITH_OPENJPEG)
345 endif()
346
347 if(WITH_IMAGE_DDS)
348         add_definitions(-DWITH_DDS)
349 endif()
350
351 if(WITH_IMAGE_CINEON)
352         add_definitions(-DWITH_CINEON)
353 endif()
354
355 if(WITH_IMAGE_FRAMESERVER)
356         add_definitions(-DWITH_FRAMESERVER)
357 endif()
358
359 if(WITH_IMAGE_HDR)
360         add_definitions(-DWITH_HDR)
361 endif()
362
363 if(WITH_CODEC_AVI)
364         list(APPEND INC
365                 ../avi
366         )
367         add_definitions(-DWITH_AVI)
368 endif()
369
370 if(WITH_CODEC_QUICKTIME)
371         list(APPEND INC
372                 ../quicktime
373         )
374         list(APPEND INC_SYS
375                 ${QUICKTIME_INCLUDE_DIRS}
376         )
377         add_definitions(-DWITH_QUICKTIME)
378 endif()
379
380 if(WITH_CODEC_FFMPEG)
381         list(APPEND SRC
382                 intern/writeffmpeg.c
383                 BKE_writeffmpeg.h
384         )
385         list(APPEND INC
386                 ../../../intern/ffmpeg
387         )
388         list(APPEND INC_SYS
389                 ${FFMPEG_INCLUDE_DIRS}
390         )
391         add_definitions(-DWITH_FFMPEG)
392
393         remove_strict_flags_file(
394                 intern/writeffmpeg.c
395         )
396 endif()
397
398 if(WITH_PYTHON)
399         list(APPEND INC
400                 ../python
401         )
402         add_definitions(-DWITH_PYTHON)
403
404         if(WITH_PYTHON_SECURITY)
405                 add_definitions(-DWITH_PYTHON_SECURITY)
406         endif()
407 endif()
408
409 if(WITH_MOD_FLUID)
410         list(APPEND INC
411                 ../../../intern/elbeem/extern
412         )
413         add_definitions(-DWITH_MOD_FLUID)
414 endif()
415
416 if(WITH_MOD_SMOKE)
417         add_definitions(-DWITH_SMOKE)
418 endif()
419
420 if(WITH_MOD_OCEANSIM)
421         add_definitions(-DWITH_OCEANSIM)
422 endif()
423
424 if(WITH_JACK)
425         add_definitions(-DWITH_JACK)
426 endif()
427
428 if(WITH_LZO)
429         if(WITH_SYSTEM_LZO)
430                 list(APPEND INC_SYS
431                         ${LZO_INCLUDE_DIR}
432                 )
433                 add_definitions(-DWITH_SYSTEM_LZO)
434         else()
435                 list(APPEND INC_SYS
436                         ../../../extern/lzo/minilzo
437                 )
438         endif()
439         add_definitions(-DWITH_LZO)
440 endif()
441
442 if(WITH_LZMA)
443         list(APPEND INC_SYS
444                 ../../../extern/lzma
445         )
446         add_definitions(-DWITH_LZMA)
447 endif()
448
449 if(WITH_GAMEENGINE)
450         list(APPEND INC_SYS
451                 ../../../extern/recastnavigation
452         )
453         list(APPEND SRC
454                 intern/navmesh_conversion.c
455                 BKE_navmesh_conversion.h
456         )
457
458         add_definitions(-DWITH_GAMEENGINE)
459 endif()
460
461 if(WITH_LIBMV)
462         add_definitions(-DWITH_LIBMV)
463 endif()
464
465 if(WITH_FFTW3)
466         list(APPEND INC_SYS
467                 ${FFTW3_INCLUDE_DIRS}
468         )
469         add_definitions(-DFFTW3=1)
470 endif()
471
472 if(WITH_INTERNATIONAL)
473         add_definitions(-DWITH_INTERNATIONAL)
474 endif()
475
476 if(WITH_FREESTYLE)
477         add_definitions(-DWITH_FREESTYLE)
478 endif()
479
480 ## Warnings as errors, this is too strict!
481 #if(MSVC)
482 #       set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
483 #endif()
484
485 blender_add_lib(bf_blenkernel "${SRC}" "${INC}" "${INC_SYS}")