summaryrefslogtreecommitdiffstats
path: root/gears/site_scons/utils.py
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-13 20:32:25 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-13 20:32:25 +0000
commit6799ef0ac57bb5c206d0e2d4106cd4b41de1fe7a (patch)
tree9d82d80dc0332a406d1faf0f937db9ee7ed89484 /gears/site_scons/utils.py
parentda8765903e7d3addd573aca2559b57cd0052d667 (diff)
downloadchromium_src-6799ef0ac57bb5c206d0e2d4106cd4b41de1fe7a.zip
chromium_src-6799ef0ac57bb5c206d0e2d4106cd4b41de1fe7a.tar.gz
chromium_src-6799ef0ac57bb5c206d0e2d4106cd4b41de1fe7a.tar.bz2
Add builder for Safari resource files. Had to restructure some input files.
I also moved GetInputs into the utils file. Review URL: http://codereview.chromium.org/10671 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5370 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/site_scons/utils.py')
-rw-r--r--gears/site_scons/utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gears/site_scons/utils.py b/gears/site_scons/utils.py
index 4bd4f93..d33b705 100644
--- a/gears/site_scons/utils.py
+++ b/gears/site_scons/utils.py
@@ -7,3 +7,8 @@ def PatternRule(target, source, env):
containing the new target and source to pass to a builder."""
target_sub = env.subst(target, source=env.File(source))
return [target_sub, source]
+
+def GetInputs(var, env):
+ """Expands an env substitution variable and returns it as a list of
+ strings."""
+ return [str(v) for v in env.subst_list(var)[0]]