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

Unified Diff: tools/gn/switches.cc

Issue 1130183007: Add runtime dependency extraction for GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make msvc happy Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/switches.h ('k') | tools/gn/variables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/switches.cc
diff --git a/tools/gn/switches.cc b/tools/gn/switches.cc
index 9b866549375be1f57aa086756bd8ff5852dde98e..28e42e33a71a77e2401a8b68795f3c5399a1ccf8 100644
--- a/tools/gn/switches.cc
+++ b/tools/gn/switches.cc
@@ -58,9 +58,9 @@ const char kColor_Help[] = COLOR_HELP_LONG;
const char kDotfile[] = "dotfile";
const char kDotfile_HelpShort[] =
- "--dotfile: override the name of the \".gn\" file.";
+ "--dotfile: Override the name of the \".gn\" file.";
const char kDotfile_Help[] =
- "--dotfile: override the name of the \".gn\" file.\n"
+ "--dotfile: Override the name of the \".gn\" file.\n"
"\n"
" Normally GN loads the \".gn\"file from the source root for some basic\n"
" configuration (see \"gn help dotfile\"). This flag allows you to\n"
@@ -108,6 +108,39 @@ const char kRoot_Help[] =
"\n"
" gn desc //out/Default --root=\"C:\\Users\\BObama\\My Documents\\foo\"\n";
+const char kRuntimeDepsListFile[] = "runtime-deps-list-file";
+const char kRuntimeDepsListFile_HelpShort[] =
+ "--runtime-deps-list-file: Save runtime dependencies for targets in file.";
+const char kRuntimeDepsListFile_Help[] =
+ "--runtime-deps-list-file: Save runtime dependencies for targets in file.\n"
+ "\n"
+ " --runtime-deps-list-file=<filename>\n"
+ "\n"
+ " Where <filename> is a text file consisting of the labels, one per\n"
+ " line, of the targets for which runtime dependencies are desired.\n"
+ "\n"
+ " See \"gn help runtime_deps\" for a description of how runtime\n"
+ " dependencies are computed.\n"
+ "\n"
+ "Runtime deps output file\n"
+ "\n"
+ " For each target requested, GN will write a separate runtime dependency\n"
+ " file. The runtime dependency file will be in the output directory\n"
+ " alongside the output file of the target, with a \".runtime_deps\"\n"
+ " extension. For example, if the target \"//foo:bar\" is listed in the\n"
+ " input file, and that target produces an output file \"bar.so\", GN\n"
+ " will create a file \"bar.so.runtime_deps\" in the build directory.\n"
+ "\n"
+ " If a source set, action, copy, or group is listed, the runtime deps\n"
+ " file will correspond to the .stamp file corresponding to that target.\n"
+ " This is probably not useful; the use-case for this feature is\n"
+ " generally executable targets.\n"
+ "\n"
+ " The runtime dependency file will list one file per line, with no\n"
+ " escaping. The files will be relative to the root_build_dir. The first\n"
+ " line of the file will be the main output file of the target itself\n"
+ " (in the above example, \"bar.so\").\n";
+
const char kThreads[] = "threads";
const char kThreads_HelpShort[] =
"--threads: Specify number of worker threads.";
@@ -194,6 +227,7 @@ const SwitchInfoMap& GetSwitches() {
INSERT_VARIABLE(NoColor)
INSERT_VARIABLE(Root)
INSERT_VARIABLE(Quiet)
+ INSERT_VARIABLE(RuntimeDepsListFile)
INSERT_VARIABLE(Time)
INSERT_VARIABLE(Tracelog)
INSERT_VARIABLE(Verbose)
« no previous file with comments | « tools/gn/switches.h ('k') | tools/gn/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698