blob: 73cd55305874db0a052c3c70a2a74f6d87ad211f [file] [log] [blame]
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_interfaces_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_interfaces_license"],
}
cc_defaults {
name: "[email protected]_defaults",
recovery_available: true,
cflags: [
"-Wall",
"-Werror",
],
shared_libs: [
"libbase",
"libhidlbase",
"liblog",
"libutils",
"libcutils",
"[email protected]",
],
static_libs: [
"libbatterymonitor",
"[email protected]",
],
}
// Helper library for implementing health HAL. It is recommended that a health
// service or passthrough HAL link to this library.
cc_library_static {
name: "[email protected]",
defaults: ["[email protected]_defaults"],
vendor_available: true,
srcs: [
"Health.cpp",
"healthd_common_adapter.cpp",
],
whole_static_libs: [
"libhealthloop",
],
export_include_dirs: ["include"],
}
// Default passthrough implementation for recovery. Vendors can implement
// [email protected]<device> to customize the behavior
// of the HAL in recovery.
// The implementation does NOT start the uevent loop for polling.
cc_library_shared {
name: "[email protected]",
defaults: ["[email protected]_defaults"],
recovery_available: true,
relative_install_path: "hw",
static_libs: [
"[email protected]",
"libhealthstoragedefault",
],
srcs: [
"HealthImplDefault.cpp",
],
}