diff options
author | Michel Selten <michel@mselten.demon.nl> | 2004-03-01 00:40:48 +0300 |
---|---|---|
committer | Michel Selten <michel@mselten.demon.nl> | 2004-03-01 00:40:48 +0300 |
commit | 70a4ead0ae6f8ffabb1178ec2ed4d1fafa3e232e (patch) | |
tree | 2a81baeb98325e8e74ea4bea96074ec74508f563 /source/gameengine/Physics/BlOde/SConscript | |
parent | 5998c12c607ea0bfe0d9934f7b9011636ad3936a (diff) |
SCons updates
* Blender static now links. By default this option is disabled on all
platforms. Simply set the option in config.opts to 'true'.
* Added the following flags to config.opts:
- HOST_CC. This is the C compiler for the host platform. This value is the
same as TARGET_CC when not cross compiling.
- HOST_CXX. This is the C++ compiler for the host platform. This value is
the same as TARGET_CXX when not cross compiling.
- TARGET_CC. This is the C compiler for the target platform.
- TARGET_CXX. This is the C++ compiler for the target platform.
- TARGET_AR. This is the linker command for linking libraries.
- PATH This is the standard search path
All SConscript files have been updated to reflect these changes. Now it's
possible to change only the root SConstruct file, and all compiler specific
variables are passed automatically to all SConscript files. Of course, this
does not apply to makesdna because there the host and target platform is
different from all other libraries.
To pass a variable that applies to all platforms, all we now have to do is
set the correct value in library_env
Note: as usual, to get the latest options in the config.opts file, first
remove your version.
Diffstat (limited to 'source/gameengine/Physics/BlOde/SConscript')
-rwxr-xr-x | source/gameengine/Physics/BlOde/SConscript | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/gameengine/Physics/BlOde/SConscript b/source/gameengine/Physics/BlOde/SConscript index 03be5c12b46..ff06d91423f 100755 --- a/source/gameengine/Physics/BlOde/SConscript +++ b/source/gameengine/Physics/BlOde/SConscript @@ -1,13 +1,7 @@ -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) +Import ('library_env') + +phy_ode_env = library_env.Copy () source_files = ['OdePhysicsController.cpp', 'OdePhysicsEnvironment.cpp'] |