| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SUBSTITUTION_WRITER_H_ | 5 #ifndef TOOLS_GN_SUBSTITUTION_WRITER_H_ |
| 6 #define TOOLS_GN_SUBSTITUTION_WRITER_H_ | 6 #define TOOLS_GN_SUBSTITUTION_WRITER_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 const SubstitutionList& list, | 108 const SubstitutionList& list, |
| 109 const SourceFile& source, | 109 const SourceFile& source, |
| 110 std::vector<std::string>* output); | 110 std::vector<std::string>* output); |
| 111 static void ApplyListToSourceAsOutputFile( | 111 static void ApplyListToSourceAsOutputFile( |
| 112 const Settings* settings, | 112 const Settings* settings, |
| 113 const SubstitutionList& list, | 113 const SubstitutionList& list, |
| 114 const SourceFile& source, | 114 const SourceFile& source, |
| 115 std::vector<OutputFile>* output); | 115 std::vector<OutputFile>* output); |
| 116 | 116 |
| 117 // Like ApplyListToSource but applies the list to all sources and replaces | 117 // Like ApplyListToSource but applies the list to all sources and replaces |
| 118 // rather than appesnds the output (this produces the complete output). | 118 // rather than appends the output (this produces the complete output). |
| 119 static void ApplyListToSources( | 119 static void ApplyListToSources( |
| 120 const Settings* settings, | 120 const Settings* settings, |
| 121 const SubstitutionList& list, | 121 const SubstitutionList& list, |
| 122 const std::vector<SourceFile>& sources, | 122 const std::vector<SourceFile>& sources, |
| 123 std::vector<SourceFile>* output); | 123 std::vector<SourceFile>* output); |
| 124 static void ApplyListToSourcesAsString( | 124 static void ApplyListToSourcesAsString( |
| 125 const Settings* settings, | 125 const Settings* settings, |
| 126 const SubstitutionList& list, | 126 const SubstitutionList& list, |
| 127 const std::vector<SourceFile>& sources, | 127 const std::vector<SourceFile>& sources, |
| 128 std::vector<std::string>* output); | 128 std::vector<std::string>* output); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 // Like GetSourceSubstitution but for strings based on the target or | 220 // Like GetSourceSubstitution but for strings based on the target or |
| 221 // toolchain. This type of result will always be relative to the build | 221 // toolchain. This type of result will always be relative to the build |
| 222 // directory. | 222 // directory. |
| 223 static std::string GetLinkerSubstitution( | 223 static std::string GetLinkerSubstitution( |
| 224 const Target* target, | 224 const Target* target, |
| 225 const Tool* tool, | 225 const Tool* tool, |
| 226 SubstitutionType type); | 226 SubstitutionType type); |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 #endif // TOOLS_GN_SUBSTITUTION_WRITER_H_ | 229 #endif // TOOLS_GN_SUBSTITUTION_WRITER_H_ |
| OLD | NEW |