blob: 2cf6be96db51fd3e45901cc2056db3741ac8bd8c [file] [log] [blame]
cc_library_headers {
name: "libhealthd_headers",
vendor_available: true,
recovery_available: true,
export_include_dirs: ["include"],
header_libs: ["libbatteryservice_headers"],
export_header_lib_headers: ["libbatteryservice_headers"],
}
cc_library_static {
name: "libbatterymonitor",
srcs: ["BatteryMonitor.cpp"],
cflags: ["-Wall", "-Werror"],
vendor_available: true,
recovery_available: true,
export_include_dirs: ["include"],
shared_libs: [
"libutils",
"libbase",
],
header_libs: ["libhealthd_headers"],
export_header_lib_headers: ["libhealthd_headers"],
}
cc_defaults {
name: "[email protected]_defaults",
cflags: [
"-Wall",
"-Werror",
],
static_libs: [
"[email protected]",
"[email protected]",
"libhealthservice",
"libhealthstoragedefault",
"libbatterymonitor",
],
shared_libs: [
"libbase",
"libcutils",
"libhidlbase",
"libhidltransport",
"libhwbinder",
"liblog",
"libutils",
"[email protected]",
],
}
cc_binary {
name: "[email protected]",
defaults: ["[email protected]_defaults"],
vendor: true,
relative_install_path: "hw",
init_rc: ["[email protected]"],
srcs: [
"HealthServiceDefault.cpp",
],
overrides: [
"healthd",
]
}
cc_binary {
name: "healthd",
defaults: ["[email protected]_defaults"],
init_rc: ["healthd.rc"],
srcs: [
"HealthServiceHealthd.cpp",
],
local_include_dirs: ["include"],
shared_libs: [
"[email protected]",
],
vintf_fragments: [
"manifest_healthd.xml"
],
}
cc_library_static {
name: "libhealthd_charger_nops",
srcs: [
"healthd_mode_charger_nops.cpp",
],
cflags: [
"-Wall",
"-Werror",
],
header_libs: [
"libhealthd_headers",
],
static_libs: [
"[email protected]",
],
shared_libs: [
"[email protected]",
"libutils",
],
}