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" |
11 | 11 |
12 namespace variables { | 12 namespace variables { |
13 | 13 |
14 // Builtin vars ---------------------------------------------------------------- | 14 // Builtin vars ---------------------------------------------------------------- |
15 | 15 |
16 extern const char kBuildCpuArch[]; | 16 extern const char kBuildCpuArch[]; |
17 extern const char kBuildCpuArch_HelpShort[]; | 17 extern const char kBuildCpuArch_HelpShort[]; |
18 extern const char kBuildCpuArch_Help[]; | 18 extern const char kBuildCpuArch_Help[]; |
19 | 19 |
20 extern const char kBuildOs[]; | 20 extern const char kBuildOs[]; |
21 extern const char kBuildOs_HelpShort[]; | 21 extern const char kBuildOs_HelpShort[]; |
22 extern const char kBuildOs_Help[]; | 22 extern const char kBuildOs_Help[]; |
23 | 23 |
24 extern const char kComponentMode[]; | |
25 extern const char kComponentMode_HelpShort[]; | |
26 extern const char kComponentMode_Help[]; | |
27 | |
28 extern const char kCpuArch[]; | 24 extern const char kCpuArch[]; |
29 extern const char kCpuArch_HelpShort[]; | 25 extern const char kCpuArch_HelpShort[]; |
30 extern const char kCpuArch_Help[]; | 26 extern const char kCpuArch_Help[]; |
31 | 27 |
32 extern const char kCurrentToolchain[]; | 28 extern const char kCurrentToolchain[]; |
33 extern const char kCurrentToolchain_HelpShort[]; | 29 extern const char kCurrentToolchain_HelpShort[]; |
34 extern const char kCurrentToolchain_Help[]; | 30 extern const char kCurrentToolchain_Help[]; |
35 | 31 |
36 extern const char kDefaultToolchain[]; | 32 extern const char kDefaultToolchain[]; |
37 extern const char kDefaultToolchain_HelpShort[]; | 33 extern const char kDefaultToolchain_HelpShort[]; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // Note: this is used only for help so this getter is not threadsafe. | 188 // Note: this is used only for help so this getter is not threadsafe. |
193 const VariableInfoMap& GetBuiltinVariables(); | 189 const VariableInfoMap& GetBuiltinVariables(); |
194 | 190 |
195 // Returns the variables used by target generators. | 191 // Returns the variables used by target generators. |
196 // 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. |
197 const VariableInfoMap& GetTargetVariables(); | 193 const VariableInfoMap& GetTargetVariables(); |
198 | 194 |
199 } // namespace variables | 195 } // namespace variables |
200 | 196 |
201 #endif // TOOLS_GN_VARIABLES_H_ | 197 #endif // TOOLS_GN_VARIABLES_H_ |
OLD | NEW |