summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-06-20 13:10:04 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-06-20 13:10:04 -0700
commit87d7ad9d8fe6cbb0405983b37ff9e79927451bc7 (patch)
tree3cdc09f9859f0f721e9fb431d45cfb13c8fc9bad
parent70d0a4e154840a7b9563fdb4677e428880c50b4b (diff)
parent9f53eda37fe905211ce6546d32784e7f4d980614 (diff)
downloadlibhidl-android10-qpr2-s1-release.tar.gz
am: 9f53eda37f Change-Id: I2904eafad59ec5772a3e5d1fc2a75123dbcae25e
-rw-r--r--Android.bp34
1 files changed, 29 insertions, 5 deletions
diff --git a/Android.bp b/Android.bp
index 084763c..727f07f 100644
--- a/Android.bp
+++ b/Android.bp
@@ -47,23 +47,47 @@ cc_test {
],
}
+cc_defaults {
+ name: "libhidlbase-combined-impl",
+
+ defaults: [
+ "libhwbinder-impl-shared-libs",
+ "libhidlbase-impl-shared-libs",
+ "libhidltransport-impl-shared-libs",
+ ],
+
+ whole_static_libs: [
+ "libhidlbase-impl-internal",
+ "libhidltransport-impl-internal",
+ ],
+}
+
cc_library {
name: "libhidlbase",
+ defaults: ["libhidlbase-combined-impl"],
recovery_available: true,
vendor_available: true,
vndk: {
enabled: true,
support_system_process: true,
},
+ whole_static_libs: [
+ "libhwbinder-impl-internal",
+ ],
+}
+// Only libhwbinder_benchmark needs to have pgo enabled. When all places
+// support having PGO selectively enabled, all places can use libhwbinder.
+//
+// http://b/77320844
+cc_library {
+ name: "libhidlbase_pgo",
defaults: [
- "libhidlbase-impl-shared-libs",
- "libhidltransport-impl-shared-libs",
+ "libhidlbase-combined-impl",
+ "hwbinder_benchmark_pgo",
],
-
whole_static_libs: [
- "libhidlbase-impl-internal",
- "libhidltransport-impl-internal",
+ "libhwbinder_pgo-impl-internal",
],
}