| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |