update_engine: Fix header file dependency.
generate_delta_main.cc in :delta_generator target includes a generated
header file by protoc. The rule providing such header should be directly
depended by the parent target, or done by public-dependency chain.
BUG=chromium:1086795
TEST=run "gn gen --check" like done by crrev.com/c/2215951
TEST=USE="asan fuzzer" cros_workon_make --board=$BOARD update_engine
Change-Id: Ic1d4f8f5ac5d205bca2212651b20f6f946f73736
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2217162
Tested-by: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Reviewed-by: Keigo Oka <oka@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>
Commit-Queue: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index 7961fe1..e438af4 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -182,7 +182,7 @@
"libpuffpatch",
"xz-embedded",
]
- deps = [ ":update_metadata-protos" ]
+ public_deps = [ ":update_metadata-protos" ]
}
# The main daemon static_library with all the code used to check for updates