From 52dfa31cb84379f33107208cae96d81fea10d2f4 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Fri, 10 Mar 2006 20:47:34 +0000 Subject: ==SCons== + Joseph Eagar provided a patch that re-enables the application icon for Blender. Hurray! --- tools/Blender.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tools') diff --git a/tools/Blender.py b/tools/Blender.py index f87cbacf142..bf938686af8 100644 --- a/tools/Blender.py +++ b/tools/Blender.py @@ -39,6 +39,7 @@ quicklist = [] # The list of libraries/programs to compile during a quickie program_list = [] # A list holding Nodes to final binaries, used to create installs arguments = None targets = None +resources = [] #some internals blenderdeps = [] # don't manipulate this one outside this module! @@ -47,6 +48,10 @@ blenderdeps = [] # don't manipulate this one outside this module! possible_types = ['core'] # can be set in ie. SConstruct libs = {} + +def getresources(): + return resources + def init_lib_dict(): for pt in possible_types: libs[pt] = {} @@ -317,6 +322,21 @@ def AppIt(target=None, source=None, env=None): class BlenderEnvironment(SConsEnvironment): + def BlenderRes(self=None, libname=None, source=None, libtype=['core'], priority=[100]): + global libs + if not self or not libname or not source: + print bc.FAIL+'Cannot continue. Missing argument for BlenderRes '+libname+bc.ENDC + Exit() + if self['OURPLATFORM'] not in ('win32-vc','win32-mingw'): + print bc.FAIL+'BlenderRes is for windows only!'+bc.END + Exit() + + print bc.HEADER+'Configuring resource '+bc.ENDC+bc.OKGREEN+libname+bc.ENDC + lenv = self.Copy() + res = lenv.RES('#'+root_build_dir+'lib/'+libname, source) + + SConsEnvironment.Default(self, res) + resources.append(res) def BlenderLib(self=None, libname=None, sources=None, includes=[], defines=[], libtype='common', priority = 100, compileflags=None): if not self or not libname or not sources: -- cgit v1.2.3