summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-06-22 23:02:43 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-06-22 23:02:43 +0000
commitab38ea9de6ed5d35c1024c67a099be9291330390 (patch)
tree3cdc09f9859f0f721e9fb431d45cfb13c8fc9bad
parentcb901411b95d4f54dd97b5e0816bba18ccc4a1b5 (diff)
parent87d7ad9d8fe6cbb0405983b37ff9e79927451bc7 (diff)
downloadlibhidl-android10-qpr1-release.tar.gz
Change-Id: I8fb2e10cf81366b198ea9496b5a508c548a5829e
-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",
],
}