Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: tools/gn/ninja_target_writer.cc

Issue 334333005: Add directory extraction to GN path handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to new file template function Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/gn/ninja_copy_target_writer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "tools/gn/ninja_target_writer.h" 5 #include "tools/gn/ninja_target_writer.h"
6 6
7 #include <fstream> 7 #include <fstream>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 FileTemplate NinjaTargetWriter::GetOutputTemplate() const { 159 FileTemplate NinjaTargetWriter::GetOutputTemplate() const {
160 const Target::FileList& outputs = target_->action_values().outputs(); 160 const Target::FileList& outputs = target_->action_values().outputs();
161 std::vector<std::string> output_template_args; 161 std::vector<std::string> output_template_args;
162 for (size_t i = 0; i < outputs.size(); i++) { 162 for (size_t i = 0; i < outputs.size(); i++) {
163 // All outputs should be in the output dir. 163 // All outputs should be in the output dir.
164 output_template_args.push_back( 164 output_template_args.push_back(
165 RemovePrefix(outputs[i].value(), 165 RemovePrefix(outputs[i].value(),
166 settings_->build_settings()->build_dir().value())); 166 settings_->build_settings()->build_dir().value()));
167 } 167 }
168 return FileTemplate(output_template_args); 168 return FileTemplate(target_->settings(), output_template_args);
169 } 169 }
OLDNEW
« no previous file with comments | « tools/gn/ninja_copy_target_writer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698