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

Unified Diff: tools/gn/variables.cc

Issue 1358803002: Add ninja console pool support to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update action/action_foreach doc Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/variables.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/variables.cc
diff --git a/tools/gn/variables.cc b/tools/gn/variables.cc
index e7782d73bd7c81293cdc76574f3018b44d0fa207..2cbd97f71984013882f2b80b54dcbc33c6a5d364 100644
--- a/tools/gn/variables.cc
+++ b/tools/gn/variables.cc
@@ -574,6 +574,29 @@ const char kConfigs_Help[] =
" }\n"
" }\n";
+const char kConsole[] = "console";
+const char kConsole_HelpShort[] =
+ "console [boolean]: Run this action in the console pool.";
+const char kConsole_Help[] =
+ "console: Run this action in the console pool.\n"
+ "\n"
+ " Boolean. Defaults to false.\n"
+ "\n"
+ " Actions marked \"console = true\" will be run in the built-in ninja\n"
+ " \"console\" pool. They will have access to real stdin and stdout, and\n"
+ " output will not be buffered by ninja. This can be useful for\n"
+ " long-running actions with progress logs, or actions that require user \n"
+ " input.\n"
+ "\n"
+ " Only one console pool target can run at any one time in Ninja. Refer\n"
+ " to the Ninja documentation on the console pool for more info.\n"
+ "\n"
+ "Example\n"
+ "\n"
+ " action(\"long_action_with_progress_logs\") {\n"
+ " console = true\n"
+ " }\n";
+
const char kData[] = "data";
const char kData_HelpShort[] =
"data: [file list] Runtime data file dependencies.";
@@ -1249,6 +1272,7 @@ const VariableInfoMap& GetTargetVariables() {
INSERT_VARIABLE(CheckIncludes)
INSERT_VARIABLE(CompleteStaticLib)
INSERT_VARIABLE(Configs)
+ INSERT_VARIABLE(Console)
INSERT_VARIABLE(Data)
INSERT_VARIABLE(DataDeps)
INSERT_VARIABLE(Defines)
« no previous file with comments | « tools/gn/variables.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698