Static link test lib shims with test -impl libs.
* So that vts no longer needs to push the shim libs in hidl test.
Bug: 67500459
Test: make vts
vts-tradefed run vts -m VtsHidlUnitTest
Change-Id: I52ad066370f08a461b848d7d96dc4a659eb2da4d
diff --git a/tests/foo/1.0/default/lib/Android.bp b/tests/foo/1.0/default/lib/Android.bp
index 895582c..2cc96c5 100644
--- a/tests/foo/1.0/default/lib/Android.bp
+++ b/tests/foo/1.0/default/lib/Android.bp
@@ -1,4 +1,4 @@
-cc_library_shared {
+cc_library {
name: "libfootest",
defaults: ["hidl_defaults"],
srcs: [
@@ -6,10 +6,14 @@
],
shared_libs: [
+ "libcutils",
"libhidlbase",
"libhidltransport",
- "android.hardware.tests.foo@1.0",
+ "libhwbinder",
+ "liblog",
],
+ static_libs: ["android.hardware.tests.foo@1.0"],
+
local_include_dirs: ["include/hidl-test"],
export_include_dirs: ["include"],