From a85d7a0936933580add19d55872b798e5d79db01 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 20 Apr 2021 11:58:05 -0700 Subject: [PATCH] Use gtest_prod_headers. Bug: http://b/185916167 Test: treehugger Change-Id: I3407052df4f12b01acc4a75c6bd0759f7a4b2c4c --- tests/Android.bp | 4 +++- updater/Android.bp | 4 +++- updater/Android.mk | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/Android.bp b/tests/Android.bp index 0559dc3b..5ef4d58c 100644 --- a/tests/Android.bp +++ b/tests/Android.bp @@ -148,9 +148,11 @@ cc_test { "libupdater_core", "libupdate_verifier", - "libgtest_prod", "libprotobuf-cpp-lite", ], + header_libs: [ + "libgtest_prod_headers", + ], data: [ "testdata/*", diff --git a/updater/Android.bp b/updater/Android.bp index 840e50ab..35debaaf 100644 --- a/updater/Android.bp +++ b/updater/Android.bp @@ -36,7 +36,6 @@ cc_defaults { "libfec_rs", "libavb", "libverity_tree", - "libgtest_prod", "liblog", "liblp", "libselinux", @@ -51,6 +50,9 @@ cc_defaults { "libcutils", "libutils", ], + header_libs: [ + "libgtest_prod_headers", + ], } cc_defaults { diff --git a/updater/Android.mk b/updater/Android.mk index ddd4d864..bb1c07d4 100644 --- a/updater/Android.mk +++ b/updater/Android.mk @@ -34,7 +34,6 @@ updater_common_static_libraries := \ libfec_rs \ libavb \ libverity_tree \ - libgtest_prod \ liblog \ liblp \ libselinux \ @@ -96,6 +95,8 @@ LOCAL_STATIC_LIBRARIES := \ libtune2fs \ $(tune2fs_static_libraries) +LOCAL_HEADER_LIBRARIES := libgtest_prod_headers + LOCAL_MODULE_CLASS := EXECUTABLES inc := $(call local-generated-sources-dir)/register.inc