forked from bartvdbraak/blender
e1ab3cf480
* Game engine can now be build on Linux. By default this feature is disabled. The reason is that you need to have a precompiled version of the ode library for your gcc version. To enable ode support you need to do the following: - compile ode. - set BUILD_GAMEENGINE = 'true' in the config.opts file. - set USE_PHYSICS='ode' in the config.opts file. - set the ODE_INCLUDE and ODE_LIBPATH to valid locations. * Linking order has changed for the game engine There are cyclic dependencies between libraries. On linux we have to do some duplicate linking. I looked at the order of linking in source/Makefile, and did some clean up.
21 lines
645 B
Python
Executable File
21 lines
645 B
Python
Executable File
phy_ode_env = Environment()
|
|
|
|
# Import the C flags set in the SConstruct file
|
|
Import ('cflags')
|
|
Import ('cxxflags')
|
|
Import ('defines')
|
|
Import ('user_options_dict')
|
|
phy_ode_env.Append (CCFLAGS = cflags)
|
|
phy_ode_env.Append (CXXFLAGS = cxxflags)
|
|
phy_ode_env.Append (CPPDEFINES = defines)
|
|
|
|
source_files = ['OdePhysicsController.cpp',
|
|
'OdePhysicsEnvironment.cpp']
|
|
|
|
phy_ode_env.Append (CPPPATH=['.',
|
|
'../common',
|
|
])
|
|
phy_ode_env.Append (CPPPATH=user_options_dict['ODE_INCLUDE'])
|
|
|
|
phy_ode_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/PHY_Ode', source=source_files)
|