fix [#28672] Blender segfault after exiting a game that was opened with
[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         ../../blenkernel
29         ../../blenlib
30         ../../blenloader
31         ../../editors/include
32         ../../makesdna
33         ../../makesrna
34         ../../windowmanager
35     ../../gpu
36         ../../../../intern/guardedalloc
37 )
38
39 set(INC_SYS
40         ${PYTHON_INCLUDE_DIRS}
41 )
42
43 set(SRC
44     gpu.c
45         bpy.c
46         bpy_app.c
47         bpy_app_handlers.c
48         bpy_driver.c
49         bpy_interface.c
50         bpy_interface_atexit.c
51         bpy_intern_string.c
52         bpy_library.c
53         bpy_operator.c
54         bpy_operator_wrap.c
55         bpy_props.c
56         bpy_rna.c
57         bpy_rna_anim.c
58         bpy_rna_array.c
59         bpy_rna_callback.c
60         bpy_traceback.c
61         bpy_util.c
62         stubs.c
63
64     gpu.h
65         bpy.h
66         bpy_app.h
67         bpy_app_handlers.h
68         bpy_driver.h
69         bpy_intern_string.h
70         bpy_operator.h
71         bpy_operator_wrap.h
72         bpy_props.h
73         bpy_rna.h
74         bpy_rna_anim.h
75         bpy_rna_callback.h
76         bpy_traceback.h
77         bpy_util.h
78         ../BPY_extern.h
79 )
80
81 # only to check if buildinfo is available
82 if(WITH_BUILDINFO)
83         add_definitions(-DBUILD_DATE)
84 endif()
85
86 if(WITH_PYTHON_MODULE)
87         add_definitions(-DWITH_PYTHON_MODULE)
88 endif()
89
90 if(WITH_PYTHON_SAFETY)
91         add_definitions(-DWITH_PYTHON_SAFETY)
92 endif()
93
94 if(WITH_AUDASPACE)
95         add_definitions(-DWITH_AUDASPACE)
96 endif()
97
98 blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")