4e2d9642bc30de3365b567e21f16d0d0af521b66
[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 )
37
38 set(INC_SYS
39         ${PYTHON_INCLUDE_DIRS}
40 )
41
42 set(SRC
43         bpy.c
44         bpy_app.c
45         bpy_driver.c
46         bpy_interface.c
47         bpy_intern_string.c
48         bpy_library.c
49         bpy_operator.c
50         bpy_operator_wrap.c
51         bpy_props.c
52         bpy_rna.c
53         bpy_rna_anim.c
54         bpy_rna_array.c
55         bpy_rna_callback.c
56         bpy_traceback.c
57         bpy_util.c
58         stubs.c
59
60         bpy.h
61         bpy_app.h
62         bpy_driver.h
63         bpy_intern_string.h
64         bpy_operator.h
65         bpy_operator_wrap.h
66         bpy_props.h
67         bpy_rna.h
68         bpy_rna_anim.h
69         bpy_rna_callback.h
70         bpy_traceback.h
71         bpy_util.h
72         ../BPY_extern.h
73 )
74
75 # only to check if buildinfo is available
76 if(WITH_BUILDINFO)
77         add_definitions(-DBUILD_DATE)
78 endif()
79
80 if(WITH_PYTHON_MODULE)
81         add_definitions(-DWITH_PYTHON_MODULE)
82 endif()
83
84 if(WITH_PYTHON_SAFETY)
85         add_definitions(-DWITH_PYTHON_SAFETY)
86 endif()
87
88 if(WITH_AUDASPACE)
89         list(APPEND INC
90                 ../../../intern/audaspace/intern
91         )
92         add_definitions(-DWITH_AUDASPACE)
93 endif()
94
95 blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")