2017-07-11 01:05:51 +02:00
|
|
|
cc_library_headers {
|
|
|
|
name: "libhealthd_headers",
|
|
|
|
vendor_available: true,
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
header_libs: ["libbatteryservice_headers"],
|
|
|
|
export_header_lib_headers: ["libbatteryservice_headers"],
|
|
|
|
}
|
2017-06-01 23:34:29 +02:00
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
name: "libbatterymonitor",
|
|
|
|
srcs: ["BatteryMonitor.cpp"],
|
2017-11-29 23:24:50 +01:00
|
|
|
cflags: ["-Wall", "-Werror"],
|
2017-06-01 23:34:29 +02:00
|
|
|
vendor_available: true,
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
shared_libs: [
|
|
|
|
"libutils",
|
|
|
|
"libbase",
|
|
|
|
],
|
|
|
|
header_libs: ["libhealthd_headers"],
|
|
|
|
export_header_lib_headers: ["libhealthd_headers"],
|
|
|
|
}
|
2017-09-20 02:57:50 +02:00
|
|
|
|
2018-04-04 23:08:57 +02:00
|
|
|
cc_defaults {
|
|
|
|
name: "android.hardware.health@2.0-service_defaults",
|
2017-09-20 02:57:50 +02:00
|
|
|
init_rc: ["android.hardware.health@2.0-service.rc"],
|
|
|
|
vendor: true,
|
|
|
|
relative_install_path: "hw",
|
2017-11-07 01:47:54 +01:00
|
|
|
srcs: [
|
|
|
|
"HealthServiceDefault.cpp",
|
|
|
|
],
|
2017-09-20 02:57:50 +02:00
|
|
|
|
2017-11-29 23:24:50 +01:00
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
],
|
2017-09-20 02:57:50 +02:00
|
|
|
|
|
|
|
static_libs: [
|
|
|
|
"android.hardware.health@2.0-impl",
|
|
|
|
"android.hardware.health@1.0-convert",
|
2018-01-20 00:53:25 +01:00
|
|
|
"libhealthservice",
|
2018-01-11 01:14:28 +01:00
|
|
|
"libhealthstoragedefault",
|
2017-09-20 02:57:50 +02:00
|
|
|
"libbatterymonitor",
|
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libcutils",
|
|
|
|
"libhidlbase",
|
|
|
|
"libhidltransport",
|
|
|
|
"libhwbinder",
|
|
|
|
"liblog",
|
|
|
|
"libutils",
|
|
|
|
"android.hardware.health@2.0",
|
|
|
|
],
|
|
|
|
}
|
2017-09-26 02:25:00 +02:00
|
|
|
|
2018-04-04 23:08:57 +02:00
|
|
|
cc_binary {
|
|
|
|
name: "android.hardware.health@2.0-service",
|
|
|
|
defaults: ["android.hardware.health@2.0-service_defaults"],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "android.hardware.health@2.0-service.override",
|
|
|
|
defaults: ["android.hardware.health@2.0-service_defaults"],
|
|
|
|
|
|
|
|
overrides: [
|
|
|
|
"healthd",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2017-09-26 02:25:00 +02:00
|
|
|
cc_binary {
|
|
|
|
name: "healthd",
|
2018-04-04 23:08:04 +02:00
|
|
|
init_rc: ["healthd.rc"],
|
2017-11-07 01:47:54 +01:00
|
|
|
srcs: [
|
|
|
|
"HealthServiceHealthd.cpp",
|
|
|
|
],
|
2017-09-26 02:25:00 +02:00
|
|
|
local_include_dirs: ["include"],
|
|
|
|
|
2017-11-29 23:24:50 +01:00
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
],
|
2017-09-26 02:25:00 +02:00
|
|
|
|
|
|
|
static_libs: [
|
|
|
|
"android.hardware.health@2.0-impl",
|
|
|
|
"android.hardware.health@1.0-convert",
|
2018-01-20 00:53:25 +01:00
|
|
|
"libhealthservice",
|
2017-09-26 02:25:00 +02:00
|
|
|
"libbatterymonitor",
|
2018-01-11 01:14:28 +01:00
|
|
|
"libhealthstoragedefault",
|
2017-09-26 02:25:00 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libcutils",
|
|
|
|
"libhidlbase",
|
|
|
|
"libhidltransport",
|
|
|
|
"libhwbinder",
|
|
|
|
"liblog",
|
|
|
|
"libutils",
|
2017-11-07 01:48:36 +01:00
|
|
|
"android.hardware.health@1.0",
|
2017-09-26 02:25:00 +02:00
|
|
|
"android.hardware.health@2.0",
|
|
|
|
],
|
|
|
|
|
|
|
|
}
|