diff options
Diffstat (limited to 'src/engine/SCons/Environment.py')
-rw-r--r-- | src/engine/SCons/Environment.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py index 3c1ee43..6373a55 100644 --- a/src/engine/SCons/Environment.py +++ b/src/engine/SCons/Environment.py @@ -66,9 +66,6 @@ def installFunc(env, target, source): InstallBuilder = SCons.Builder.Builder(name='Install', action=installFunc) -def InstallAs(): - pass # XXX - def our_deepcopy(x): """deepcopy lists and dictionaries, and just copy the reference for everything else.""" @@ -185,6 +182,18 @@ class Environment: tlist = tlist[0] return tlist + def Precious(self, *targets): + tlist = [] + for t in targets: + tlist.extend(SCons.Util.scons_str2nodes(t)) + + for t in tlist: + t.set_precious() + + if len(tlist) == 1: + tlist = tlist[0] + return tlist + def Dictionary(self, *args): if not args: return self._dict |