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

Unified Diff: tools/gn/command_help.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/command_gen.cc ('k') | tools/gn/gn.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/command_help.cc
diff --git a/tools/gn/command_help.cc b/tools/gn/command_help.cc
index fc4e4e118a804be7b3fa6444591233837aab11bd..3479597f4bdf953379c46527bc20d9a4c055784f 100644
--- a/tools/gn/command_help.cc
+++ b/tools/gn/command_help.cc
@@ -13,6 +13,7 @@
#include "tools/gn/input_conversion.h"
#include "tools/gn/label_pattern.h"
#include "tools/gn/parser.h"
+#include "tools/gn/runtime_deps.h"
#include "tools/gn/setup.h"
#include "tools/gn/standard_out.h"
#include "tools/gn/substitution_writer.h"
@@ -61,9 +62,10 @@ void PrintToplevelHelp() {
PrintShortHelp("buildargs: How build arguments work.");
PrintShortHelp("dotfile: Info about the toplevel .gn file.");
PrintShortHelp("grammar: Formal grammar for GN build files.");
- PrintShortHelp("label_pattern: Matching more than one label.");
PrintShortHelp(
"input_conversion: Processing input from exec_script and read_file.");
+ PrintShortHelp("label_pattern: Matching more than one label.");
+ PrintShortHelp("runtime_deps: How runtime dependency computation works.");
PrintShortHelp("source_expansion: Map sources to outputs for scripts.");
PrintShortHelp("switches: Show available command-line switches.");
}
@@ -123,6 +125,7 @@ void PrintAllHelp() {
PrintLongHelp(kGrammar_Help);
PrintLongHelp(kInputConversion_Help);
PrintLongHelp(kLabelPattern_Help);
+ PrintLongHelp(kRuntimeDeps_Help);
PrintLongHelp(kSourceExpansion_Help);
PrintSwitchHelp();
}
@@ -236,6 +239,10 @@ int RunHelp(const std::vector<std::string>& args) {
PrintLongHelp(kLabelPattern_Help);
return 0;
}
+ if (what == "runtime_deps") {
+ PrintLongHelp(kRuntimeDeps_Help);
+ return 0;
+ }
if (what == "source_expansion") {
PrintLongHelp(kSourceExpansion_Help);
return 0;
« no previous file with comments | « tools/gn/command_gen.cc ('k') | tools/gn/gn.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698