OLD | NEW |
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 #include "tools/gn/switches.h" | 5 #include "tools/gn/switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 const char kArgs[] = "args"; | 9 const char kArgs[] = "args"; |
10 const char kArgs_HelpShort[] = | 10 const char kArgs_HelpShort[] = |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 " This will spew logging events to the console for debugging issues.\n" | 218 " This will spew logging events to the console for debugging issues.\n" |
219 " Good luck!\n"; | 219 " Good luck!\n"; |
220 | 220 |
221 const char kVersion[] = "version"; | 221 const char kVersion[] = "version"; |
222 const char kVersion_HelpShort[] = | 222 const char kVersion_HelpShort[] = |
223 "--version: Prints the GN version number and exits."; | 223 "--version: Prints the GN version number and exits."; |
224 // It's impossible to see this since gn_main prints the version and exits | 224 // It's impossible to see this since gn_main prints the version and exits |
225 // immediately if this switch is used. | 225 // immediately if this switch is used. |
226 const char kVersion_Help[] = ""; | 226 const char kVersion_Help[] = ""; |
227 | 227 |
| 228 const char kAllToolchains[] = "all-toolchains"; |
| 229 |
228 // ----------------------------------------------------------------------------- | 230 // ----------------------------------------------------------------------------- |
229 | 231 |
230 SwitchInfo::SwitchInfo() | 232 SwitchInfo::SwitchInfo() |
231 : short_help(""), | 233 : short_help(""), |
232 long_help("") { | 234 long_help("") { |
233 } | 235 } |
234 | 236 |
235 SwitchInfo::SwitchInfo(const char* short_help, const char* long_help) | 237 SwitchInfo::SwitchInfo(const char* short_help, const char* long_help) |
236 : short_help(short_help), | 238 : short_help(short_help), |
237 long_help(long_help) { | 239 long_help(long_help) { |
(...skipping 19 matching lines...) Expand all Loading... |
257 INSERT_VARIABLE(Tracelog) | 259 INSERT_VARIABLE(Tracelog) |
258 INSERT_VARIABLE(Verbose) | 260 INSERT_VARIABLE(Verbose) |
259 INSERT_VARIABLE(Version) | 261 INSERT_VARIABLE(Version) |
260 } | 262 } |
261 return info_map; | 263 return info_map; |
262 } | 264 } |
263 | 265 |
264 #undef INSERT_VARIABLE | 266 #undef INSERT_VARIABLE |
265 | 267 |
266 } // namespace switches | 268 } // namespace switches |
OLD | NEW |