diff options
author | Simon Clitherow <aphex@nildram.co.uk> | 2005-08-02 01:19:41 +0400 |
---|---|---|
committer | Simon Clitherow <aphex@nildram.co.uk> | 2005-08-02 01:19:41 +0400 |
commit | 208da2a5d0eaf2f64f7b73d0b24b619d7546bf8d (patch) | |
tree | 242fcb58abef2c0e2af01cc1d9f03dbed6308fae /source/gameengine/Physics/Bullet/SConscript | |
parent | bc865d6d2098d82f9a00655b8aa89a326244db0a (diff) |
Added support for compiling BULLET with scons on windows
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 :)
Diffstat (limited to 'source/gameengine/Physics/Bullet/SConscript')
-rw-r--r-- | source/gameengine/Physics/Bullet/SConscript | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/gameengine/Physics/Bullet/SConscript b/source/gameengine/Physics/Bullet/SConscript new file mode 100644 index 00000000000..8d82f346757 --- /dev/null +++ b/source/gameengine/Physics/Bullet/SConscript @@ -0,0 +1,22 @@ +#!/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) |