3 # ***** BEGIN GPL LICENSE BLOCK *****
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.
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.
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.
19 # The Original Code is Copyright (C) 2006, Blender Foundation
20 # All rights reserved.
22 # The Original Code is: all of this file.
24 # Contributor(s): Nathan Letwory.
26 # ***** END GPL LICENSE BLOCK *****
31 sources = env.Glob('intern/*.c')
32 sources.remove('intern' + os.sep + 'mask_rasterize.c')
33 sources.remove('intern' + os.sep + 'mask_evaluate.c')
34 sources.remove('intern' + os.sep + 'mask.c')
36 sources_mask = env.Glob('intern/mask*.c')
42 '#/intern/guardedalloc',
44 '#/intern/mikktspace',
47 '#/extern/bullet2/src',
48 '#/extern/glew/include',
49 '#/intern/audaspace/intern',
50 '#/intern/bsp/extern',
51 '#/intern/elbeem/extern',
52 '#/intern/iksolver/extern',
53 '#/intern/opennl/extern',
54 '#/intern/smoke/extern',
68 '../render/extern/include',
79 if env['WITH_BF_SMOKE']:
80 defs.append('WITH_SMOKE')
82 if env['WITH_BF_FRAMESERVER']:
83 defs.append('WITH_FRAMESERVER')
85 if env['WITH_BF_PYTHON']:
87 defs.append('WITH_PYTHON')
92 if env['WITH_BF_ELTOPO']:
93 incs += ' #/extern/eltopo'
94 incs += ' #/extern/eltopo/eltopo3d'
95 defs.append('WITH_ELTOPO')
97 if env['WITH_BF_QUICKTIME']:
98 incs += ' ../quicktime'
100 if env['WITH_BF_SDL']:
101 incs += ' ' + env['BF_SDL_INC']
102 defs.append('WITH_SDL')
104 if env['WITH_BF_OIIO']:
105 defs.append('WITH_OIIO')
107 if env['WITH_BF_OPENEXR']:
108 defs.append('WITH_OPENEXR')
110 if env['WITH_BF_TIFF']:
111 defs.append('WITH_TIFF')
113 if env['WITH_BF_OPENJPEG']:
114 defs.append('WITH_OPENJPEG')
116 if env['WITH_BF_DDS']:
117 defs.append('WITH_DDS')
119 if env['WITH_BF_CINEON']:
120 defs.append('WITH_CINEON')
122 if env['WITH_BF_HDR']:
123 defs.append('WITH_HDR')
125 if env['WITH_BF_JACK']:
126 defs.append('WITH_JACK')
128 if env['WITH_BF_FFMPEG']:
129 defs.append('WITH_FFMPEG')
130 incs += ' ' + env['BF_FFMPEG_INC']
132 if env['WITH_BF_QUICKTIME']:
133 defs.append('WITH_QUICKTIME')
134 incs += ' ' + env['BF_QUICKTIME_INC']
136 if env['WITH_BF_BULLET']:
137 defs.append('WITH_BULLET')
139 if env['WITH_BF_FLUID']:
140 defs.append('WITH_MOD_FLUID')
142 if env['WITH_BF_OCEANSIM']:
143 defs.append('WITH_OCEANSIM')
145 if env['WITH_BF_LZO']:
146 incs += ' #/extern/lzo/minilzo'
147 defs.append('WITH_LZO')
149 if env['WITH_BF_LZMA']:
150 incs += ' #/extern/lzma'
151 defs.append('WITH_LZMA')
153 if env['WITH_BF_GAMEENGINE']:
154 incs += ' #/extern/recastnavigation'
155 defs.append('WITH_GAMEENGINE')
157 sources.remove('intern' + os.sep + 'navmesh_conversion.c')
159 if env['WITH_BF_LIBMV']:
160 defs.append('WITH_LIBMV')
162 if env['WITH_BF_FFTW3']:
163 defs.append('FFTW3=1')
164 incs += ' ' + env['BF_FFTW3_INC']
166 if env['WITH_BF_INTERNATIONAL']:
167 defs.append('WITH_INTERNATIONAL')
169 if env['WITH_BF_FREESTYLE']:
170 defs.append('WITH_FREESTYLE')
172 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
173 incs += ' ' + env['BF_PTHREADS_INC']
176 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
177 env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [166,25]) #, cc_compileflags = env['CCFLAGS'].append('/WX') )
179 env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [166,25,0] )
181 env.BlenderLib ( libname = 'bf_blenkernel_mask', sources = sources_mask, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [200,25,0] )