diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2006-10-27 13:01:42 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2006-10-27 13:01:42 +0400 |
commit | 45c1f23f19169a4bc2640db3fd2d7b67386609dc (patch) | |
tree | 5953e3c222749de6ec9e8d28252a62c3c02fe270 /extern | |
parent | a782b2179b6e28d4296e329dac99d2711bddd5cd (diff) |
Apply patch #5127 by Joseph Eagar (joeedh)
* This addresses the long command-line problem when building with SCons/MingW on windows through a dosbox (cmd.exe).
My test buildpath was: C:\Documents and Settings\nathan\My Documents\blender\build\win32-mingw
Should be rather long enough, don't you think?
/Nathan
Diffstat (limited to 'extern')
-rw-r--r-- | extern/bullet/SConscript | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/extern/bullet/SConscript b/extern/bullet/SConscript index 5e1d107eabc..594690657e1 100644 --- a/extern/bullet/SConscript +++ b/extern/bullet/SConscript @@ -31,4 +31,10 @@ sources += env.Glob("BulletDynamics/Dynamics/*.cpp") incs = '. Bullet BulletDynamics LinearMath' -env.BlenderLib ( libname = 'extern_bullet', sources=sources, includes=Split(incs), defines=Split(defs), libtype=['game2', 'player'], priority=[20, 170], compileflags=cflags ) +if env['OURPLATFORM'] == 'win32-mingw': + s1 = sources[:len(sources)/2] + s2 = sources[len(sources)/2:len(sources)] + env.BlenderLib ( libname = 'extern_bullet1', sources=s1, includes=Split(incs), defines=Split(defs), libtype=['game2', 'player'], priority=[21, 170], compileflags=cflags ) + env.BlenderLib ( libname = 'extern_bullet2', sources=s2, includes=Split(incs), defines=Split(defs), libtype=['game2', 'player'], priority=[20, 170], compileflags=cflags ) +else: + env.BlenderLib ( libname = 'extern_bullet', sources=sources, includes=Split(incs), defines=Split(defs), libtype=['game2', 'player'], priority=[20, 170], compileflags=cflags ) |