Merged changes in the trunk up to revision 50607.
[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         ../../makesdna
34         ../../makesrna
35         ../../windowmanager
36         ../../gpu
37         ../../freestyle/intern/python
38         ../../../../intern/guardedalloc
39         ../../../../intern/cycles/blender
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_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_props.c
60         bpy_rna.c
61         bpy_rna_anim.c
62         bpy_rna_array.c
63         bpy_rna_callback.c
64         bpy_traceback.c
65         bpy_util.c
66         stubs.c
67
68         gpu.h
69         bpy.h
70         bpy_app.h
71         bpy_app_ffmpeg.h
72         bpy_app_handlers.h
73         bpy_driver.h
74         bpy_intern_string.h
75         bpy_operator.h
76         bpy_operator_wrap.h
77         bpy_props.h
78         bpy_rna.h
79         bpy_rna_anim.h
80         bpy_rna_callback.h
81         bpy_traceback.h
82         bpy_util.h
83         ../BPY_extern.h
84 )
85
86 # only to check if buildinfo is available
87 if(WITH_BUILDINFO)
88         add_definitions(-DBUILD_DATE)
89 endif()
90
91 if(WITH_PYTHON_MODULE)
92         add_definitions(-DWITH_PYTHON_MODULE)
93 endif()
94
95 if(WITH_PYTHON_SAFETY)
96         add_definitions(-DWITH_PYTHON_SAFETY)
97 endif()
98
99 if(WITH_AUDASPACE)
100         add_definitions(-DWITH_AUDASPACE)
101 endif()
102
103 if(WITH_CYCLES)
104         add_definitions(-DWITH_CYCLES)
105 endif()
106
107 if(WITH_INTERNATIONAL)
108         add_definitions(-DWITH_INTERNATIONAL)
109 endif()
110
111 if(WITH_CODEC_FFMPEG)
112         list(APPEND INC_SYS
113                 ${FFMPEG_INCLUDE_DIRS}
114         )
115
116         add_definitions(-DWITH_FFMPEG)
117 endif()
118
119 blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")