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 *****
5
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')
7
38
incs = '. #/intern/guardedalloc #/intern/memutil'
8
39
incs += ' ../blenlib ../blenfont ../makesdna ../windowmanager'
9
incs += ' ../render/extern/include #/intern/decimation/extern ../makesrna'
40
incs += ' ../render/extern/include ../makesrna'
10
41
incs += ' ../imbuf ../ikplugin ../avi #/intern/elbeem/extern ../nodes ../modifiers'
11
42
incs += ' #/intern/iksolver/extern ../blenloader'
12
43
incs += ' #/extern/bullet2/src'
44
incs += ' #/intern/rigidbody'
13
45
incs += ' #/intern/opennl/extern #/intern/bsp/extern'
14
46
incs += ' ../gpu #/extern/glew/include'
15
47
incs += ' ../bmesh'
17
49
incs += ' #/intern/mikktspace'
18
50
incs += ' #/intern/audaspace/intern'
19
51
incs += ' #/intern/ffmpeg'
52
incs += ' #/intern/raskter'
21
54
incs += ' ' + env['BF_OPENGL_INC']
22
55
incs += ' ' + env['BF_ZLIB_INC']
32
65
if env['WITH_BF_PYTHON']:
33
66
incs += ' ../python'
34
incs += ' ' + env['BF_PYTHON_INC']
35
67
defs.append('WITH_PYTHON')
36
68
if env['BF_DEBUG']:
37
69
defs.append('DEBUG')
39
72
if env['WITH_BF_ELTOPO']:
40
incs += ' ../../../extern/eltopo'
73
incs += ' #/extern/eltopo'
74
incs += ' #/extern/eltopo/eltopo3d'
41
75
defs.append('WITH_ELTOPO')
43
77
if env['WITH_BF_QUICKTIME']:
44
78
incs += ' ../quicktime'
77
111
incs += ' ' + env['BF_QUICKTIME_INC']
79
113
if env['WITH_BF_BULLET']:
80
defs.append('USE_BULLET')
114
defs.append('WITH_BULLET')
82
116
if env['OURPLATFORM'] == 'darwin':
83
117
if env['WITH_BF_OPENMP']:
117
151
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
118
152
incs += ' ' + env['BF_PTHREADS_INC']
120
155
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
121
156
env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player'], priority = [166,25]) #, cc_compileflags = env['CCFLAGS'].append('/WX') )
123
158
env.BlenderLib ( libname = 'bf_blenkernel', sources = sources, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [166,25,0] )
160
env.BlenderLib ( libname = 'bf_blenkernel_mask', sources = sources_mask, includes = Split(incs), defines = defs, libtype=['core','player', 'player2'], priority = [200,25,0] )