1cc_defaults {
2    name: "[email protected]_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        "[email protected]",
17    ],
18
19    static_libs: [
20        "libbatterymonitor",
21        "[email protected]",
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: "[email protected]",
29    defaults: ["[email protected]_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// [email protected]<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: "[email protected]",
50    defaults: ["[email protected]_defaults"],
51
52    recovery_available: true,
53    relative_install_path: "hw",
54
55    static_libs: [
56        "[email protected]",
57        "libhealthstoragedefault",
58    ],
59
60    srcs: [
61        "HealthImplDefault.cpp",
62    ],
63}
64