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

Unified Diff: tools/gn/target.cc

Issue 2880093002: gn desc: printing public_deps without --all and --tree
Patch Set: Created 3 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
« tools/gn/command_desc.cc ('K') | « tools/gn/target.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/target.cc
diff --git a/tools/gn/target.cc b/tools/gn/target.cc
index 759d7bff14493e59663830c67f2259562eb28f11..b7618dc1933f6ca1e376c1d6eb3b42aa2699ee76 100644
--- a/tools/gn/target.cc
+++ b/tools/gn/target.cc
@@ -422,6 +422,13 @@ DepsIteratorRange Target::GetDeps(DepsIterationType type) const {
return DepsIteratorRange(DepsIterator(
&public_deps_, &private_deps_, nullptr));
}
+ if (type == DEPS_PRIVATE) {
+ return DepsIteratorRange(
+ DepsIterator(&private_deps_, &data_deps_, nullptr));
+ }
+ if (type == DEPS_PUBLIC) {
+ return DepsIteratorRange(DepsIterator(&public_deps_, nullptr, nullptr));
+ }
// All deps.
return DepsIteratorRange(DepsIterator(
&public_deps_, &private_deps_, &data_deps_));
« tools/gn/command_desc.cc ('K') | « tools/gn/target.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698