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

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: Rename the switch to script-executable 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 uses Python to execute scripts in action targets and\n"
brettw 2016/05/13 17:03:44 Can you change this to: By default GN searches th
Petr Hosek 2016/05/13 18:13:47 Done.
113 " exec_scripts function invocations. This flag allows using a custom\n"
114 " executable.\n";
115
106 const char kQuiet[] = "q"; 116 const char kQuiet[] = "q";
107 const char kQuiet_HelpShort[] = 117 const char kQuiet_HelpShort[] =
108 "-q: Quiet mode. Don't print output on success."; 118 "-q: Quiet mode. Don't print output on success.";
109 const char kQuiet_Help[] = 119 const char kQuiet_Help[] =
110 "-q: Quiet mode. Don't print output on success.\n" 120 "-q: Quiet mode. Don't print output on success.\n"
111 "\n" 121 "\n"
112 " This is useful when running as a part of another script.\n"; 122 " This is useful when running as a part of another script.\n";
113 123
114 const char kRoot[] = "root"; 124 const char kRoot[] = "root";
115 const char kRoot_HelpShort[] = 125 const char kRoot_HelpShort[] =
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 if (info_map.empty()) { 255 if (info_map.empty()) {
246 INSERT_VARIABLE(Args) 256 INSERT_VARIABLE(Args)
247 INSERT_VARIABLE(Color) 257 INSERT_VARIABLE(Color)
248 INSERT_VARIABLE(Dotfile) 258 INSERT_VARIABLE(Dotfile)
249 INSERT_VARIABLE(FailOnUnusedArgs) 259 INSERT_VARIABLE(FailOnUnusedArgs)
250 INSERT_VARIABLE(Markdown) 260 INSERT_VARIABLE(Markdown)
251 INSERT_VARIABLE(NoColor) 261 INSERT_VARIABLE(NoColor)
252 INSERT_VARIABLE(Root) 262 INSERT_VARIABLE(Root)
253 INSERT_VARIABLE(Quiet) 263 INSERT_VARIABLE(Quiet)
254 INSERT_VARIABLE(RuntimeDepsListFile) 264 INSERT_VARIABLE(RuntimeDepsListFile)
255 INSERT_VARIABLE(Threads) 265 INSERT_VARIABLE(Threads)
brettw 2016/05/13 17:04:15 Oh, also add here: INSERT_VARIABLE(ScriptExecuta
Petr Hosek 2016/05/13 18:13:47 Done.
256 INSERT_VARIABLE(Time) 266 INSERT_VARIABLE(Time)
257 INSERT_VARIABLE(Tracelog) 267 INSERT_VARIABLE(Tracelog)
258 INSERT_VARIABLE(Verbose) 268 INSERT_VARIABLE(Verbose)
259 INSERT_VARIABLE(Version) 269 INSERT_VARIABLE(Version)
260 } 270 }
261 return info_map; 271 return info_map;
262 } 272 }
263 273
264 #undef INSERT_VARIABLE 274 #undef INSERT_VARIABLE
265 275
266 } // namespace switches 276 } // 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