summaryrefslogtreecommitdiff
path: root/transport/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'transport/Android.bp')
-rw-r--r--transport/Android.bp49
1 files changed, 28 insertions, 21 deletions
diff --git a/transport/Android.bp b/transport/Android.bp
index 6518177..50f277e 100644
--- a/transport/Android.bp
+++ b/transport/Android.bp
@@ -16,30 +16,43 @@ hidl_package_root {
name: "android.hidl",
}
-cc_library {
- name: "libhidltransport",
- recovery_available: true,
- vendor_available: true,
- vndk: {
- enabled: true,
- support_system_process: true,
- },
- defaults: [
- "libhidl-defaults",
- "hidl-module-defaults",
- ],
+cc_defaults {
+ name: "libhidltransport-impl-shared-libs",
shared_libs: [
"libbase",
"liblog",
"libutils",
- "libhidlbase",
"libhwbinder",
"libcutils",
- "libvndksupport",
+ "libvndksupport"
],
export_shared_lib_headers: [
"libutils",
- "libhidlbase",
+ ],
+
+ target: {
+ recovery: {
+ exclude_shared_libs: ["libvndksupport"],
+ },
+ },
+}
+
+cc_library_static {
+ name: "libhidltransport-impl-internal",
+ vendor_available: true,
+ recovery_available: true,
+
+ defaults: [
+ "hidl-module-defaults",
+ "libhidl-defaults",
+ "libhidltransport-impl-shared-libs",
+ ],
+
+ static_libs: [
+ "libhidlbase-impl-internal",
+ ],
+ export_static_lib_headers: [
+ "libhidlbase-impl-internal",
],
export_include_dirs: ["include"],
@@ -81,10 +94,4 @@ cc_library {
cflags: ["-DENFORCE_VINTF_MANIFEST"]
},
},
-
- target: {
- recovery: {
- exclude_shared_libs: ["libvndksupport"],
- },
- },
}