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

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

Issue 1804303004: 🚙 GN: Add write_runtime_deps variable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove {}s Created 4 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
« no previous file with comments | « tools/gn/target_unittest.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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 extern const char kSources_Help[]; 228 extern const char kSources_Help[];
229 229
230 extern const char kTestonly[]; 230 extern const char kTestonly[];
231 extern const char kTestonly_HelpShort[]; 231 extern const char kTestonly_HelpShort[];
232 extern const char kTestonly_Help[]; 232 extern const char kTestonly_Help[];
233 233
234 extern const char kVisibility[]; 234 extern const char kVisibility[];
235 extern const char kVisibility_HelpShort[]; 235 extern const char kVisibility_HelpShort[];
236 extern const char kVisibility_Help[]; 236 extern const char kVisibility_Help[];
237 237
238 extern const char kWriteRuntimeDeps[];
239 extern const char kWriteRuntimeDeps_HelpShort[];
240 extern const char kWriteRuntimeDeps_Help[];
241
238 // ----------------------------------------------------------------------------- 242 // -----------------------------------------------------------------------------
239 243
240 struct VariableInfo { 244 struct VariableInfo {
241 VariableInfo(); 245 VariableInfo();
242 VariableInfo(const char* in_help_short, 246 VariableInfo(const char* in_help_short,
243 const char* in_help); 247 const char* in_help);
244 248
245 const char* help_short; 249 const char* help_short;
246 const char* help; 250 const char* help;
247 }; 251 };
248 252
249 typedef std::map<base::StringPiece, VariableInfo> VariableInfoMap; 253 typedef std::map<base::StringPiece, VariableInfo> VariableInfoMap;
250 254
251 // Returns the built-in readonly variables. 255 // Returns the built-in readonly variables.
252 // Note: this is used only for help so this getter is not threadsafe. 256 // Note: this is used only for help so this getter is not threadsafe.
253 const VariableInfoMap& GetBuiltinVariables(); 257 const VariableInfoMap& GetBuiltinVariables();
254 258
255 // Returns the variables used by target generators. 259 // Returns the variables used by target generators.
256 // Note: this is used only for help so this getter is not threadsafe. 260 // Note: this is used only for help so this getter is not threadsafe.
257 const VariableInfoMap& GetTargetVariables(); 261 const VariableInfoMap& GetTargetVariables();
258 262
259 } // namespace variables 263 } // namespace variables
260 264
261 #endif // TOOLS_GN_VARIABLES_H_ 265 #endif // TOOLS_GN_VARIABLES_H_
OLDNEW
« no previous file with comments | « tools/gn/target_unittest.cc ('k') | tools/gn/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698