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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 SUBSTITUTION_CFLAGS_OBJC, // {{cflags_objc}} | 49 SUBSTITUTION_CFLAGS_OBJC, // {{cflags_objc}} |
50 SUBSTITUTION_CFLAGS_OBJCC, // {{cflags_objcc}} | 50 SUBSTITUTION_CFLAGS_OBJCC, // {{cflags_objcc}} |
51 SUBSTITUTION_DEFINES, // {{defines}} | 51 SUBSTITUTION_DEFINES, // {{defines}} |
52 SUBSTITUTION_INCLUDE_DIRS, // {{include_dirs}} | 52 SUBSTITUTION_INCLUDE_DIRS, // {{include_dirs}} |
53 | 53 |
54 // Valid for linker tools. | 54 // Valid for linker tools. |
55 SUBSTITUTION_LINKER_INPUTS, // {{inputs}} | 55 SUBSTITUTION_LINKER_INPUTS, // {{inputs}} |
56 SUBSTITUTION_LINKER_INPUTS_NEWLINE, // {{inputs_newline}} | 56 SUBSTITUTION_LINKER_INPUTS_NEWLINE, // {{inputs_newline}} |
57 SUBSTITUTION_LDFLAGS, // {{ldflags}} | 57 SUBSTITUTION_LDFLAGS, // {{ldflags}} |
58 SUBSTITUTION_LIBS, // {{libs}} | 58 SUBSTITUTION_LIBS, // {{libs}} |
| 59 SUBSTITUTION_OUTPUT_DIR, // {{output_dir}} |
59 SUBSTITUTION_OUTPUT_EXTENSION, // {{output_extension}} | 60 SUBSTITUTION_OUTPUT_EXTENSION, // {{output_extension}} |
60 SUBSTITUTION_SOLIBS, // {{solibs}} | 61 SUBSTITUTION_SOLIBS, // {{solibs}} |
61 | 62 |
62 // Valid for bundle_data targets. | 63 // Valid for bundle_data targets. |
63 SUBSTITUTION_BUNDLE_ROOT_DIR, // {{bundle_root_dir}} | 64 SUBSTITUTION_BUNDLE_ROOT_DIR, // {{bundle_root_dir}} |
64 SUBSTITUTION_BUNDLE_RESOURCES_DIR, // {{bundle_resources_dir}} | 65 SUBSTITUTION_BUNDLE_RESOURCES_DIR, // {{bundle_resources_dir}} |
65 SUBSTITUTION_BUNDLE_EXECUTABLE_DIR, // {{bundle_executable_dir}} | 66 SUBSTITUTION_BUNDLE_EXECUTABLE_DIR, // {{bundle_executable_dir}} |
66 SUBSTITUTION_BUNDLE_PLUGINS_DIR, // {{bundle_plugins_dir}} | 67 SUBSTITUTION_BUNDLE_PLUGINS_DIR, // {{bundle_plugins_dir}} |
67 | 68 |
68 // Used only for the args of actions. | 69 // Used only for the args of actions. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 bool IsValidCompileXCassetsSubstitution(SubstitutionType type); | 121 bool IsValidCompileXCassetsSubstitution(SubstitutionType type); |
121 | 122 |
122 // Like the "IsValid..." version above but checks a list of types and sets a | 123 // Like the "IsValid..." version above but checks a list of types and sets a |
123 // an error blaming the given source if the test fails. | 124 // an error blaming the given source if the test fails. |
124 bool EnsureValidSourcesSubstitutions( | 125 bool EnsureValidSourcesSubstitutions( |
125 const std::vector<SubstitutionType>& types, | 126 const std::vector<SubstitutionType>& types, |
126 const ParseNode* origin, | 127 const ParseNode* origin, |
127 Err* err); | 128 Err* err); |
128 | 129 |
129 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ | 130 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ |
OLD | NEW |