diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-19 16:50:52 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-19 16:50:52 +0000 |
commit | e9bf4fcb470f7220306c39827fc3fd9be0a27741 (patch) | |
tree | 59d2c4de7ab1964d6c421dd014b629ce9bd961e1 /tools/gn/ninja_action_target_writer_unittest.cc | |
parent | 252e6603f3012cdc8de4a212999ef62660769be7 (diff) | |
download | chromium_src-e9bf4fcb470f7220306c39827fc3fd9be0a27741.zip chromium_src-e9bf4fcb470f7220306c39827fc3fd9be0a27741.tar.gz chromium_src-e9bf4fcb470f7220306c39827fc3fd9be0a27741.tar.bz2 |
Add directory extraction to GN path handling.
Some of the mojo templates want to put generated files in the directory
corresponding to the source file, rather than the directory containing the
BUILD file. Previously, this required putting the BUILD files in the same
directory.
This patch adds the ability to specify the generated file directory
corresponding to the input file in the action_foreach file templates so this
can be expressed naturally.
For parity, it also adds qquerying for this information via get_path_info.
BUG=
R=cjhopman@chromium.org
Review URL: https://codereview.chromium.org/334333005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278402 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/gn/ninja_action_target_writer_unittest.cc')
-rw-r--r-- | tools/gn/ninja_action_target_writer_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gn/ninja_action_target_writer_unittest.cc b/tools/gn/ninja_action_target_writer_unittest.cc index 9899e2c..c6aa5f8 100644 --- a/tools/gn/ninja_action_target_writer_unittest.cc +++ b/tools/gn/ninja_action_target_writer_unittest.cc @@ -44,7 +44,7 @@ TEST(NinjaActionTargetWriter, WriteArgsSubstitutions) { args.push_back("-i"); args.push_back("{{source}}"); args.push_back("--out=foo bar{{source_name_part}}.o"); - FileTemplate args_template(args); + FileTemplate args_template(setup.settings(), args); writer.WriteArgsSubstitutions(SourceFile("//foo/b ar.in"), args_template); #if defined(OS_WIN) |