code cleanup: remove unused and unsupported functions from libmv-capi
[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         ../../blenfont
29         ../../blenkernel
30         ../../blenlib
31         ../../blenloader
32         ../../editors/include
33         ../../gpu
34         ../../makesdna
35         ../../makesrna
36         ../../windowmanager
37         ../../../../intern/cycles/blender
38         ../../../../intern/guardedalloc
39 )
40
41 set(INC_SYS
42         ${PYTHON_INCLUDE_DIRS}
43 )
44
45 set(SRC
46         gpu.c
47         bpy.c
48         bpy_app.c
49         bpy_app_ffmpeg.c
50         bpy_app_build_options.c
51         bpy_app_handlers.c
52         bpy_app_translations.c
53         bpy_driver.c
54         bpy_interface.c
55         bpy_interface_atexit.c
56         bpy_intern_string.c
57         bpy_library.c
58         bpy_operator.c
59         bpy_operator_wrap.c
60         bpy_path.c
61         bpy_props.c
62         bpy_rna.c
63         bpy_rna_anim.c
64         bpy_rna_array.c
65         bpy_rna_callback.c
66         bpy_traceback.c
67         bpy_util.c
68         stubs.c
69
70         gpu.h
71         bpy.h
72         bpy_app.h
73         bpy_app_ffmpeg.h
74         bpy_app_build_options.h
75         bpy_app_handlers.h
76         bpy_app_translations.h
77         bpy_driver.h
78         bpy_intern_string.h
79         bpy_library.h
80         bpy_operator.h
81         bpy_operator_wrap.h
82         bpy_path.h
83         bpy_props.h
84         bpy_rna.h
85         bpy_rna_anim.h
86         bpy_rna_callback.h
87         bpy_traceback.h
88         bpy_util.h
89         ../BPY_extern.h
90 )
91
92 # only to check if buildinfo is available
93 if(WITH_BUILDINFO)
94         add_definitions(-DBUILD_DATE)
95 endif()
96
97 if(WITH_PYTHON_MODULE)
98         add_definitions(-DWITH_PYTHON_MODULE)
99 endif()
100
101 if(WITH_PYTHON_SAFETY)
102         add_definitions(-DWITH_PYTHON_SAFETY)
103 endif()
104
105
106
107 if(WITH_AUDASPACE)
108         add_definitions(-DWITH_AUDASPACE)
109 endif()
110
111 if(WITH_BULLET)
112         add_definitions(-DWITH_BULLET)
113 endif()
114
115 if(WITH_CODEC_AVI)
116         add_definitions(-DWITH_AVI)
117 endif()
118
119 if(WITH_CODEC_FFMPEG)
120         list(APPEND INC_SYS
121                 ${FFMPEG_INCLUDE_DIRS}
122         )
123         add_definitions(-DWITH_FFMPEG)
124 endif()
125
126 if(WITH_CODEC_QUICKTIME)
127         add_definitions(-DWITH_QUICKTIME)
128 endif()
129
130 if(WITH_CODEC_SNDFILE)
131         add_definitions(-DWITH_SNDFILE)
132 endif()
133
134 if(WITH_COMPOSITOR)
135         add_definitions(-DWITH_COMPOSITOR)
136 endif()
137
138 if(WITH_CYCLES)
139         add_definitions(-DWITH_CYCLES)
140 endif()
141
142 if(WITH_CYCLES_OSL)
143         add_definitions(-DWITH_CYCLES_OSL)
144 endif()
145
146 if(WITH_GAMEENGINE)
147         add_definitions(-DWITH_GAMEENGINE)
148 endif()
149
150 if(WITH_IMAGE_CINEON)
151         add_definitions(-DWITH_CINEON)
152 endif()
153
154 if(WITH_IMAGE_DDS)
155         add_definitions(-DWITH_DDS)
156 endif()
157
158 if(WITH_IMAGE_FRAMESERVER)
159         add_definitions(-DWITH_FRAMESERVER)
160 endif()
161
162 if(WITH_IMAGE_HDR)
163         add_definitions(-DWITH_HDR)
164 endif()
165
166 if(WITH_IMAGE_OPENEXR)
167         add_definitions(-DWITH_OPENEXR)
168 endif()
169
170 if(WITH_IMAGE_OPENJPEG)
171         add_definitions(-DWITH_OPENJPEG)
172 endif()
173
174 if(WITH_IMAGE_REDCODE)
175         add_definitions(-DWITH_REDCODE)
176 endif()
177
178 if(WITH_IMAGE_TIFF)
179         add_definitions(-DWITH_TIFF)
180 endif()
181
182 if(WITH_INPUT_NDOF)
183         add_definitions(-DWITH_INPUT_NDOF)
184 endif()
185
186 if(WITH_INTERNATIONAL)
187         add_definitions(-DWITH_INTERNATIONAL)
188 endif()
189
190 if(WITH_OPENAL)
191         add_definitions(-DWITH_OPENAL)
192 endif()
193
194 if(WITH_SDL)
195         add_definitions(-DWITH_SDL)
196 endif()
197
198 if(WITH_JACK)
199         add_definitions(-DWITH_JACK)
200 endif()
201
202 if(WITH_LIBMV)
203         add_definitions(-DWITH_LIBMV)
204 endif()
205
206 if(WITH_MOD_BOOLEAN)
207         add_definitions(-DWITH_MOD_BOOLEAN)
208 endif()
209
210 if(WITH_MOD_FLUID)
211         add_definitions(-DWITH_MOD_FLUID)
212 endif()
213
214 if(WITH_MOD_OCEANSIM)
215         add_definitions(-DWITH_OCEANSIM)
216 endif()
217
218 if(WITH_MOD_REMESH)
219         add_definitions(-DWITH_MOD_REMESH)
220 endif()
221
222 if(WITH_MOD_SMOKE)
223         add_definitions(-DWITH_SMOKE)
224 endif()
225
226 if(WITH_OPENCOLLADA)
227         add_definitions(-DWITH_COLLADA)
228 endif()
229
230 if(WITH_OPENCOLORIO)
231         add_definitions(-DWITH_OCIO)
232 endif()
233
234 if(WITH_PLAYER)
235         add_definitions(-DWITH_PLAYER)
236 endif()
237
238
239
240
241 blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")