Cycles code refactoring: change displace kernel into more generic shader
[blender-staging.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         ../../../../intern/guardedalloc
38 )
39
40 set(INC_SYS
41         ${PYTHON_INCLUDE_DIRS}
42 )
43
44 set(SRC
45         gpu.c
46         bpy.c
47         bpy_app.c
48         bpy_app_ffmpeg.c
49         bpy_app_handlers.c
50         bpy_driver.c
51         bpy_interface.c
52         bpy_interface_atexit.c
53         bpy_intern_string.c
54         bpy_library.c
55         bpy_operator.c
56         bpy_operator_wrap.c
57         bpy_props.c
58         bpy_rna.c
59         bpy_rna_anim.c
60         bpy_rna_array.c
61         bpy_rna_callback.c
62         bpy_traceback.c
63         bpy_util.c
64         stubs.c
65
66         gpu.h
67         bpy.h
68         bpy_app.h
69         bpy_app_ffmpeg.h
70         bpy_app_handlers.h
71         bpy_driver.h
72         bpy_intern_string.h
73         bpy_operator.h
74         bpy_operator_wrap.h
75         bpy_props.h
76         bpy_rna.h
77         bpy_rna_anim.h
78         bpy_rna_callback.h
79         bpy_traceback.h
80         bpy_util.h
81         ../BPY_extern.h
82 )
83
84 # only to check if buildinfo is available
85 if(WITH_BUILDINFO)
86         add_definitions(-DBUILD_DATE)
87 endif()
88
89 if(WITH_PYTHON_MODULE)
90         add_definitions(-DWITH_PYTHON_MODULE)
91 endif()
92
93 if(WITH_PYTHON_SAFETY)
94         add_definitions(-DWITH_PYTHON_SAFETY)
95 endif()
96
97 if(WITH_AUDASPACE)
98         add_definitions(-DWITH_AUDASPACE)
99 endif()
100
101 if(WITH_CYCLES)
102         add_definitions(-DWITH_CYCLES)
103 endif()
104
105 if(WITH_INTERNATIONAL)
106         add_definitions(-DWITH_INTERNATIONAL)
107 endif()
108
109 if(WITH_CODEC_FFMPEG)
110         list(APPEND INC_SYS
111                 ${FFMPEG_INCLUDE_DIRS}
112         )
113
114         add_definitions(-DWITH_FFMPEG)
115 endif()
116
117 blender_add_lib(bf_python "${SRC}" "${INC}" "${INC_SYS}")