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