diff options
author | Chris Want <cwant@ualberta.ca> | 2006-11-28 20:53:40 +0300 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2006-11-28 20:53:40 +0300 |
commit | f0b42d60ac453aeeb9bf2f41c9c0f5d0c7cc6760 (patch) | |
tree | afac4882a06c1b5b2773fad5b15e0b9f869abb1a /source/blender/src/SConscript | |
parent | c1258980a4ac39d0b4b260c1ddc359c1675a3b25 (diff) |
=Scons=
A workaround for long commandlines that foil the mingw build: break the
libsrc.a into two archives for that platform.
Diffstat (limited to 'source/blender/src/SConscript')
-rw-r--r-- | source/blender/src/SConscript | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/src/SConscript b/source/blender/src/SConscript index 8ff1de1b751..d0a07f9b3d8 100644 --- a/source/blender/src/SConscript +++ b/source/blender/src/SConscript @@ -4,6 +4,11 @@ Import ('env') # TODO: src_env.Append (CCFLAGS = user_options_dict['SDL_CFLAGS']) sources = env.Glob('*.c') +numobj = len(sources) + +if (env['OURPLATFORM'] == 'win32-mingw'): + sources1 = sources[:(numobj/2)] + sources2 = sources[(numobj/2):] incs = ' #/intern/guardedalloc #/intern/memutil' incs += ' ../blenlib ../makesdna ../blenkernel' @@ -51,4 +56,8 @@ if env['WITH_BF_VERSE']: if env['BF_BUILDINFO'] == 1: defs.append('NAN_BUILDINFO') -env.BlenderLib ( libname = 'src', sources = sources, includes = Split(incs), defines = defs, libtype=['core', 'intern'], priority = [5, 25] ) +if (env['OURPLATFORM'] == 'win32-mingw'): + env.BlenderLib ( libname = 'src1', sources = sources1, includes = Split(incs), defines = defs, libtype=['core', 'intern'], priority = [5, 25] ) + env.BlenderLib ( libname = 'src2', sources = sources2, includes = Split(incs), defines = defs, libtype=['core', 'intern'], priority = [5, 25] ) +else: + env.BlenderLib ( libname = 'src', sources = sources, includes = Split(incs), defines = defs, libtype=['core', 'intern'], priority = [5, 25] ) |