Index: tools/Blender.py =================================================================== RCS file: /cvsroot/bf-blender/blender/tools/Blender.py,v retrieving revision 1.24 diff -u -r1.24 Blender.py --- tools/Blender.py 14 Aug 2006 12:47:13 -0000 1.24 +++ tools/Blender.py 17 Aug 2006 11:25:15 -0000 @@ -340,8 +340,9 @@ SConsEnvironment.Default(self, res) resources.append(res) - + def BlenderLib(self=None, libname=None, sources=None, includes=[], defines=[], libtype='common', priority = 100, compileflags=None): + sublibs = [] if not self or not libname or not sources: print bc.FAIL+'Cannot continue. Missing argument for BuildBlenderLib '+libname+bc.ENDC Exit() @@ -366,12 +367,31 @@ lenv.Append(CXXFLAGS = compileflags) lenv.Append(CCFLAGS = Split(lenv['C_WARN'])) lenv.Append(CXXFLAGS = Split(lenv['CC_WARN'])) - lib = lenv.Library(target= '#'+root_build_dir+'lib/'+libname, source=sources) - SConsEnvironment.Default(self, lib) # we add to default target, because this way we get some kind of progress info during build + sublibsize = 70 + if len(sources)>sublibsize: + extra=len(sources)%sublibsize + i=0 + j=0 + subsources =[] + while i < len(sources): + j=j+1 + subsources.append(sources[i:i+sublibsize]) + sublibs.append(libname+str(j)) + i = i+sublibsize + for i in range(0,len(sublibs)): + lib = lenv.Library(target= '#'+root_build_dir+'lib/'+sublibs[i], source=subsources[i]) + SConsEnvironment.Default(self, lib) # we add to default target, because this way we get some kind of progress info during build + else: + lib = lenv.Library(target= '#'+root_build_dir+'lib/'+libname, source=sources) + SConsEnvironment.Default(self, lib) # we add to default target, because this way we get some kind of progress info during build else: print bc.WARNING+'Not building '+bc.ENDC+bc.OKGREEN+libname+bc.ENDC+' for '+bc.OKBLUE+'BF_QUICK'+bc.ENDC # note: libs is a global - add_lib_to_dict(libs, libtype, libname, priority) + if len(sublibs)>0: + for i in sublibs: + add_lib_to_dict(libs, libtype, i, priority) + else: + add_lib_to_dict(libs, libtype, libname, priority) def BlenderProg(self=None, builddir=None, progname=None, sources=None, includes=None, libs=None, libpath=None, binarykind=''): print bc.HEADER+'Configuring program '+bc.ENDC+bc.OKGREEN+progname+bc.ENDC