2005-08-01 21:19:41 +00:00
|
|
|
#!/usr/bin/python
|
2006-02-04 14:15:10 +00:00
|
|
|
Import ('env')
|
2005-08-01 21:19:41 +00:00
|
|
|
|
2009-04-20 15:06:46 +00:00
|
|
|
sources = 'CcdPhysicsEnvironment.cpp CcdPhysicsController.cpp CcdGraphicController.cpp'
|
2005-08-01 21:19:41 +00:00
|
|
|
|
2009-04-20 15:06:46 +00:00
|
|
|
incs = '. ../common'
|
|
|
|
incs += ' #intern/string'
|
|
|
|
incs += ' #intern/moto/include'
|
|
|
|
incs += ' #extern/glew/include'
|
|
|
|
incs += ' #source/gameengine/Rasterizer'
|
|
|
|
incs += ' #source/gameengine/Ketsji'
|
|
|
|
incs += ' #source/gameengine/Expressions'
|
|
|
|
incs += ' #source/gameengine/GameLogic'
|
|
|
|
incs += ' #source/gameengine/SceneGraph'
|
|
|
|
incs += ' #source/blender/makesdna'
|
2009-06-08 20:08:19 +00:00
|
|
|
incs += ' #source/blender/blenkernel'
|
|
|
|
incs += ' #source/blender/blenlib'
|
|
|
|
incs += ' #intern/guardedalloc'
|
2011-05-06 20:18:42 +00:00
|
|
|
incs += ' #intern/container'
|
2005-08-01 21:19:41 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' ' + env['BF_BULLET_INC']
|
2005-08-01 21:19:41 +00:00
|
|
|
|
2009-09-29 21:42:40 +00:00
|
|
|
defs = []
|
|
|
|
|
|
|
|
if env['WITH_BF_PYTHON']:
|
2010-08-29 20:52:05 +00:00
|
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
2010-10-31 04:11:39 +00:00
|
|
|
defs.append('WITH_PYTHON')
|
2009-09-29 21:42:40 +00:00
|
|
|
|
2010-10-08 20:39:56 +00:00
|
|
|
if env['WITH_BF_CXX_GUARDEDALLOC']:
|
|
|
|
defs.append('WITH_CXX_GUARDEDALLOC')
|
|
|
|
|
2010-10-10 07:01:56 +00:00
|
|
|
if env['WITH_BF_BULLET']:
|
|
|
|
defs.append('USE_BULLET')
|
|
|
|
|
2010-11-18 11:42:05 +00:00
|
|
|
env.BlenderLib ( 'ge_phys_bullet', Split(sources), Split(incs), defs, libtype=['core','player'], priority=[350,50], cxx_compileflags=env['BGE_CXXFLAGS'])
|