summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-06-14 16:19:09 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-06-14 16:19:09 -0700
commit70d0a4e154840a7b9563fdb4677e428880c50b4b (patch)
tree04f4b96c2c49ddd42e874e1d0caeb7726996d09c
parenta0db7b7ad76b9be9ec3bd60ea83e079a74a30401 (diff)
parenta46371d5b3ffd08808ae93ec420721345738ec65 (diff)
downloadplatform_system_libhidl-70d0a4e154840a7b9563fdb4677e428880c50b4b.tar.gz
platform_system_libhidl-70d0a4e154840a7b9563fdb4677e428880c50b4b.tar.bz2
platform_system_libhidl-70d0a4e154840a7b9563fdb4677e428880c50b4b.zip
Combine libhidlbase/libhidltransport into one lib.
am: a46371d5b3 Change-Id: Id807e90ebbb22b9a46ce11b214bdc2d992167d6b
-rw-r--r--Android.bp33
-rw-r--r--base/Android.bp21
-rw-r--r--transport/Android.bp49
3 files changed, 73 insertions, 30 deletions
diff --git a/Android.bp b/Android.bp
index 97ed1085..084763c3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -46,3 +46,36 @@ cc_test {
"-g",
],
}
+
+cc_library {
+ name: "libhidlbase",
+ recovery_available: true,
+ vendor_available: true,
+ vndk: {
+ enabled: true,
+ support_system_process: true,
+ },
+
+ defaults: [
+ "libhidlbase-impl-shared-libs",
+ "libhidltransport-impl-shared-libs",
+ ],
+
+ whole_static_libs: [
+ "libhidlbase-impl-internal",
+ "libhidltransport-impl-internal",
+ ],
+}
+
+// WARNING: deprecated
+// This library is no longer required, and dependencies should be taken
+// on libhidlbase instead.
+cc_library {
+ name: "libhidltransport",
+ recovery_available: true,
+ vendor_available: true,
+ vndk: {
+ enabled: true,
+ support_system_process: true,
+ },
+}
diff --git a/base/Android.bp b/base/Android.bp
index 359ac91c..8fe2702c 100644
--- a/base/Android.bp
+++ b/base/Android.bp
@@ -12,15 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-cc_library {
- name: "libhidlbase",
- recovery_available: true,
- vendor_available: true,
- vndk: {
- enabled: true,
- support_system_process: true,
- },
- defaults: ["libhidl-defaults"],
+cc_defaults {
+ name: "libhidlbase-impl-shared-libs",
shared_libs: [
"libbase",
"libcutils",
@@ -31,6 +24,16 @@ cc_library {
"libutils",
"libcutils", // for native_handle.h
],
+}
+
+cc_library {
+ name: "libhidlbase-impl-internal",
+ vendor_available: true,
+ recovery_available: true,
+ defaults: [
+ "libhidlbase-impl-shared-libs",
+ "libhidl-defaults"
+ ],
local_include_dirs: ["include"],
export_include_dirs: ["include"],
diff --git a/transport/Android.bp b/transport/Android.bp
index 65181776..50f277e5 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"],
- },
- },
}