Eevee: Stop depsgraph update callback form allocating unneeded memory
[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         gpu_py_matrix.c
51         gpu_py_select.c
52         bpy.c
53         bpy_app.c
54         bpy_app_alembic.c
55         bpy_app_build_options.c
56         bpy_app_ffmpeg.c
57         bpy_app_handlers.c
58         bpy_app_ocio.c
59         bpy_app_oiio.c
60         bpy_app_opensubdiv.c
61         bpy_app_openvdb.c
62         bpy_app_sdl.c
63         bpy_app_translations.c
64         bpy_driver.c
65         bpy_interface.c
66         bpy_interface_atexit.c
67         bpy_intern_string.c
68         bpy_library_load.c
69         bpy_library_write.c
70         bpy_manipulator_wrap.c
71         bpy_operator.c
72         bpy_operator_wrap.c
73         bpy_path.c
74         bpy_props.c
75         bpy_rna.c
76         bpy_rna_anim.c
77         bpy_rna_array.c
78         bpy_rna_callback.c
79         bpy_rna_driver.c
80         bpy_rna_id_collection.c
81         bpy_rna_manipulator.c
82         bpy_traceback.c
83         bpy_util.c
84         bpy_utils_previews.c
85         bpy_utils_units.c
86         stubs.c
87
88         gpu.h
89         bpy.h
90         bpy_app.h
91         bpy_app_alembic.h
92         bpy_app_build_options.h
93         bpy_app_ffmpeg.h
94         bpy_app_handlers.h
95         bpy_app_ocio.h
96         bpy_app_oiio.h
97         bpy_app_opensubdiv.h
98         bpy_app_openvdb.h
99         bpy_app_sdl.h
100         bpy_app_translations.h
101         bpy_driver.h
102         bpy_intern_string.h
103         bpy_library.h
104         bpy_manipulator_wrap.h
105         bpy_operator.h
106         bpy_operator_wrap.h
107         bpy_path.h
108         bpy_props.h
109         bpy_rna.h
110         bpy_rna_anim.h
111         bpy_rna_callback.h
112         bpy_rna_driver.h
113         bpy_rna_id_collection.h
114         bpy_rna_manipulator.h
115         bpy_traceback.h
116         bpy_util.h
117         bpy_utils_previews.h
118         bpy_utils_units.h
119         ../BPY_extern.h
120 )
121
122 # only to check if buildinfo is available
123 if(WITH_BUILDINFO)
124         add_definitions(-DBUILD_DATE)
125 endif()
126
127 if(WITH_PYTHON_MODULE)
128         add_definitions(-DWITH_PYTHON_MODULE)
129 endif()
130
131 if(WITH_PYTHON_SAFETY)
132         add_definitions(-DWITH_PYTHON_SAFETY)
133 endif()
134
135
136
137 if(WITH_AUDASPACE)
138         add_definitions(-DWITH_AUDASPACE)
139 endif()
140
141 if(WITH_BULLET)
142         add_definitions(-DWITH_BULLET)
143 endif()
144
145 if(WITH_CODEC_AVI)
146         add_definitions(-DWITH_AVI)
147 endif()
148
149 if(WITH_CODEC_FFMPEG)
150         list(APPEND INC_SYS
151                 ${FFMPEG_INCLUDE_DIRS}
152         )
153         add_definitions(-DWITH_FFMPEG)
154 endif()
155
156 if(WITH_CODEC_SNDFILE)
157         add_definitions(-DWITH_SNDFILE)
158 endif()
159
160 if(WITH_COMPOSITOR)
161         add_definitions(-DWITH_COMPOSITOR)
162 endif()
163
164 if(WITH_CYCLES)
165         add_definitions(-DWITH_CYCLES)
166 endif()
167
168 if(WITH_CYCLES_OSL)
169         add_definitions(-DWITH_CYCLES_OSL)
170 endif()
171
172 if(WITH_FREESTYLE)
173         list(APPEND INC
174                 ../../freestyle/intern/python
175         )
176         add_definitions(-DWITH_FREESTYLE)
177 endif()
178
179 if(WITH_GAMEENGINE)
180         add_definitions(-DWITH_GAMEENGINE)
181 endif()
182
183 if(WITH_IMAGE_CINEON)
184         add_definitions(-DWITH_CINEON)
185 endif()
186
187 if(WITH_IMAGE_DDS)
188         add_definitions(-DWITH_DDS)
189 endif()
190
191 if(WITH_IMAGE_FRAMESERVER)
192         add_definitions(-DWITH_FRAMESERVER)
193 endif()
194
195 if(WITH_IMAGE_HDR)
196         add_definitions(-DWITH_HDR)
197 endif()
198
199 if(WITH_IMAGE_OPENEXR)
200         add_definitions(-DWITH_OPENEXR)
201 endif()
202
203 if(WITH_OPENIMAGEIO)
204         add_definitions(-DWITH_OPENIMAGEIO)
205 endif()
206
207 if(WITH_IMAGE_OPENJPEG)
208         add_definitions(-DWITH_OPENJPEG)
209 endif()
210
211 if(WITH_IMAGE_TIFF)
212         add_definitions(-DWITH_TIFF)
213 endif()
214
215 if(WITH_INPUT_NDOF)
216         add_definitions(-DWITH_INPUT_NDOF)
217 endif()
218
219 if(WITH_INTERNATIONAL)
220         add_definitions(-DWITH_INTERNATIONAL)
221 endif()
222
223 if(WITH_OPENAL)
224         add_definitions(-DWITH_OPENAL)
225 endif()
226
227 if(WITH_SDL)
228         list(APPEND INC_SYS
229                 ${SDL_INCLUDE_DIR}
230         )
231         add_definitions(-DWITH_SDL)
232 endif()
233
234 if(WITH_SDL_DYNLOAD)
235         list(APPEND INC
236                 ../../../../extern/sdlew/include
237         )
238         add_definitions(-DWITH_SDL_DYNLOAD)
239 endif()
240
241 if(WITH_JACK)
242         add_definitions(-DWITH_JACK)
243 endif()
244
245 if(WITH_LIBMV)
246         add_definitions(-DWITH_LIBMV)
247 endif()
248
249 if(WITH_MOD_BOOLEAN)
250         add_definitions(-DWITH_MOD_BOOLEAN)
251 endif()
252
253 if(WITH_MOD_FLUID)
254         add_definitions(-DWITH_MOD_FLUID)
255 endif()
256
257 if(WITH_MOD_OCEANSIM)
258         add_definitions(-DWITH_OCEANSIM)
259 endif()
260
261 if(WITH_MOD_REMESH)
262         add_definitions(-DWITH_MOD_REMESH)
263 endif()
264
265 if(WITH_MOD_SMOKE)
266         add_definitions(-DWITH_SMOKE)
267 endif()
268
269 if(WITH_OPENCOLLADA)
270         add_definitions(-DWITH_COLLADA)
271 endif()
272
273 if(WITH_ALEMBIC)
274         add_definitions(-DWITH_ALEMBIC)
275 endif()
276
277 if(WITH_OPENCOLORIO)
278         add_definitions(-DWITH_OCIO)
279 endif()
280
281 if(WITH_OPENVDB)
282         add_definitions(-DWITH_OPENVDB)
283         list(APPEND INC
284                 ../../../../intern/openvdb
285         )
286 endif()
287
288 if(WITH_ALEMBIC)
289         add_definitions(-DWITH_ALEMBIC)
290         list(APPEND INC
291                 ../../alembic
292         )
293 endif()
294
295 if(WITH_OPENIMAGEIO)
296         add_definitions(-DWITH_OPENIMAGEIO)
297         list(APPEND INC
298                 ../../imbuf/intern/oiio
299         )
300 endif()
301
302 if(WITH_OPENSUBDIV)
303         add_definitions(-DWITH_OPENSUBDIV)
304         list(APPEND INC
305                 ../../../../intern/opensubdiv
306         )
307 endif()
308
309 if(WITH_PLAYER)
310         add_definitions(-DWITH_PLAYER)
311 endif()
312
313 add_definitions(${GL_DEFINITIONS})
314
315 blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")