summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Environment.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-01-24 20:02:15 (GMT)
committerSteven Knight <knight@baldmt.com>2002-01-24 20:02:15 (GMT)
commitca75f94e83c37ca03de9740bb141e442c53db235 (patch)
tree1b44efda63b16667e62f1ad1b1ae6ade8e5a45b3 /src/engine/SCons/Environment.py
parent26b3ef1e5b369fd5f31436ecef74ccfc3478d4f5 (diff)
downloadSCons-ca75f94e83c37ca03de9740bb141e442c53db235.zip
SCons-ca75f94e83c37ca03de9740bb141e442c53db235.tar.gz
SCons-ca75f94e83c37ca03de9740bb141e442c53db235.tar.bz2
Add the Precious() method.
Diffstat (limited to 'src/engine/SCons/Environment.py')
-rw-r--r--src/engine/SCons/Environment.py15
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