blob: a85a70459bfedb61cfb6971a1c7766108538e9c7 [file] [log] [blame]
Yifan Hong4db762a2018-07-10 15:49:21 -07001cc_defaults {
2 name: "android.hardware.health@2.0-impl_defaults",
Hridya Valsarajud3e3d722017-12-11 17:31:00 -08003
Yifan Hong4db762a2018-07-10 15:49:21 -07004 recovery_available: true,
5 cflags: [
6 "-Wall",
7 "-Werror",
8 ],
Hridya Valsarajud3e3d722017-12-11 17:31:00 -08009
10 shared_libs: [
11 "libbase",
12 "libhidlbase",
13 "libhidltransport",
14 "libhwbinder",
15 "liblog",
16 "libutils",
17 "libcutils",
18 "android.hardware.health@2.0",
19 ],
20
21 static_libs: [
22 "libbatterymonitor",
23 "android.hardware.health@1.0-convert",
24 ],
25}
Yifan Hong4db762a2018-07-10 15:49:21 -070026
27// Helper library for implementing health HAL. It is recommended that a health
28// service or passthrough HAL link to this library.
29cc_library_static {
30 name: "android.hardware.health@2.0-impl",
31 defaults: ["android.hardware.health@2.0-impl_defaults"],
32
33 vendor_available: true,
34 srcs: [
35 "Health.cpp",
36 "healthd_common.cpp",
37 ],
38
39 export_include_dirs: ["include"],
40}
41
42// Default passthrough implementation for recovery. Vendors can implement
43// android.hardware.health@2.0-impl-recovery-<device> to customize the behavior
44// of the HAL in recovery.
45// The implementation does NOT start the uevent loop for polling.
46cc_library_shared {
47 name: "android.hardware.health@2.0-impl-default",
48 defaults: ["android.hardware.health@2.0-impl_defaults"],
49
50 recovery_available: true,
51 relative_install_path: "hw",
52
53 static_libs: [
54 "android.hardware.health@2.0-impl",
55 "libhealthstoragedefault",
56 ],
57
58 srcs: [
59 "HealthImplDefault.cpp",
60 ],
61}