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

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

Issue 1430043002: Support script response files in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comment, random build fix 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_action_target_writer_unittest.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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_EXTENSION, // {{output_extension}} 59 SUBSTITUTION_OUTPUT_EXTENSION, // {{output_extension}}
60 SUBSTITUTION_SOLIBS, // {{solibs}} 60 SUBSTITUTION_SOLIBS, // {{solibs}}
61 61
62 // Used only for the args of actions.
63 SUBSTITUTION_RSP_FILE_NAME, // {{response_file_name}}
64
62 SUBSTITUTION_NUM_TYPES // Must be last. 65 SUBSTITUTION_NUM_TYPES // Must be last.
63 }; 66 };
64 67
65 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the 68 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the
66 // substitution patterns, including the curly braces. So, for example, 69 // substitution patterns, including the curly braces. So, for example,
67 // kSubstitutionNames[SUBSTITUTION_SOURCE] == "{{source}}". 70 // kSubstitutionNames[SUBSTITUTION_SOURCE] == "{{source}}".
68 extern const char* kSubstitutionNames[SUBSTITUTION_NUM_TYPES]; 71 extern const char* kSubstitutionNames[SUBSTITUTION_NUM_TYPES];
69 72
70 // Ninja variables corresponding to each substitution. These do not include 73 // Ninja variables corresponding to each substitution. These do not include
71 // the dollar sign. 74 // the dollar sign.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool IsValidCopySubstitution(SubstitutionType type); 107 bool IsValidCopySubstitution(SubstitutionType type);
105 108
106 // Like the "IsValid..." version above but checks a list of types and sets a 109 // Like the "IsValid..." version above but checks a list of types and sets a
107 // an error blaming the given source if the test fails. 110 // an error blaming the given source if the test fails.
108 bool EnsureValidSourcesSubstitutions( 111 bool EnsureValidSourcesSubstitutions(
109 const std::vector<SubstitutionType>& types, 112 const std::vector<SubstitutionType>& types,
110 const ParseNode* origin, 113 const ParseNode* origin,
111 Err* err); 114 Err* err);
112 115
113 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ 116 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_
OLDNEW
« no previous file with comments | « tools/gn/ninja_action_target_writer_unittest.cc ('k') | tools/gn/substitution_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698