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

Unified Diff: tools/gn/variables.cc

Issue 1804303004: 🚙 GN: Add write_runtime_deps variable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove {}s Created 4 years, 9 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 81bb7e3ee535c495ed80f318b5591eb6a3ea250b..88e0ed10c6e52ed1ee36f7d3b30105ab09200cd3 100644
--- a/tools/gn/variables.cc
+++ b/tools/gn/variables.cc
@@ -1516,6 +1516,30 @@ const char kVisibility_Help[] =
" any targets in \"//bar/\" and any subdirectory thereof.\n"
" visibility = [ \"./*\", \"//bar/*\" ]\n";
+const char kWriteRuntimeDeps[] = "write_runtime_deps";
+const char kWriteRuntimeDeps_HelpShort[] =
+ "write_runtime_deps: Writes the target's runtime_deps to the given path.";
+const char kWriteRuntimeDeps_Help[] =
+ "write_runtime_deps: Writes the target's runtime_deps to the given path.\n"
+ "\n"
+ " Does not synchronously write the file, but rather schedules it\n"
+ " to be written at the end of generation.\n"
+ "\n"
+ " If the file exists and the contents are identical to that being\n"
+ " written, the file will not be updated. This will prevent unnecessary\n"
+ " rebuilds of targets that depend on this file.\n"
+ "\n"
+ " Path must be within the output directory.\n"
+ "\n"
+ " See \"gn help runtime_deps\" for how the runtime dependencies are\n"
+ " computed.\n"
+ "\n"
+ " The format of this file will list one file per line with no escaping.\n"
+ " The files will be relative to the root_build_dir. The first line of\n"
+ " the file will be the main output file of the target itself. The file\n"
+ " contents will be the same as requesting the runtime deps be written on\n"
+ " the command line (see \"gn help --runtime-deps-list-file\").\n";
+
// -----------------------------------------------------------------------------
VariableInfo::VariableInfo()
@@ -1596,6 +1620,7 @@ const VariableInfoMap& GetTargetVariables() {
INSERT_VARIABLE(Sources)
INSERT_VARIABLE(Testonly)
INSERT_VARIABLE(Visibility)
+ INSERT_VARIABLE(WriteRuntimeDeps)
}
return info_map;
}
« 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