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