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_TYPE_H_ | 5 #ifndef TOOLS_GN_SUBSTITUTION_TYPE_H_ |
6 #define TOOLS_GN_SUBSTITUTION_TYPE_H_ | 6 #define TOOLS_GN_SUBSTITUTION_TYPE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 class Err; | 10 class Err; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 SUBSTITUTION_CFLAGS, // {{cflags}} | 44 SUBSTITUTION_CFLAGS, // {{cflags}} |
45 SUBSTITUTION_CFLAGS_C, // {{cflags_c}} | 45 SUBSTITUTION_CFLAGS_C, // {{cflags_c}} |
46 SUBSTITUTION_CFLAGS_CC, // {{cflags_cc}} | 46 SUBSTITUTION_CFLAGS_CC, // {{cflags_cc}} |
47 SUBSTITUTION_CFLAGS_OBJC, // {{cflags_objc}} | 47 SUBSTITUTION_CFLAGS_OBJC, // {{cflags_objc}} |
48 SUBSTITUTION_CFLAGS_OBJCC, // {{cflags_objcc}} | 48 SUBSTITUTION_CFLAGS_OBJCC, // {{cflags_objcc}} |
49 SUBSTITUTION_DEFINES, // {{defines}} | 49 SUBSTITUTION_DEFINES, // {{defines}} |
50 SUBSTITUTION_INCLUDE_DIRS, // {{include_dirs}} | 50 SUBSTITUTION_INCLUDE_DIRS, // {{include_dirs}} |
51 | 51 |
52 // Valid for linker tools. | 52 // Valid for linker tools. |
53 SUBSTITUTION_LINKER_INPUTS, // {{inputs}} | 53 SUBSTITUTION_LINKER_INPUTS, // {{inputs}} |
| 54 SUBSTITUTION_LINKER_INPUTS_NEWLINE, // {{inputs_newline}} |
54 SUBSTITUTION_LDFLAGS, // {{ldflags}} | 55 SUBSTITUTION_LDFLAGS, // {{ldflags}} |
55 SUBSTITUTION_LIBS, // {{libs}} | 56 SUBSTITUTION_LIBS, // {{libs}} |
56 SUBSTITUTION_OUTPUT_EXTENSION, // {{output_extension}} | 57 SUBSTITUTION_OUTPUT_EXTENSION, // {{output_extension}} |
57 SUBSTITUTION_SOLIBS, // {{solibs}} | 58 SUBSTITUTION_SOLIBS, // {{solibs}} |
58 | 59 |
59 SUBSTITUTION_NUM_TYPES // Must be last. | 60 SUBSTITUTION_NUM_TYPES // Must be last. |
60 }; | 61 }; |
61 | 62 |
62 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the | 63 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the |
63 // substitution patterns, including the curly braces. So, for example, | 64 // substitution patterns, including the curly braces. So, for example, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 bool IsValidCopySubstitution(SubstitutionType type); | 102 bool IsValidCopySubstitution(SubstitutionType type); |
102 | 103 |
103 // Like the "IsValid..." version above but checks a list of types and sets a | 104 // Like the "IsValid..." version above but checks a list of types and sets a |
104 // an error blaming the given source if the test fails. | 105 // an error blaming the given source if the test fails. |
105 bool EnsureValidSourcesSubstitutions( | 106 bool EnsureValidSourcesSubstitutions( |
106 const std::vector<SubstitutionType>& types, | 107 const std::vector<SubstitutionType>& types, |
107 const ParseNode* origin, | 108 const ParseNode* origin, |
108 Err* err); | 109 Err* err); |
109 | 110 |
110 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ | 111 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ |
OLD | NEW |