From fab263ceaee2a1aab58c7d0841921d61c06766ec Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Wed, 5 Jan 2022 00:02:27 -0800 Subject: [PATCH] health: Add libhealth_aidl_impl_user. This is the defaults for users of libhealth_aidl_impl. Test: builds Bug: 213273090 Change-Id: Iddcc0a0bc194f337c5e9a632ea2468140804a30a --- health/aidl/default/Android.bp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/health/aidl/default/Android.bp b/health/aidl/default/Android.bp index 8aa7638fa3..8eab99773b 100644 --- a/health/aidl/default/Android.bp +++ b/health/aidl/default/Android.bp @@ -120,6 +120,15 @@ cc_library_static { }, } +// Users of libhealth_aidl_impl should use this defaults. +cc_defaults { + name: "libhealth_aidl_impl_user", + defaults: [ + "libhealth_aidl_common_defaults", + "libhealth_aidl_charger_defaults", + ], +} + // AIDL version of android.hardware.health@2.1-service. // Default binder service of the health HAL. cc_defaults { @@ -127,8 +136,7 @@ cc_defaults { relative_install_path: "hw", vintf_fragments: ["android.hardware.health-service.example.xml"], defaults: [ - "libhealth_aidl_common_defaults", - "libhealth_aidl_charger_defaults", + "libhealth_aidl_impl_user", ], static_libs: [ "libhealth_aidl_impl",