diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-10 00:01:37 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-10 00:01:37 +0000 |
commit | 6b3531280db5c7a6080dee26a0637553ca4af642 (patch) | |
tree | e724570c5bc35a7fa5315b7245f2b695683fdb8c /gears/site_scons | |
parent | 32cda29d0266751c764b043d8aaec6dccc646e29 (diff) | |
download | chromium_src-6b3531280db5c7a6080dee26a0637553ca4af642.zip chromium_src-6b3531280db5c7a6080dee26a0637553ca4af642.tar.gz chromium_src-6b3531280db5c7a6080dee26a0637553ca4af642.tar.bz2 |
Pull 'common' outputs out into their own SConscript so they have their own
variant dir. Add ipc_test as a common output.
Also fixed up some hackery around manipulating OUTDIRs.
Review URL: http://codereview.chromium.org/7037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3158 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/site_scons')
-rw-r--r-- | gears/site_scons/utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gears/site_scons/utils.py b/gears/site_scons/utils.py new file mode 100644 index 0000000..4bd4f93 --- /dev/null +++ b/gears/site_scons/utils.py @@ -0,0 +1,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] |