Added support for compiling BULLET with scons on windows
[blender-staging.git] / source / gameengine / Physics / Bullet / SConscript
1 #!/usr/bin/python
2 import sys
3 Import ('user_options_dict')
4 Import ('library_env')
5
6 phy_bullet_env = library_env.Copy ()
7
8 source_files = ['CcdPhysicsEnvironment.cpp',
9                 'CcdPhysicsController.cpp'
10                ]
11
12 phy_bullet_env.Append (CPPPATH=['.', 
13                                 '../common'])
14
15 phy_bullet_env.Append (CPPPATH = user_options_dict['BULLET_INCLUDE'])
16
17
18 if sys.platform=='win32':
19         phy_bullet_env.Append (CXXFLAGS = ['/GR'])
20         phy_bullet_env.Append (CCFLAGS =['/O2'])
21
22 phy_bullet_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/PHY_Bullet', source=source_files)