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

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

Issue 46313003: Implement target visibility in GN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/target_generator.cc ('k') | tools/gn/variables.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_VARIABLES_H_ 5 #ifndef TOOLS_GN_VARIABLES_H_
6 #define TOOLS_GN_VARIABLES_H_ 6 #define TOOLS_GN_VARIABLES_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 extern const char kScript_Help[]; 164 extern const char kScript_Help[];
165 165
166 extern const char kSourcePrereqs[]; 166 extern const char kSourcePrereqs[];
167 extern const char kSourcePrereqs_HelpShort[]; 167 extern const char kSourcePrereqs_HelpShort[];
168 extern const char kSourcePrereqs_Help[]; 168 extern const char kSourcePrereqs_Help[];
169 169
170 extern const char kSources[]; 170 extern const char kSources[];
171 extern const char kSources_HelpShort[]; 171 extern const char kSources_HelpShort[];
172 extern const char kSources_Help[]; 172 extern const char kSources_Help[];
173 173
174 extern const char kVisibility[];
175 extern const char kVisibility_HelpShort[];
176 extern const char kVisibility_Help[];
177
174 // ----------------------------------------------------------------------------- 178 // -----------------------------------------------------------------------------
175 179
176 struct VariableInfo { 180 struct VariableInfo {
177 VariableInfo(); 181 VariableInfo();
178 VariableInfo(const char* in_help_short, 182 VariableInfo(const char* in_help_short,
179 const char* in_help); 183 const char* in_help);
180 184
181 const char* help_short; 185 const char* help_short;
182 const char* help; 186 const char* help;
183 }; 187 };
184 188
185 typedef std::map<base::StringPiece, VariableInfo> VariableInfoMap; 189 typedef std::map<base::StringPiece, VariableInfo> VariableInfoMap;
186 190
187 // Returns the built-in readonly variables. 191 // Returns the built-in readonly variables.
188 // Note: this is used only for help so this getter is not threadsafe. 192 // Note: this is used only for help so this getter is not threadsafe.
189 const VariableInfoMap& GetBuiltinVariables(); 193 const VariableInfoMap& GetBuiltinVariables();
190 194
191 // Returns the variables used by target generators. 195 // Returns the variables used by target generators.
192 // Note: this is used only for help so this getter is not threadsafe. 196 // Note: this is used only for help so this getter is not threadsafe.
193 const VariableInfoMap& GetTargetVariables(); 197 const VariableInfoMap& GetTargetVariables();
194 198
195 } // namespace variables 199 } // namespace variables
196 200
197 #endif // TOOLS_GN_VARIABLES_H_ 201 #endif // TOOLS_GN_VARIABLES_H_
OLDNEW
« no previous file with comments | « tools/gn/target_generator.cc ('k') | tools/gn/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698