healthd: move HealthServiceCommon
... to hardware/interfaces. HealthServiceCommon
becomes two separate libraries:
- libhealthservicedefault for services on vendor
- libhealthservicehealthd for healthd
Test: boots
Bug: 63702641
Change-Id: Ibc7096328bb36356cb653e542bab900cd046fe8a
diff --git a/healthd/Android.bp b/healthd/Android.bp
index df12ff0..c70278a 100644
--- a/healthd/Android.bp
+++ b/healthd/Android.bp
@@ -26,12 +26,10 @@
vendor: true,
relative_install_path: "hw",
srcs: [
- "HealthServiceCommon.cpp",
"HealthServiceDefault.cpp",
],
cflags: [
- "-DHEALTH_INSTANCE_NAME=\"default\"",
"-Wall",
"-Werror",
],
@@ -39,6 +37,7 @@
static_libs: [
"android.hardware.health@2.0-impl",
"android.hardware.health@1.0-convert",
+ "libhealthservice",
"libhealthstoragedefault",
"libbatterymonitor",
],
@@ -58,13 +57,11 @@
cc_binary {
name: "healthd",
srcs: [
- "HealthServiceCommon.cpp",
"HealthServiceHealthd.cpp",
],
local_include_dirs: ["include"],
cflags: [
- "-DHEALTH_INSTANCE_NAME=\"backup\"",
"-Wall",
"-Werror",
],
@@ -72,6 +69,7 @@
static_libs: [
"android.hardware.health@2.0-impl",
"android.hardware.health@1.0-convert",
+ "libhealthservice",
"libbatterymonitor",
"libhealthstoragedefault",
],