| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |