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

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

Issue 1978693002: GN: Allow setting the path to Python (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const char kMarkdown_HelpShort[] = 96 const char kMarkdown_HelpShort[] =
97 "--markdown: Write help output in the Markdown format."; 97 "--markdown: Write help output in the Markdown format.";
98 const char kMarkdown_Help[] = 98 const char kMarkdown_Help[] =
99 "--markdown: Write help output in the Markdown format.\n"; 99 "--markdown: Write help output in the Markdown format.\n";
100 100
101 const char kNoColor[] = "nocolor"; 101 const char kNoColor[] = "nocolor";
102 const char kNoColor_HelpShort[] = 102 const char kNoColor_HelpShort[] =
103 "--nocolor: Force non-colored output."; 103 "--nocolor: Force non-colored output.";
104 const char kNoColor_Help[] = COLOR_HELP_LONG; 104 const char kNoColor_Help[] = COLOR_HELP_LONG;
105 105
106 const char kScriptExecutable[] = "script-executable";
107 const char kScriptExecutable_HelpShort[] =
108 "--script-executable: Set the executable used to execute scripts.";
109 const char kScriptExecutable_Help[] =
110 "--script-executable: Set the executable used to execute scripts.\n"
111 "\n"
112 " By default GN searches the PATH for Python to execute scripts in\n"
113 " action targets and exec_script calls. This flag allows the\n"
114 " specification of a specific Python executable or potentially\n"
115 " a different language interpreter.\n";
116
106 const char kQuiet[] = "q"; 117 const char kQuiet[] = "q";
107 const char kQuiet_HelpShort[] = 118 const char kQuiet_HelpShort[] =
108 "-q: Quiet mode. Don't print output on success."; 119 "-q: Quiet mode. Don't print output on success.";
109 const char kQuiet_Help[] = 120 const char kQuiet_Help[] =
110 "-q: Quiet mode. Don't print output on success.\n" 121 "-q: Quiet mode. Don't print output on success.\n"
111 "\n" 122 "\n"
112 " This is useful when running as a part of another script.\n"; 123 " This is useful when running as a part of another script.\n";
113 124
114 const char kRoot[] = "root"; 125 const char kRoot[] = "root";
115 const char kRoot_HelpShort[] = 126 const char kRoot_HelpShort[] =
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 if (info_map.empty()) { 258 if (info_map.empty()) {
248 INSERT_VARIABLE(Args) 259 INSERT_VARIABLE(Args)
249 INSERT_VARIABLE(Color) 260 INSERT_VARIABLE(Color)
250 INSERT_VARIABLE(Dotfile) 261 INSERT_VARIABLE(Dotfile)
251 INSERT_VARIABLE(FailOnUnusedArgs) 262 INSERT_VARIABLE(FailOnUnusedArgs)
252 INSERT_VARIABLE(Markdown) 263 INSERT_VARIABLE(Markdown)
253 INSERT_VARIABLE(NoColor) 264 INSERT_VARIABLE(NoColor)
254 INSERT_VARIABLE(Root) 265 INSERT_VARIABLE(Root)
255 INSERT_VARIABLE(Quiet) 266 INSERT_VARIABLE(Quiet)
256 INSERT_VARIABLE(RuntimeDepsListFile) 267 INSERT_VARIABLE(RuntimeDepsListFile)
268 INSERT_VARIABLE(ScriptExecutable)
257 INSERT_VARIABLE(Threads) 269 INSERT_VARIABLE(Threads)
258 INSERT_VARIABLE(Time) 270 INSERT_VARIABLE(Time)
259 INSERT_VARIABLE(Tracelog) 271 INSERT_VARIABLE(Tracelog)
260 INSERT_VARIABLE(Verbose) 272 INSERT_VARIABLE(Verbose)
261 INSERT_VARIABLE(Version) 273 INSERT_VARIABLE(Version)
262 } 274 }
263 return info_map; 275 return info_map;
264 } 276 }
265 277
266 #undef INSERT_VARIABLE 278 #undef INSERT_VARIABLE
267 279
268 } // namespace switches 280 } // 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