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

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: 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 SUBSTITUTION_INCLUDE_DIRS, // {{include_dirs}} 51 SUBSTITUTION_INCLUDE_DIRS, // {{include_dirs}}
52 52
53 // Valid for linker tools. 53 // Valid for linker tools.
54 SUBSTITUTION_LINKER_INPUTS, // {{inputs}} 54 SUBSTITUTION_LINKER_INPUTS, // {{inputs}}
55 SUBSTITUTION_LINKER_INPUTS_NEWLINE, // {{inputs_newline}} 55 SUBSTITUTION_LINKER_INPUTS_NEWLINE, // {{inputs_newline}}
56 SUBSTITUTION_LDFLAGS, // {{ldflags}} 56 SUBSTITUTION_LDFLAGS, // {{ldflags}}
57 SUBSTITUTION_LIBS, // {{libs}} 57 SUBSTITUTION_LIBS, // {{libs}}
58 SUBSTITUTION_OUTPUT_EXTENSION, // {{output_extension}} 58 SUBSTITUTION_OUTPUT_EXTENSION, // {{output_extension}}
59 SUBSTITUTION_SOLIBS, // {{solibs}} 59 SUBSTITUTION_SOLIBS, // {{solibs}}
60 60
61 // Used only for the args of actions.
62 SUBSTITUTION_RSP_FILE_NAME, // {{response_file_name}}
63
61 SUBSTITUTION_NUM_TYPES // Must be last. 64 SUBSTITUTION_NUM_TYPES // Must be last.
62 }; 65 };
63 66
64 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the 67 // An array of size SUBSTITUTION_NUM_TYPES that lists the names of the
65 // substitution patterns, including the curly braces. So, for example, 68 // substitution patterns, including the curly braces. So, for example,
66 // kSubstitutionNames[SUBSTITUTION_SOURCE] == "{{source}}". 69 // kSubstitutionNames[SUBSTITUTION_SOURCE] == "{{source}}".
67 extern const char* kSubstitutionNames[SUBSTITUTION_NUM_TYPES]; 70 extern const char* kSubstitutionNames[SUBSTITUTION_NUM_TYPES];
68 71
69 // Ninja variables corresponding to each substitution. These do not include 72 // Ninja variables corresponding to each substitution. These do not include
70 // the dollar sign. 73 // the dollar sign.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool IsValidCopySubstitution(SubstitutionType type); 106 bool IsValidCopySubstitution(SubstitutionType type);
104 107
105 // Like the "IsValid..." version above but checks a list of types and sets a 108 // 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. 109 // an error blaming the given source if the test fails.
107 bool EnsureValidSourcesSubstitutions( 110 bool EnsureValidSourcesSubstitutions(
108 const std::vector<SubstitutionType>& types, 111 const std::vector<SubstitutionType>& types,
109 const ParseNode* origin, 112 const ParseNode* origin,
110 Err* err); 113 Err* err);
111 114
112 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_ 115 #endif // TOOLS_GN_SUBSTITUTION_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698