2005-10-29 13:26:31 +00:00
|
|
|
#!/usr/bin/python
|
2006-02-04 14:15:10 +00:00
|
|
|
Import ('env')
|
2005-10-29 13:26:31 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs = '. intern extern ../moto/include ../container ../memutil'
|
2006-09-08 02:36:44 +00:00
|
|
|
incs += ' ../../source/blender/makesdna ../../intern/guardedalloc'
|
|
|
|
incs += ' ../../source/blender/blenlib'
|
2005-10-29 13:26:31 +00:00
|
|
|
|
2012-01-16 16:46:00 +00:00
|
|
|
defs = []
|
|
|
|
|
|
|
|
if not env['WITH_BF_CARVE']:
|
2012-01-23 08:48:52 +00:00
|
|
|
import os
|
2012-01-16 16:46:00 +00:00
|
|
|
sources = env.Glob('intern/*.cpp')
|
|
|
|
sources.remove('intern' + os.sep + 'BOP_CarveInterface.cpp')
|
|
|
|
else:
|
|
|
|
sources = env.Glob('intern/BOP_CarveInterface.cpp')
|
|
|
|
incs += ' ../../extern/carve/include'
|
|
|
|
|
|
|
|
if env['WITH_BF_BOOST']:
|
|
|
|
if env['OURPLATFORM'] not in ('win32-vc', 'win64-vc'):
|
|
|
|
# Boost is setting as preferred collections library in the Carve code when using MSVC compiler
|
2012-04-24 12:57:58 +00:00
|
|
|
if env['OURPLATFORM'] not in ('win32-mingw', 'win64-mingw'):
|
2012-01-17 10:32:17 +00:00
|
|
|
defs.append('HAVE_BOOST_UNORDERED_COLLECTIONS')
|
2012-01-16 16:46:00 +00:00
|
|
|
|
|
|
|
defs.append('CARVE_SYSTEM_BOOST')
|
|
|
|
incs += ' ' + env['BF_BOOST_INC']
|
|
|
|
|
2012-04-24 12:57:58 +00:00
|
|
|
if (env['OURPLATFORM'] in ('win32-mingw', 'win64-mingw')):
|
2010-08-25 04:30:47 +00:00
|
|
|
env.BlenderLib ('bf_intern_bop', sources, Split(incs) , [], libtype='intern', priority = 5 )
|
2006-11-28 21:12:31 +00:00
|
|
|
else:
|
2012-01-16 16:46:00 +00:00
|
|
|
env.BlenderLib ('bf_intern_bop', sources, Split(incs) , defs, libtype='intern', priority = 5 )
|
2006-11-28 21:12:31 +00:00
|
|
|
|