| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // Valid for alink only. | 63 // Valid for alink only. |
| 64 SUBSTITUTION_ARFLAGS, // {{arflags}} | 64 SUBSTITUTION_ARFLAGS, // {{arflags}} |
| 65 | 65 |
| 66 // Valid for bundle_data targets. | 66 // Valid for bundle_data targets. |
| 67 SUBSTITUTION_BUNDLE_ROOT_DIR, // {{bundle_root_dir}} | 67 SUBSTITUTION_BUNDLE_ROOT_DIR, // {{bundle_root_dir}} |
| 68 SUBSTITUTION_BUNDLE_RESOURCES_DIR, // {{bundle_resources_dir}} | 68 SUBSTITUTION_BUNDLE_RESOURCES_DIR, // {{bundle_resources_dir}} |
| 69 SUBSTITUTION_BUNDLE_EXECUTABLE_DIR, // {{bundle_executable_dir}} | 69 SUBSTITUTION_BUNDLE_EXECUTABLE_DIR, // {{bundle_executable_dir}} |
| 70 SUBSTITUTION_BUNDLE_PLUGINS_DIR, // {{bundle_plugins_dir}} | 70 SUBSTITUTION_BUNDLE_PLUGINS_DIR, // {{bundle_plugins_dir}} |
| 71 | 71 |
| 72 // Valid for compile_xcassets tool. |
| 73 SUBSTITUTION_BUNDLE_PRODUCT_TYPE, // {{bundle_product_type}} |
| 74 |
| 72 // Used only for the args of actions. | 75 // Used only for the args of actions. |
| 73 SUBSTITUTION_RSP_FILE_NAME, // {{response_file_name}} | 76 SUBSTITUTION_RSP_FILE_NAME, // {{response_file_name}} |
| 74 | 77 |
| 75 SUBSTITUTION_NUM_TYPES // Must be last. | 78 SUBSTITUTION_NUM_TYPES // Must be last. |
| 76 }; | 79 }; |
| 77 | 80 |
| 78 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the | 81 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the |
| 79 // substitution patterns, including the curly braces. So, for example, | 82 // substitution patterns, including the curly braces. So, for example, |
| 80 // kSubstitutionNames[SUBSTITUTION_SOURCE] == "{{source}}". | 83 // kSubstitutionNames[SUBSTITUTION_SOURCE] == "{{source}}". |
| 81 extern const char* kSubstitutionNames[SUBSTITUTION_NUM_TYPES]; | 84 extern const char* kSubstitutionNames[SUBSTITUTION_NUM_TYPES]; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 bool IsValidCompileXCassetsSubstitution(SubstitutionType type); | 128 bool IsValidCompileXCassetsSubstitution(SubstitutionType type); |
| 126 | 129 |
| 127 // Like the "IsValid..." version above but checks a list of types and sets a | 130 // Like the "IsValid..." version above but checks a list of types and sets a |
| 128 // an error blaming the given source if the test fails. | 131 // an error blaming the given source if the test fails. |
| 129 bool EnsureValidSourcesSubstitutions( | 132 bool EnsureValidSourcesSubstitutions( |
| 130 const std::vector<SubstitutionType>& types, | 133 const std::vector<SubstitutionType>& types, |
| 131 const ParseNode* origin, | 134 const ParseNode* origin, |
| 132 Err* err); | 135 Err* err); |
| 133 | 136 |
| 134 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ | 137 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ |
| OLD | NEW |