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