forked from bartvdbraak/blender
208da2a5d0
using bandoler's patch as a basis (thanks!). A couple of notes: - This is for windows only, I did not have a chance to try linux yet. - SConscript for PHY_Bullet may need tweaking (plus support for other platforms), but at least it's in there :) Any problems, shout :)
23 lines
574 B
Python
23 lines
574 B
Python
#!/usr/bin/python
|
|
import sys
|
|
Import ('user_options_dict')
|
|
Import ('library_env')
|
|
|
|
phy_bullet_env = library_env.Copy ()
|
|
|
|
source_files = ['CcdPhysicsEnvironment.cpp',
|
|
'CcdPhysicsController.cpp'
|
|
]
|
|
|
|
phy_bullet_env.Append (CPPPATH=['.',
|
|
'../common'])
|
|
|
|
phy_bullet_env.Append (CPPPATH = user_options_dict['BULLET_INCLUDE'])
|
|
|
|
|
|
if sys.platform=='win32':
|
|
phy_bullet_env.Append (CXXFLAGS = ['/GR'])
|
|
phy_bullet_env.Append (CCFLAGS =['/O2'])
|
|
|
|
phy_bullet_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/PHY_Bullet', source=source_files)
|