Py/RNA API: WITH_PYTHON_SAFETY
[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         ../../blenlib
29         ../../makesdna
30         ../../makesrna
31         ../../blenkernel
32         ../../blenloader
33         ../../windowmanager
34         ../../editors/include
35         ../../../../intern/guardedalloc
36         ../../../../intern/audaspace/intern
37         ${PYTHON_INCLUDE_DIRS}
38 )
39
40 set(SRC
41         bpy.c
42         bpy_app.c
43         bpy_driver.c
44         bpy_interface.c
45         bpy_operator.c
46         bpy_operator_wrap.c
47         bpy_props.c
48         bpy_rna.c
49         bpy_rna_anim.c
50         bpy_rna_array.c
51         bpy_rna_callback.c
52         bpy_traceback.c
53         bpy_util.c
54         stubs.c
55
56         bpy.h
57         bpy_app.h
58         bpy_driver.h
59         bpy_operator.h
60         bpy_operator_wrap.h
61         bpy_props.h
62         bpy_rna.h
63         bpy_rna_anim.h
64         bpy_rna_callback.h
65         bpy_traceback.h
66         bpy_util.h
67         ../BPY_extern.h
68 )
69
70 # only to check if buildinfo is available
71 if(WITH_BUILDINFO)
72         add_definitions(-DBUILD_DATE)
73 endif()
74
75 if(WITH_PYTHON_MODULE)
76         add_definitions(-DWITH_PYTHON_MODULE)
77 endif()
78
79 if(WITH_PYTHON_SAFETY)
80         add_definitions(-DWITH_PYTHON_SAFETY)
81 endif()
82
83 blender_add_lib(bf_python "${SRC}" "${INC}")