Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2006-03-10 23:47:34 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2006-03-10 23:47:34 +0300
commit52dfa31cb84379f33107208cae96d81fea10d2f4 (patch)
tree00f41a90883425d22b6a608aa9d3a75d2900b91f /tools/Blender.py
parenta71c07a0449f0176361085692e4edfab0a11e46a (diff)
==SCons==
+ Joseph Eagar provided a patch that re-enables the application icon for Blender. Hurray!
Diffstat (limited to 'tools/Blender.py')
-rw-r--r--tools/Blender.py20
1 files changed, 20 insertions, 0 deletions
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: