Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Side by Side Diff: tools/gn/substitution_type.h

Issue 1436563003: Support spaces in Mac GN build output names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/ninja_target_writer.cc ('k') | tools/gn/substitution_type.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 16 matching lines...) Expand all
27 SUBSTITUTION_SOURCE_NAME_PART, // {{source_name_part}} 27 SUBSTITUTION_SOURCE_NAME_PART, // {{source_name_part}}
28 SUBSTITUTION_SOURCE_FILE_PART, // {{source_file_part}} 28 SUBSTITUTION_SOURCE_FILE_PART, // {{source_file_part}}
29 SUBSTITUTION_SOURCE_DIR, // {{source_dir}} 29 SUBSTITUTION_SOURCE_DIR, // {{source_dir}}
30 SUBSTITUTION_SOURCE_ROOT_RELATIVE_DIR, // {{root_relative_dir}} 30 SUBSTITUTION_SOURCE_ROOT_RELATIVE_DIR, // {{root_relative_dir}}
31 SUBSTITUTION_SOURCE_GEN_DIR, // {{source_gen_dir}} 31 SUBSTITUTION_SOURCE_GEN_DIR, // {{source_gen_dir}}
32 SUBSTITUTION_SOURCE_OUT_DIR, // {{source_out_dir}} 32 SUBSTITUTION_SOURCE_OUT_DIR, // {{source_out_dir}}
33 33
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_LABEL_NAME, // {{label_name}}
37 SUBSTITUTION_ROOT_GEN_DIR, // {{root_gen_dir}} 38 SUBSTITUTION_ROOT_GEN_DIR, // {{root_gen_dir}}
38 SUBSTITUTION_ROOT_OUT_DIR, // {{root_out_dir}} 39 SUBSTITUTION_ROOT_OUT_DIR, // {{root_out_dir}}
39 SUBSTITUTION_TARGET_GEN_DIR, // {{target_gen_dir}} 40 SUBSTITUTION_TARGET_GEN_DIR, // {{target_gen_dir}}
40 SUBSTITUTION_TARGET_OUT_DIR, // {{target_out_dir}} 41 SUBSTITUTION_TARGET_OUT_DIR, // {{target_out_dir}}
41 SUBSTITUTION_TARGET_OUTPUT_NAME, // {{target_output_name}} 42 SUBSTITUTION_TARGET_OUTPUT_NAME, // {{target_output_name}}
42 43
43 // Valid for compiler tools. 44 // Valid for compiler tools.
44 SUBSTITUTION_ASMFLAGS, // {{asmflags}} 45 SUBSTITUTION_ASMFLAGS, // {{asmflags}}
45 SUBSTITUTION_CFLAGS, // {{cflags}} 46 SUBSTITUTION_CFLAGS, // {{cflags}}
46 SUBSTITUTION_CFLAGS_C, // {{cflags_c}} 47 SUBSTITUTION_CFLAGS_C, // {{cflags_c}}
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool IsValidCopySubstitution(SubstitutionType type); 104 bool IsValidCopySubstitution(SubstitutionType type);
104 105
105 // Like the "IsValid..." version above but checks a list of types and sets a 106 // Like the "IsValid..." version above but checks a list of types and sets a
106 // an error blaming the given source if the test fails. 107 // an error blaming the given source if the test fails.
107 bool EnsureValidSourcesSubstitutions( 108 bool EnsureValidSourcesSubstitutions(
108 const std::vector<SubstitutionType>& types, 109 const std::vector<SubstitutionType>& types,
109 const ParseNode* origin, 110 const ParseNode* origin,
110 Err* err); 111 Err* err);
111 112
112 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ 113 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_
OLDNEW
« no previous file with comments | « tools/gn/ninja_target_writer.cc ('k') | tools/gn/substitution_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698