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