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

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

Issue 429423002: Refactor GN source expansions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang warning Created 6 years, 4 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
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"
11 #include "tools/gn/err.h" 11 #include "tools/gn/err.h"
12 #include "tools/gn/file_template.h"
13 #include "tools/gn/ninja_action_target_writer.h" 12 #include "tools/gn/ninja_action_target_writer.h"
14 #include "tools/gn/ninja_binary_target_writer.h" 13 #include "tools/gn/ninja_binary_target_writer.h"
15 #include "tools/gn/ninja_copy_target_writer.h" 14 #include "tools/gn/ninja_copy_target_writer.h"
16 #include "tools/gn/ninja_group_target_writer.h" 15 #include "tools/gn/ninja_group_target_writer.h"
17 #include "tools/gn/scheduler.h" 16 #include "tools/gn/scheduler.h"
18 #include "tools/gn/string_utils.h" 17 #include "tools/gn/string_utils.h"
19 #include "tools/gn/target.h" 18 #include "tools/gn/target.h"
20 #include "tools/gn/trace.h" 19 #include "tools/gn/trace.h"
21 20
22 NinjaTargetWriter::NinjaTargetWriter(const Target* target, 21 NinjaTargetWriter::NinjaTargetWriter(const Target* target,
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // Extra hard deps passed in. 160 // Extra hard deps passed in.
162 for (size_t i = 0; i < extra_hard_deps.size(); i++) { 161 for (size_t i = 0; i < extra_hard_deps.size(); i++) {
163 out_ << " "; 162 out_ << " ";
164 path_output_.WriteFile(out_, 163 path_output_.WriteFile(out_,
165 helper_.GetTargetOutputFile(extra_hard_deps[i])); 164 helper_.GetTargetOutputFile(extra_hard_deps[i]));
166 } 165 }
167 166
168 out_ << "\n"; 167 out_ << "\n";
169 return " | " + stamp_file_string; 168 return " | " + stamp_file_string;
170 } 169 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698