workaround for loopselect-slide (with multicut enabled) changing from vertex-select...
[blender-staging.git] / source / blender / python / SConscript
1 #!/usr/bin/env python
2 #
3 # ***** BEGIN GPL LICENSE BLOCK *****
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #
19 # The Original Code is Copyright (C) 2006, Blender Foundation
20 # All rights reserved.
21 #
22 # The Original Code is: all of this file.
23 #
24 # Contributor(s): Nathan Letwory.
25 #
26 # ***** END GPL LICENSE BLOCK *****
27
28 # TODO, split into 3 files.
29
30 Import ('env')
31
32 incs = '. ../editors/include ../makesdna ../makesrna ../blenfont ../blenlib ../blenkernel ../nodes'
33 incs += ' ../imbuf ../blenloader ../bmesh ../gpu ../render/extern/include ../windowmanager'
34 incs += ' #intern/guardedalloc #intern/memutil #extern/glew/include #intern/cycles/blender'
35 incs += ' #intern/audaspace/intern ' + env['BF_PYTHON_INC']
36
37 is_debug = (env['OURPLATFORM'] in ('win32-mingw', 'win32-vc','win64-vc', 'win64-mingw') and env['BF_DEBUG'])
38
39 # bmesh
40 defs = []
41
42 sources = env.Glob('bmesh/*.c')
43 env.BlenderLib( libname = 'bf_python_bmesh', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core','player'], priority = [362,165])
44
45 # generic
46 defs = ['GLEW_STATIC']
47
48 if is_debug:
49     defs.append('_DEBUG')
50
51 sources = env.Glob('generic/*.c')
52 env.BlenderLib( libname = 'bf_python_ext', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core','player'], priority = [363,165]) # ketsji is 360
53
54
55 # mathutils
56 defs = []
57
58 sources = env.Glob('mathutils/*.c')
59 env.BlenderLib( libname = 'bf_python_mathutils', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core','player'], priority = [362,165])
60
61
62 # bpy
63 defs = []
64
65 if is_debug:
66     defs.append('_DEBUG')
67
68 if env['WITH_BF_PYTHON_SAFETY']:
69     defs.append('WITH_PYTHON_SAFETY')
70
71 if env['BF_BUILDINFO']:
72     defs.append('BUILD_DATE')
73
74
75 # Audaspace is always on currently
76
77 if env['WITH_BF_BULLET']:
78     defs.append('WITH_BULLET')
79
80 # AVI is always on currently
81
82 if env['WITH_BF_FFMPEG']:
83     defs.append('WITH_FFMPEG')
84     incs += ' ' + env['BF_FFMPEG_INC']
85
86 if env['WITH_BF_QUICKTIME']:
87     defs.append('WITH_QUICKTIME')
88
89 if env['WITH_BF_SNDFILE']:
90     defs.append('WITH_SNDFILE')
91
92 if env['WITH_BF_COMPOSITOR']:
93     defs.append('WITH_COMPOSITOR')
94
95 if env['WITH_BF_CYCLES']:
96     defs.append('WITH_CYCLES')
97
98 if env['WITH_BF_CYCLES_OSL']:
99     defs.append('WITH_CYCLES_OSL')
100
101 if env['WITH_BF_FREESTYLE']:
102     incs += ' ../freestyle/intern/python'
103     defs.append('WITH_FREESTYLE')
104
105 if env['WITH_BF_GAMEENGINE']:
106     defs.append('WITH_GAMEENGINE')
107
108 if env['WITH_BF_CINEON']:
109     defs.append('WITH_CINEON')
110
111 if env['WITH_BF_DDS']:
112     defs.append('WITH_DDS')
113
114 if env['WITH_BF_FRAMESERVER']:
115     defs.append('WITH_FRAMESERVER')
116
117 if env['WITH_BF_HDR']:
118     defs.append('WITH_HDR')
119
120 if env['WITH_BF_OPENEXR']:
121     defs.append('WITH_OPENEXR')
122
123 if env['WITH_BF_OPENJPEG']:
124     defs.append('WITH_OPENJPEG')
125
126 if env['WITH_BF_REDCODE']:
127     defs.append('WITH_REDCODE')
128
129 if env['WITH_BF_TIFF']:
130     defs.append('WITH_TIFF')
131
132 # NDof is always on currently
133
134 if env['WITH_BF_INTERNATIONAL']:
135     defs.append('WITH_INTERNATIONAL')
136
137 if env['WITH_BF_OPENAL']:
138     defs.append('WITH_OPENAL')
139
140 if env['WITH_BF_SDL']:
141     defs.append('WITH_SDL')
142
143 if env['WITH_BF_JACK']:
144     defs.append('WITH_JACK')
145
146 if env['WITH_BF_LIBMV']:
147     defs.append('WITH_LIBMV')
148
149 if env['WITH_BF_BOOLEAN']:
150     defs.append('WITH_MOD_BOOLEAN')
151
152 if env['WITH_BF_FLUID']:
153     defs.append('WITH_MOD_FLUID')
154
155 if env['WITH_BF_OCEANSIM']:
156     defs.append('WITH_OCEANSIM')
157
158 if env['WITH_BF_REMESH']:
159     defs.append('WITH_MOD_REMESH')
160
161 if env['WITH_BF_SMOKE']:
162     defs.append('WITH_SMOKE')
163
164 if env['WITH_BF_COLLADA']:
165     defs.append('WITH_COLLADA')
166
167 if env['WITH_BF_OIIO']:
168     defs.append('WITH_OCIO')
169
170 if env['WITH_BF_PLAYER']:
171     defs.append('WITH_PLAYER')
172     
173 if env['WITH_BF_OPENMP']:
174     defs.append('WITH_OPENMP')
175
176
177
178 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'win64-mingw', 'linuxcross', 'win64-vc'):
179     incs += ' ' + env['BF_PTHREADS_INC']
180
181 sources = env.Glob('intern/*.c')
182 env.BlenderLib( libname = 'bf_python', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core'], priority = [361])