blob: 95bb5f555eb2774e8b69272f1aa26dcecbeb76a9 [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
Yifan Hong2763df82017-09-19 17:57:50 -070030 export_include_dirs: ["include"],
31
32 shared_libs: [
33 "libbase",
34 "libhidlbase",
35 "libhidltransport",
36 "libhwbinder",
37 "liblog",
38 "libutils",
39 "libcutils",
40 "android.hardware.health@2.0",
41 ],
42
43 static_libs: [
44 "libbatterymonitor",
45 "android.hardware.health@1.0-convert",
46 ],
47}
48
49cc_binary {
50 name: "android.hardware.health@2.0-service",
51 init_rc: ["android.hardware.health@2.0-service.rc"],
52 vendor: true,
53 relative_install_path: "hw",
Yifan Hongcded9002017-11-06 16:47:54 -080054 srcs: [
55 "HealthServiceCommon.cpp",
56 "HealthServiceDefault.cpp",
57 ],
Yifan Hong2763df82017-09-19 17:57:50 -070058
59 cflags: ["-DHEALTH_INSTANCE_NAME=\"default\""],
60
61 static_libs: [
62 "android.hardware.health@2.0-impl",
63 "android.hardware.health@1.0-convert",
64 "libbatterymonitor",
65 ],
66
67 shared_libs: [
68 "libbase",
69 "libcutils",
70 "libhidlbase",
71 "libhidltransport",
72 "libhwbinder",
73 "liblog",
74 "libutils",
75 "android.hardware.health@2.0",
76 ],
77}
Yifan Hong12df1b92017-09-25 17:25:00 -070078
79cc_binary {
80 name: "healthd",
Yifan Hongcded9002017-11-06 16:47:54 -080081 srcs: [
82 "HealthServiceCommon.cpp",
83 "HealthServiceHealthd.cpp",
84 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070085 local_include_dirs: ["include"],
86
87 cflags: ["-DHEALTH_INSTANCE_NAME=\"backup\""],
88
89 static_libs: [
90 "android.hardware.health@2.0-impl",
91 "android.hardware.health@1.0-convert",
92 "libbatterymonitor",
93 ],
94
95 shared_libs: [
96 "libbase",
97 "libcutils",
98 "libhidlbase",
99 "libhidltransport",
100 "libhwbinder",
101 "liblog",
102 "libutils",
Yifan Hong31cc64a2017-11-06 16:48:36 -0800103 "android.hardware.health@1.0",
Yifan Hong12df1b92017-09-25 17:25:00 -0700104 "android.hardware.health@2.0",
105 ],
106
107}