blob: 4bd4f93ef1027d4f5bfb2f531b74f95ddbaf59ee (
plain)
1
2
3
4
5
6
7
8
9
|
# Copyright (c) 2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
def PatternRule(target, source, env):
"""Apply env substitution to a target with $SOURCE included. Returns a list
containing the new target and source to pass to a builder."""
target_sub = env.subst(target, source=env.File(source))
return [target_sub, source]
|