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 *****
30 sources = env.Glob('intern/*.cpp')
32 incs = 'intern ../container ../moto/include ../memutil ../guardedalloc ../../extern/carve/include'
36 if env['WITH_BF_BOOST']:
37 isMINGW = env['OURPLATFORM'] in ('win32-mingw', 'win64-mingw')
39 if env['OURPLATFORM'] not in ('win32-vc', 'win64-vc') and not isMINGW:
40 # Boost is setting as preferred collections library in the Carve code when using MSVC compiler
41 defs.append('HAVE_BOOST_UNORDERED_COLLECTIONS')
44 defs.append('CARVE_SYSTEM_BOOST')
46 incs += ' ' + env['BF_BOOST_INC']
48 env.BlenderLib ('bf_intern_bsp', sources, Split(incs), defs, libtype=['core','player'], priority=[200,100] )