DescriptionConsider bundle_data as public_deps of create_bundle targets.
The create_bundle and bundle_data targets works as a pair to copy
files into iOS/OS X bundles. The bundle_data target defines the
files to copy and the destination in the bundle, the create_bundle
target generate the copy rule (as the destination cannot be resolved
earlier).
This cause a problem with generated files, as gn prevents a target
using as input a generated file unless there is a direct dependency
or a chain of public dependencies. Since bundle_data/create_bundle
are designed to be resolved recursively, update this check to consider
all bundle_data as public_deps of create_bundle targets.
Convert Target::PullRecursiveBundleData() to O(n) algorithm instead
of a O(n^2) by percolating the dependencies up.
BUG=297668
Committed: https://crrev.com/1cc4b1ca2085776730f92ab41173c6afd9d51d12
Cr-Commit-Position: refs/heads/master@{#383049}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Convert Target::PullRecursiveBundleData() to O(n) algorithm #Patch Set 3 : Rebase on origin/master #
Total comments: 7
Patch Set 4 : Second round of comments #
Messages
Total messages: 16 (4 generated)
|