OLD | NEW |
| (Empty) |
1 # Copyright (c) 2008 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 def PatternRule(target, source, env): | |
6 """Apply env substitution to a target with $SOURCE included. Returns a list | |
7 containing the new target and source to pass to a builder.""" | |
8 target_sub = env.subst(target, source=env.File(source)) | |
9 return [target_sub, source] | |
10 | |
11 def GetInputs(var, env): | |
12 """Expands an env substitution variable and returns it as a list of | |
13 strings.""" | |
14 return [str(v) for v in env.subst_list(var)[0]] | |
OLD | NEW |