summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorZhuoyao Zhang <zhuoyao@google.com>2017-10-15 04:02:03 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-15 04:02:03 +0000
commita1e6c6045d0d2d49ed89b579beaa09c5e57a7ba9 (patch)
treedd9d62d0de95cb62729f489bf894cf271baaf9db /tests
parent1853d8b538c9498b22333e2a0f838ffafb530053 (diff)
parent9ffd1c6d8241c1c54f5931ad256eb3732f151d32 (diff)
downloadandroid_hardware_interfaces-a1e6c6045d0d2d49ed89b579beaa09c5e57a7ba9.tar.gz
android_hardware_interfaces-a1e6c6045d0d2d49ed89b579beaa09c5e57a7ba9.tar.bz2
android_hardware_interfaces-a1e6c6045d0d2d49ed89b579beaa09c5e57a7ba9.zip
Static link test lib shims with test -impl libs. am: 38a78e1fa9 am: 5871a92c46 am: c217673b8c
am: 9ffd1c6d82 Change-Id: I1e2cf34bb95f2f389ff66565a751585b8574de7f
Diffstat (limited to 'tests')
-rw-r--r--tests/bar/1.0/default/Android.bp9
-rw-r--r--tests/baz/1.0/default/Android.bp10
-rw-r--r--tests/foo/1.0/default/Android.bp10
-rw-r--r--tests/foo/1.0/default/lib/Android.bp8
-rw-r--r--tests/hash/1.0/default/Android.bp10
-rw-r--r--tests/inheritance/1.0/default/Android.bp9
-rw-r--r--tests/memory/1.0/default/Android.bp9
-rw-r--r--tests/multithread/1.0/default/Android.bp9
-rw-r--r--tests/pointer/1.0/default/Android.bp9
-rw-r--r--tests/pointer/1.0/default/lib/Android.bp5
-rw-r--r--tests/trie/1.0/default/Android.bp9
11 files changed, 74 insertions, 23 deletions
diff --git a/tests/bar/1.0/default/Android.bp b/tests/bar/1.0/default/Android.bp
index 82d34a95c..8aa6135fa 100644
--- a/tests/bar/1.0/default/Android.bp
+++ b/tests/bar/1.0/default/Android.bp
@@ -1,6 +1,6 @@
-cc_library_shared {
+cc_library {
name: "android.hardware.tests.bar@1.0-impl",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
@@ -14,10 +14,15 @@ cc_library_shared {
"libcutils",
"libhidlbase",
"libhidltransport",
+ "libhwbinder",
"liblog",
"libutils",
+ ],
+
+ // These are static libs only for testing purposes and portability. Shared
+ // libs should be used on device.
+ static_libs: [
"android.hardware.tests.foo@1.0",
"android.hardware.tests.bar@1.0",
],
-
}
diff --git a/tests/baz/1.0/default/Android.bp b/tests/baz/1.0/default/Android.bp
index f247b8378..492e0b4ae 100644
--- a/tests/baz/1.0/default/Android.bp
+++ b/tests/baz/1.0/default/Android.bp
@@ -1,4 +1,4 @@
-cc_library_shared {
+cc_library {
name: "android.hardware.tests.baz@1.0-impl",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
@@ -7,9 +7,15 @@ cc_library_shared {
],
shared_libs: [
"libbase",
+ "libcutils",
"libhidlbase",
"libhidltransport",
+ "libhwbinder",
+ "liblog",
"libutils",
- "android.hardware.tests.baz@1.0",
],
+
+ // These are static libs only for testing purposes and portability. Shared
+ // libs should be used on device.
+ static_libs: ["android.hardware.tests.baz@1.0"],
}
diff --git a/tests/foo/1.0/default/Android.bp b/tests/foo/1.0/default/Android.bp
index 0e1d34d35..d9dfc6926 100644
--- a/tests/foo/1.0/default/Android.bp
+++ b/tests/foo/1.0/default/Android.bp
@@ -1,6 +1,6 @@
-cc_library_shared {
+cc_library {
name: "android.hardware.tests.foo@1.0-impl",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
@@ -11,12 +11,16 @@ cc_library_shared {
shared_libs: [
"libbase",
"libcutils",
+ "libfootest",
"libhidlbase",
"libhidltransport",
- "libfootest",
+ "libhwbinder",
"liblog",
"libutils",
- "android.hardware.tests.foo@1.0",
],
+ // These are static libs only for testing purposes and portability. Shared
+ // libs should be used on device.
+ static_libs: ["android.hardware.tests.foo@1.0"],
+
}
diff --git a/tests/foo/1.0/default/lib/Android.bp b/tests/foo/1.0/default/lib/Android.bp
index 895582c58..2cc96c551 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 @@ cc_library_shared {
],
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"],
diff --git a/tests/hash/1.0/default/Android.bp b/tests/hash/1.0/default/Android.bp
index 67f90977d..6e6d6a8e3 100644
--- a/tests/hash/1.0/default/Android.bp
+++ b/tests/hash/1.0/default/Android.bp
@@ -1,4 +1,4 @@
-cc_library_shared {
+cc_library {
name: "android.hardware.tests.hash@1.0-impl",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
@@ -6,9 +6,15 @@ cc_library_shared {
"Hash.cpp",
],
shared_libs: [
+ "libcutils",
"libhidlbase",
"libhidltransport",
+ "libhwbinder",
+ "liblog",
"libutils",
- "android.hardware.tests.hash@1.0",
],
+
+ // These are static libs only for testing purposes and portability. Shared
+ // libs should be used on device.
+ static_libs: ["android.hardware.tests.hash@1.0"],
}
diff --git a/tests/inheritance/1.0/default/Android.bp b/tests/inheritance/1.0/default/Android.bp
index 158da4b12..891355b33 100644
--- a/tests/inheritance/1.0/default/Android.bp
+++ b/tests/inheritance/1.0/default/Android.bp
@@ -1,6 +1,6 @@
-cc_library_shared {
+cc_library {
name: "android.hardware.tests.inheritance@1.0-impl",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
@@ -12,11 +12,16 @@ cc_library_shared {
shared_libs: [
"libbase",
+ "libcutils",
"libhidlbase",
"libhidltransport",
+ "libhwbinder",
"liblog",
"libutils",
- "android.hardware.tests.inheritance@1.0",
],
+ // These are static libs only for testing purposes and portability. Shared
+ // libs should be used on device.
+ static_libs: ["android.hardware.tests.inheritance@1.0"],
+
}
diff --git a/tests/memory/1.0/default/Android.bp b/tests/memory/1.0/default/Android.bp
index efd416508..985183bc0 100644
--- a/tests/memory/1.0/default/Android.bp
+++ b/tests/memory/1.0/default/Android.bp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-cc_library_shared {
+cc_library {
name: "android.hardware.tests.memory@1.0-impl",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
@@ -20,12 +20,17 @@ cc_library_shared {
"MemoryTest.cpp",
],
shared_libs: [
+ "libcutils",
"libhidlbase",
"libhidltransport",
"libhidlmemory",
+ "libhwbinder",
"liblog",
"libutils",
- "android.hardware.tests.memory@1.0",
"android.hidl.memory@1.0",
],
+
+ // These are static libs only for testing purposes and portability. Shared
+ // libs should be used on device.
+ static_libs: ["android.hardware.tests.memory@1.0"],
} \ No newline at end of file
diff --git a/tests/multithread/1.0/default/Android.bp b/tests/multithread/1.0/default/Android.bp
index a7a750a61..a94ee3e1b 100644
--- a/tests/multithread/1.0/default/Android.bp
+++ b/tests/multithread/1.0/default/Android.bp
@@ -1,4 +1,4 @@
-cc_library_shared {
+cc_library {
name: "android.hardware.tests.multithread@1.0-impl",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
@@ -7,10 +7,15 @@ cc_library_shared {
],
shared_libs: [
"libbase",
+ "libcutils",
"libhidlbase",
"libhidltransport",
+ "libhwbinder",
"liblog",
"libutils",
- "android.hardware.tests.multithread@1.0",
],
+
+ // These are static libs only for testing purposes and portability. Shared
+ // libs should be used on device.
+ static_libs: ["android.hardware.tests.multithread@1.0"],
}
diff --git a/tests/pointer/1.0/default/Android.bp b/tests/pointer/1.0/default/Android.bp
index 0c91edb11..4825ac75a 100644
--- a/tests/pointer/1.0/default/Android.bp
+++ b/tests/pointer/1.0/default/Android.bp
@@ -1,6 +1,6 @@
-cc_library_shared {
+cc_library {
name: "android.hardware.tests.pointer@1.0-impl",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
@@ -11,12 +11,17 @@ cc_library_shared {
shared_libs: [
"libbase",
+ "libcutils",
"libhidlbase",
"libhidltransport",
+ "libhwbinder",
"libpointertest",
"liblog",
"libutils",
- "android.hardware.tests.pointer@1.0",
],
+ // These are static libs only for testing purposes and portability. Shared
+ // libs should be used on device.
+ static_libs: ["android.hardware.tests.pointer@1.0"],
+
}
diff --git a/tests/pointer/1.0/default/lib/Android.bp b/tests/pointer/1.0/default/lib/Android.bp
index ae07b046a..180906b9d 100644
--- a/tests/pointer/1.0/default/lib/Android.bp
+++ b/tests/pointer/1.0/default/lib/Android.bp
@@ -1,4 +1,4 @@
-cc_library_shared {
+cc_library {
name: "libpointertest",
defaults: ["hidl_defaults"],
srcs: [
@@ -10,8 +10,9 @@ cc_library_shared {
"libhidlbase",
"libhidltransport",
"liblog",
- "android.hardware.tests.pointer@1.0",
],
+ static_libs: ["android.hardware.tests.pointer@1.0"],
+
local_include_dirs: ["include/hidl-test"],
export_include_dirs: ["include"],
diff --git a/tests/trie/1.0/default/Android.bp b/tests/trie/1.0/default/Android.bp
index 315c8bb82..948a8cbab 100644
--- a/tests/trie/1.0/default/Android.bp
+++ b/tests/trie/1.0/default/Android.bp
@@ -1,4 +1,4 @@
-cc_library_shared {
+cc_library {
name: "android.hardware.tests.trie@1.0-impl",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
@@ -7,10 +7,15 @@ cc_library_shared {
],
shared_libs: [
"libbase",
+ "libcutils",
"libhidlbase",
"libhidltransport",
+ "libhwbinder",
"liblog",
"libutils",
- "android.hardware.tests.trie@1.0",
],
+
+ // These are static libs only for testing purposes and portability. Shared
+ // libs should be used on device.
+ static_libs: ["android.hardware.tests.trie@1.0"],
}