• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc_defaults {
2    name: "android.hardware.health@2.0-impl_defaults",
3
4    recovery_available: true,
5    cflags: [
6        "-Wall",
7        "-Werror",
8    ],
9
10    shared_libs: [
11        "libbase",
12        "libhidlbase",
13        "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}
24
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_adapter.cpp",
35    ],
36
37    whole_static_libs: [
38        "libhealthloop",
39    ],
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}
64