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

Side by Side Diff: tools/gn/ninja_binary_target_writer.h

Issue 2071573003: GN: Use implicit dependency for binary input deps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests Created 4 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
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 #ifndef TOOLS_GN_NINJA_BINARY_TARGET_WRITER_H_ 5 #ifndef TOOLS_GN_NINJA_BINARY_TARGET_WRITER_H_
6 #define TOOLS_GN_NINJA_BINARY_TARGET_WRITER_H_ 6 #define TOOLS_GN_NINJA_BINARY_TARGET_WRITER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "tools/gn/config_values.h" 9 #include "tools/gn/config_values.h"
10 #include "tools/gn/ninja_target_writer.h" 10 #include "tools/gn/ninja_target_writer.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // 84 //
85 // The files produced by the compiler will be added to two output vectors. 85 // The files produced by the compiler will be added to two output vectors.
86 void WriteSources(const std::vector<OutputFile>& pch_deps, 86 void WriteSources(const std::vector<OutputFile>& pch_deps,
87 const OutputFile& order_only_dep, 87 const OutputFile& order_only_dep,
88 std::vector<OutputFile>* object_files, 88 std::vector<OutputFile>* object_files,
89 std::vector<SourceFile>* other_files); 89 std::vector<SourceFile>* other_files);
90 90
91 // Writes a build line. 91 // Writes a build line.
92 void WriteCompilerBuildLine(const SourceFile& source, 92 void WriteCompilerBuildLine(const SourceFile& source,
93 const std::vector<OutputFile>& extra_deps, 93 const std::vector<OutputFile>& extra_deps,
94 const OutputFile& order_only_dep,
95 Toolchain::ToolType tool_type, 94 Toolchain::ToolType tool_type,
96 const std::vector<OutputFile>& outputs); 95 const std::vector<OutputFile>& outputs);
97 96
98 void WriteLinkerStuff(const std::vector<OutputFile>& object_files, 97 void WriteLinkerStuff(const std::vector<OutputFile>& object_files,
99 const std::vector<SourceFile>& other_files); 98 const std::vector<SourceFile>& other_files);
100 void WriteLinkerFlags(const SourceFile* optional_def_file); 99 void WriteLinkerFlags(const SourceFile* optional_def_file);
101 void WriteLibs(); 100 void WriteLibs();
102 void WriteOutputSubstitutions(); 101 void WriteOutputSubstitutions();
103 void WriteSolibs(const std::vector<OutputFile>& solibs); 102 void WriteSolibs(const std::vector<OutputFile>& solibs);
104 103
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const Tool* tool_; 138 const Tool* tool_;
140 139
141 // Cached version of the prefix used for rule types for this toolchain. 140 // Cached version of the prefix used for rule types for this toolchain.
142 std::string rule_prefix_; 141 std::string rule_prefix_;
143 142
144 DISALLOW_COPY_AND_ASSIGN(NinjaBinaryTargetWriter); 143 DISALLOW_COPY_AND_ASSIGN(NinjaBinaryTargetWriter);
145 }; 144 };
146 145
147 #endif // TOOLS_GN_NINJA_BINARY_TARGET_WRITER_H_ 146 #endif // TOOLS_GN_NINJA_BINARY_TARGET_WRITER_H_
148 147
OLDNEW
« no previous file with comments | « no previous file | tools/gn/ninja_binary_target_writer.cc » ('j') | tools/gn/ninja_binary_target_writer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698