blob: 1c455d30aef2d54c0c93eadcdfcfc21454378407 [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",
34 "healthd_common.cpp",
35 ],
36
37 export_include_dirs: ["include"],
38}
39
40// Default passthrough implementation for recovery. Vendors can implement
41// android.hardware.health@2.0-impl-recovery-<device> to customize the behavior
42// of the HAL in recovery.
43// The implementation does NOT start the uevent loop for polling.
44cc_library_shared {
45 name: "android.hardware.health@2.0-impl-default",
46 defaults: ["android.hardware.health@2.0-impl_defaults"],
47
48 recovery_available: true,
49 relative_install_path: "hw",
50
51 static_libs: [
52 "android.hardware.health@2.0-impl",
53 "libhealthstoragedefault",
54 ],
55
56 srcs: [
57 "HealthImplDefault.cpp",
58 ],
59}