blob: 73cd55305874db0a052c3c70a2a74f6d87ad211f [file] [log] [blame]
Bob Badourc22b35b2021-02-23 14:26:20 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "hardware_interfaces_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
Yifan Hong4db762a2018-07-10 15:49:21 -070010cc_defaults {
11 name: "android.hardware.health@2.0-impl_defaults",
Hridya Valsarajud3e3d722017-12-11 17:31:00 -080012
Yifan Hong4db762a2018-07-10 15:49:21 -070013 recovery_available: true,
14 cflags: [
15 "-Wall",
16 "-Werror",
17 ],
Hridya Valsarajud3e3d722017-12-11 17:31:00 -080018
19 shared_libs: [
20 "libbase",
21 "libhidlbase",
Hridya Valsarajud3e3d722017-12-11 17:31:00 -080022 "liblog",
23 "libutils",
24 "libcutils",
25 "android.hardware.health@2.0",
26 ],
27
28 static_libs: [
29 "libbatterymonitor",
30 "android.hardware.health@1.0-convert",
31 ],
32}
Yifan Hong4db762a2018-07-10 15:49:21 -070033
34// Helper library for implementing health HAL. It is recommended that a health
35// service or passthrough HAL link to this library.
36cc_library_static {
37 name: "android.hardware.health@2.0-impl",
38 defaults: ["android.hardware.health@2.0-impl_defaults"],
39
40 vendor_available: true,
41 srcs: [
42 "Health.cpp",
Yifan Hong50c9e252019-10-03 16:26:13 -070043 "healthd_common_adapter.cpp",
44 ],
45
46 whole_static_libs: [
47 "libhealthloop",
Yifan Hong4db762a2018-07-10 15:49:21 -070048 ],
49
50 export_include_dirs: ["include"],
51}
52
53// Default passthrough implementation for recovery. Vendors can implement
54// android.hardware.health@2.0-impl-recovery-<device> to customize the behavior
55// of the HAL in recovery.
56// The implementation does NOT start the uevent loop for polling.
57cc_library_shared {
58 name: "android.hardware.health@2.0-impl-default",
59 defaults: ["android.hardware.health@2.0-impl_defaults"],
60
61 recovery_available: true,
62 relative_install_path: "hw",
63
64 static_libs: [
65 "android.hardware.health@2.0-impl",
66 "libhealthstoragedefault",
67 ],
68
69 srcs: [
70 "HealthImplDefault.cpp",
71 ],
72}