blob: d3488665e8c48e2616ec5a6d9c30c5aeadbc7338 [file] [log] [blame]
Steven Moreland1b13eea2017-07-10 16:05:51 -07001cc_library_headers {
2 name: "libhealthd_headers",
3 vendor_available: true,
4 export_include_dirs: ["include"],
5 header_libs: ["libbatteryservice_headers"],
6 export_header_lib_headers: ["libbatteryservice_headers"],
7}
Yifan Hongffff9aa2017-06-01 14:34:29 -07008
9cc_library_static {
10 name: "libbatterymonitor",
11 srcs: ["BatteryMonitor.cpp"],
12 vendor_available: true,
13 export_include_dirs: ["include"],
14 shared_libs: [
15 "libutils",
16 "libbase",
17 ],
18 header_libs: ["libhealthd_headers"],
19 export_header_lib_headers: ["libhealthd_headers"],
20}
Yifan Hong2763df82017-09-19 17:57:50 -070021
22cc_library_static {
23 name: "android.hardware.health@2.0-impl",
24 vendor_available: true,
25 srcs: [
26 "Health.cpp",
27 "healthd_common.cpp",
28 ],
29
30 cflags: ["-DHEALTHD_USE_HEALTH_2_0"],
31
32 export_include_dirs: ["include"],
33
34 shared_libs: [
35 "libbase",
36 "libhidlbase",
37 "libhidltransport",
38 "libhwbinder",
39 "liblog",
40 "libutils",
41 "libcutils",
42 "android.hardware.health@2.0",
43 ],
44
45 static_libs: [
46 "libbatterymonitor",
47 "android.hardware.health@1.0-convert",
48 ],
49}
50
51cc_binary {
52 name: "android.hardware.health@2.0-service",
53 init_rc: ["android.hardware.health@2.0-service.rc"],
54 vendor: true,
55 relative_install_path: "hw",
56 srcs: ["HealthService.cpp"],
57
58 cflags: ["-DHEALTH_INSTANCE_NAME=\"default\""],
59
60 static_libs: [
61 "android.hardware.health@2.0-impl",
62 "android.hardware.health@1.0-convert",
63 "libbatterymonitor",
64 ],
65
66 shared_libs: [
67 "libbase",
68 "libcutils",
69 "libhidlbase",
70 "libhidltransport",
71 "libhwbinder",
72 "liblog",
73 "libutils",
74 "android.hardware.health@2.0",
75 ],
76}