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

Side by Side Diff: tools/gn/switches.cc

Issue 1934003002: Enhance GN's "desc" command to support configs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typos Created 4 years, 7 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/switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « tools/gn/switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698