Commit cec431d8 authored by John Z Wu's avatar John Z Wu Committed by Commit Bot

Forward deps to copy public headers target in ios_framework_bundle.

Some public headers, like umbrella headers for frameworks, are generated
and so we need a direct dependency path between the copy public headers
target and the target that generates the header.

Change-Id: I14b73804498065c8049a4cea24453b89b759d94c
Reviewed-on: https://chromium-review.googlesource.com/992868
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548010}
parent 0243ee06
...@@ -1390,11 +1390,25 @@ template("ios_framework_bundle") { ...@@ -1390,11 +1390,25 @@ template("ios_framework_bundle") {
_copy_public_headers_target = _target_name + "_copy_public_headers" _copy_public_headers_target = _target_name + "_copy_public_headers"
copy(_copy_public_headers_target) { copy(_copy_public_headers_target) {
forward_variables_from(invoker,
[
"testonly",
"deps",
])
visibility = [ ":$_framework_headers_target" ] visibility = [ ":$_framework_headers_target" ]
sources = _public_headers sources = _public_headers
outputs = [ outputs = [
"$_framework_root/Headers/{{source_file_part}}", "$_framework_root/Headers/{{source_file_part}}",
] ]
# Do not use forward_variables_from for "public_deps" as
# we do not want to forward those dependencies.
if (defined(invoker.public_deps)) {
if (!defined(deps)) {
deps = []
}
deps += invoker.public_deps
}
} }
group(_framework_headers_target) { group(_framework_headers_target) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment