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

Unified Diff: tools/gn/command_desc.cc

Issue 2880093002: gn desc: printing public_deps without --all and --tree
Patch Set: fixing documentation indentation Created 3 years, 6 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 | « no previous file | tools/gn/desc_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/command_desc.cc
diff --git a/tools/gn/command_desc.cc b/tools/gn/command_desc.cc
index 8dbe6de7de932ec9b67c7cf2219cc6acbf6b8293..d68cf4cb7ee1f6e0ca68d41851d62b79566a14a3 100644
--- a/tools/gn/command_desc.cc
+++ b/tools/gn/command_desc.cc
@@ -314,6 +314,7 @@ Possibilities for <what to show>
cflags_cxx [--blame]
check_includes
configs [--tree] (see below)
+ data_deps (see below)
defines [--blame]
depfile
deps [--all] [--tree] (see below)
@@ -322,9 +323,11 @@ Possibilities for <what to show>
ldflags [--blame]
lib_dirs
libs
+ linked_deps (see below)
outputs
- public_configs
public
+ public_configs
+ public_deps (see below)
script
sources
testonly
@@ -372,8 +375,21 @@ Printing outputs
Printing deps
- Deps will include all public, private, and data deps (TODO this could be
- clarified and enhanced) sorted in order applying. The following may be used:
+ There are 4 different fields which contain information about deps:
+
+ deps
+ if the command is invoked without --tree and --all it just includes
+ private deps (see below for --tree and --all);
+ public_deps
+ if the command is invoked without --tree and --all it includes public
+ deps. If the command is invoked with --tree or --all this field is not
+ printed;
+ data_deps
+ includes data deps;
+ linked_deps
+ includes public and private deps sorted in order applying.
+
+ The following may be used:
--all
Collects all recursive dependencies and prints a sorted flat list. Also
« no previous file with comments | « no previous file | tools/gn/desc_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698