| Index: tools/gn/bundle_data.cc
|
| diff --git a/tools/gn/bundle_data.cc b/tools/gn/bundle_data.cc
|
| index 448eac96b425f52bb54e952ebda1438e32567699..c7f3fb8f054b7ff02a21b4822667b706da00f0cc 100644
|
| --- a/tools/gn/bundle_data.cc
|
| +++ b/tools/gn/bundle_data.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/logging.h"
|
| #include "tools/gn/filesystem_utils.h"
|
| +#include "tools/gn/label_pattern.h"
|
| #include "tools/gn/output_file.h"
|
| #include "tools/gn/settings.h"
|
| #include "tools/gn/substitution_writer.h"
|
| @@ -52,6 +53,10 @@ BundleData::~BundleData() {}
|
|
|
| void BundleData::AddBundleData(const Target* target) {
|
| DCHECK_EQ(target->output_type(), Target::BUNDLE_DATA);
|
| + for (const auto& pattern : bundle_deps_filter_) {
|
| + if (pattern.Matches(target->label()))
|
| + return;
|
| + }
|
| bundle_deps_.push_back(target);
|
| }
|
|
|
|
|