Merged changes in the trunk up to revision 54992.
[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_FREESTYLE)
147         list(APPEND INC
148                 ../../freestyle/intern/python
149         )
150         add_definitions(-DWITH_FREESTYLE)
151 endif()
152
153 if(WITH_GAMEENGINE)
154         add_definitions(-DWITH_GAMEENGINE)
155 endif()
156
157 if(WITH_IMAGE_CINEON)
158         add_definitions(-DWITH_CINEON)
159 endif()
160
161 if(WITH_IMAGE_DDS)
162         add_definitions(-DWITH_DDS)
163 endif()
164
165 if(WITH_IMAGE_FRAMESERVER)
166         add_definitions(-DWITH_FRAMESERVER)
167 endif()
168
169 if(WITH_IMAGE_HDR)
170         add_definitions(-DWITH_HDR)
171 endif()
172
173 if(WITH_IMAGE_OPENEXR)
174         add_definitions(-DWITH_OPENEXR)
175 endif()
176
177 if(WITH_IMAGE_OPENJPEG)
178         add_definitions(-DWITH_OPENJPEG)
179 endif()
180
181 if(WITH_IMAGE_REDCODE)
182         add_definitions(-DWITH_REDCODE)
183 endif()
184
185 if(WITH_IMAGE_TIFF)
186         add_definitions(-DWITH_TIFF)
187 endif()
188
189 if(WITH_INPUT_NDOF)
190         add_definitions(-DWITH_INPUT_NDOF)
191 endif()
192
193 if(WITH_INTERNATIONAL)
194         add_definitions(-DWITH_INTERNATIONAL)
195 endif()
196
197 if(WITH_OPENAL)
198         add_definitions(-DWITH_OPENAL)
199 endif()
200
201 if(WITH_SDL)
202         add_definitions(-DWITH_SDL)
203 endif()
204
205 if(WITH_JACK)
206         add_definitions(-DWITH_JACK)
207 endif()
208
209 if(WITH_LIBMV)
210         add_definitions(-DWITH_LIBMV)
211 endif()
212
213 if(WITH_MOD_BOOLEAN)
214         add_definitions(-DWITH_MOD_BOOLEAN)
215 endif()
216
217 if(WITH_MOD_FLUID)
218         add_definitions(-DWITH_MOD_FLUID)
219 endif()
220
221 if(WITH_MOD_OCEANSIM)
222         add_definitions(-DWITH_OCEANSIM)
223 endif()
224
225 if(WITH_MOD_REMESH)
226         add_definitions(-DWITH_MOD_REMESH)
227 endif()
228
229 if(WITH_MOD_SMOKE)
230         add_definitions(-DWITH_SMOKE)
231 endif()
232
233 if(WITH_OPENCOLLADA)
234         add_definitions(-DWITH_COLLADA)
235 endif()
236
237 if(WITH_OPENCOLORIO)
238         add_definitions(-DWITH_OCIO)
239 endif()
240
241 if(WITH_PLAYER)
242         add_definitions(-DWITH_PLAYER)
243 endif()
244
245
246
247
248 blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")