| Index: tools/gn/ninja_group_target_writer.cc
|
| diff --git a/tools/gn/ninja_group_target_writer.cc b/tools/gn/ninja_group_target_writer.cc
|
| index 1b1c30057c1277cd0d66305ae7f589ba21d6dbc1..d185941c0a053e180713e74400a4f0badf65e634 100644
|
| --- a/tools/gn/ninja_group_target_writer.cc
|
| +++ b/tools/gn/ninja_group_target_writer.cc
|
| @@ -19,16 +19,16 @@ NinjaGroupTargetWriter::~NinjaGroupTargetWriter() {
|
|
|
| void NinjaGroupTargetWriter::Run() {
|
| // A group rule just generates a stamp file with dependencies on each of
|
| - // the deps and datadeps in the group.
|
| + // the deps and data_deps in the group.
|
| std::vector<OutputFile> output_files;
|
| - const LabelTargetVector& deps = target_->deps();
|
| - for (size_t i = 0; i < deps.size(); i++)
|
| - output_files.push_back(deps[i].ptr->dependency_output_file());
|
| + for (DepsIterator iter(target_, DepsIterator::LINKED_ONLY);
|
| + !iter.done(); iter.Advance())
|
| + output_files.push_back(iter.target()->dependency_output_file());
|
|
|
| std::vector<OutputFile> data_output_files;
|
| - const LabelTargetVector& datadeps = target_->datadeps();
|
| - for (size_t i = 0; i < datadeps.size(); i++)
|
| - data_output_files.push_back(datadeps[i].ptr->dependency_output_file());
|
| + const LabelTargetVector& data_deps = target_->data_deps();
|
| + for (size_t i = 0; i < data_deps.size(); i++)
|
| + data_output_files.push_back(data_deps[i].ptr->dependency_output_file());
|
|
|
| WriteStampForTarget(output_files, data_output_files);
|
| }
|
|
|