| 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 23 matching lines...) Expand all Loading... |
| 34 // Valid for all compiler and linker tools. These depend on the target and | 34 // Valid for all compiler and linker tools. These depend on the target and |
| 35 // no not vary on a per-file basis. | 35 // no not vary on a per-file basis. |
| 36 SUBSTITUTION_LABEL, // {{label}} | 36 SUBSTITUTION_LABEL, // {{label}} |
| 37 SUBSTITUTION_ROOT_GEN_DIR, // {{root_gen_dir}} | 37 SUBSTITUTION_ROOT_GEN_DIR, // {{root_gen_dir}} |
| 38 SUBSTITUTION_ROOT_OUT_DIR, // {{root_out_dir}} | 38 SUBSTITUTION_ROOT_OUT_DIR, // {{root_out_dir}} |
| 39 SUBSTITUTION_TARGET_GEN_DIR, // {{target_gen_dir}} | 39 SUBSTITUTION_TARGET_GEN_DIR, // {{target_gen_dir}} |
| 40 SUBSTITUTION_TARGET_OUT_DIR, // {{target_out_dir}} | 40 SUBSTITUTION_TARGET_OUT_DIR, // {{target_out_dir}} |
| 41 SUBSTITUTION_TARGET_OUTPUT_NAME, // {{target_output_name}} | 41 SUBSTITUTION_TARGET_OUTPUT_NAME, // {{target_output_name}} |
| 42 | 42 |
| 43 // Valid for compiler tools. | 43 // Valid for compiler tools. |
| 44 SUBSTITUTION_ARFLAGS, // {{arflags}} |
| 44 SUBSTITUTION_CFLAGS, // {{cflags}} | 45 SUBSTITUTION_CFLAGS, // {{cflags}} |
| 45 SUBSTITUTION_CFLAGS_C, // {{cflags_c}} | 46 SUBSTITUTION_CFLAGS_C, // {{cflags_c}} |
| 46 SUBSTITUTION_CFLAGS_CC, // {{cflags_cc}} | 47 SUBSTITUTION_CFLAGS_CC, // {{cflags_cc}} |
| 47 SUBSTITUTION_CFLAGS_OBJC, // {{cflags_objc}} | 48 SUBSTITUTION_CFLAGS_OBJC, // {{cflags_objc}} |
| 48 SUBSTITUTION_CFLAGS_OBJCC, // {{cflags_objcc}} | 49 SUBSTITUTION_CFLAGS_OBJCC, // {{cflags_objcc}} |
| 49 SUBSTITUTION_DEFINES, // {{defines}} | 50 SUBSTITUTION_DEFINES, // {{defines}} |
| 50 SUBSTITUTION_INCLUDE_DIRS, // {{include_dirs}} | 51 SUBSTITUTION_INCLUDE_DIRS, // {{include_dirs}} |
| 51 | 52 |
| 52 // Valid for linker tools. | 53 // Valid for linker tools. |
| 53 SUBSTITUTION_LINKER_INPUTS, // {{inputs}} | 54 SUBSTITUTION_LINKER_INPUTS, // {{inputs}} |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 bool IsValidCopySubstitution(SubstitutionType type); | 103 bool IsValidCopySubstitution(SubstitutionType type); |
| 103 | 104 |
| 104 // Like the "IsValid..." version above but checks a list of types and sets a | 105 // Like the "IsValid..." version above but checks a list of types and sets a |
| 105 // an error blaming the given source if the test fails. | 106 // an error blaming the given source if the test fails. |
| 106 bool EnsureValidSourcesSubstitutions( | 107 bool EnsureValidSourcesSubstitutions( |
| 107 const std::vector<SubstitutionType>& types, | 108 const std::vector<SubstitutionType>& types, |
| 108 const ParseNode* origin, | 109 const ParseNode* origin, |
| 109 Err* err); | 110 Err* err); |
| 110 | 111 |
| 111 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ | 112 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ |
| OLD | NEW |