blob: 3c5877e1da9ae92e3bf7bfd594e6238706fbb0bf [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",
Hridya Valsarajud3e3d722017-12-11 17:31:00 -080013 "liblog",
14 "libutils",
15 "libcutils",
16 "android.hardware.health@2.0",
17 ],
18
19 static_libs: [
20 "libbatterymonitor",
21 "android.hardware.health@1.0-convert",
22 ],
23}
Yifan Hong4db762a2018-07-10 15:49:21 -070024
25// Helper library for implementing health HAL. It is recommended that a health
26// service or passthrough HAL link to this library.
27cc_library_static {
28 name: "android.hardware.health@2.0-impl",
29 defaults: ["android.hardware.health@2.0-impl_defaults"],
30
31 vendor_available: true,
32 srcs: [
33 "Health.cpp",
Yifan Hong50c9e252019-10-03 16:26:13 -070034 "healthd_common_adapter.cpp",
35 ],
36
37 whole_static_libs: [
38 "libhealthloop",
Yifan Hong4db762a2018-07-10 15:49:21 -070039 ],
40
41 export_include_dirs: ["include"],
42}
43
44// Default passthrough implementation for recovery. Vendors can implement
45// android.hardware.health@2.0-impl-recovery-<device> to customize the behavior
46// of the HAL in recovery.
47// The implementation does NOT start the uevent loop for polling.
48cc_library_shared {
49 name: "android.hardware.health@2.0-impl-default",
50 defaults: ["android.hardware.health@2.0-impl_defaults"],
51
52 recovery_available: true,
53 relative_install_path: "hw",
54
55 static_libs: [
56 "android.hardware.health@2.0-impl",
57 "libhealthstoragedefault",
58 ],
59
60 srcs: [
61 "HealthImplDefault.cpp",
62 ],
63}