| Index: tools/gn/target.cc
|
| diff --git a/tools/gn/target.cc b/tools/gn/target.cc
|
| index 759d7bff14493e59663830c67f2259562eb28f11..6796204dbbf4b0dcccef1c595255dd102bcd3a09 100644
|
| --- a/tools/gn/target.cc
|
| +++ b/tools/gn/target.cc
|
| @@ -418,13 +418,20 @@ bool Target::IsFinal() const {
|
| }
|
|
|
| DepsIteratorRange Target::GetDeps(DepsIterationType type) const {
|
| - if (type == DEPS_LINKED) {
|
| - return DepsIteratorRange(DepsIterator(
|
| - &public_deps_, &private_deps_, nullptr));
|
| + switch (type) {
|
| + case DEPS_LINKED:
|
| + return DepsIteratorRange(
|
| + DepsIterator(&public_deps_, &private_deps_, nullptr));
|
| + case DEPS_PRIVATE:
|
| + return DepsIteratorRange(
|
| + DepsIterator(&private_deps_, &data_deps_, nullptr));
|
| + case DEPS_PUBLIC:
|
| + return DepsIteratorRange(DepsIterator(&public_deps_, nullptr, nullptr));
|
| + default:
|
| + // All deps.
|
| + return DepsIteratorRange(
|
| + DepsIterator(&public_deps_, &private_deps_, &data_deps_));
|
| }
|
| - // All deps.
|
| - return DepsIteratorRange(DepsIterator(
|
| - &public_deps_, &private_deps_, &data_deps_));
|
| }
|
|
|
| std::string Target::GetComputedOutputName() const {
|
|
|