blob: ea5946984645807ed13460220f987bded4e8d212 [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"],
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080012 cflags: ["-Wall", "-Werror"],
Yifan Hongffff9aa2017-06-01 14:34:29 -070013 vendor_available: true,
14 export_include_dirs: ["include"],
15 shared_libs: [
16 "libutils",
17 "libbase",
18 ],
19 header_libs: ["libhealthd_headers"],
20 export_header_lib_headers: ["libhealthd_headers"],
21}
Yifan Hong2763df82017-09-19 17:57:50 -070022
23cc_library_static {
24 name: "android.hardware.health@2.0-impl",
25 vendor_available: true,
26 srcs: [
27 "Health.cpp",
28 "healthd_common.cpp",
29 ],
30
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080031 cflags: [
32 "-Wall",
33 "-Werror",
34 ],
35
Yifan Hong2763df82017-09-19 17:57:50 -070036 export_include_dirs: ["include"],
37
38 shared_libs: [
39 "libbase",
40 "libhidlbase",
41 "libhidltransport",
42 "libhwbinder",
43 "liblog",
44 "libutils",
45 "libcutils",
46 "android.hardware.health@2.0",
47 ],
48
49 static_libs: [
50 "libbatterymonitor",
51 "android.hardware.health@1.0-convert",
52 ],
53}
54
55cc_binary {
56 name: "android.hardware.health@2.0-service",
57 init_rc: ["android.hardware.health@2.0-service.rc"],
58 vendor: true,
59 relative_install_path: "hw",
Yifan Hongcded9002017-11-06 16:47:54 -080060 srcs: [
61 "HealthServiceCommon.cpp",
62 "HealthServiceDefault.cpp",
63 ],
Yifan Hong2763df82017-09-19 17:57:50 -070064
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080065 cflags: [
66 "-DHEALTH_INSTANCE_NAME=\"default\"",
67 "-Wall",
68 "-Werror",
69 ],
Yifan Hong2763df82017-09-19 17:57:50 -070070
71 static_libs: [
72 "android.hardware.health@2.0-impl",
73 "android.hardware.health@1.0-convert",
74 "libbatterymonitor",
75 ],
76
77 shared_libs: [
78 "libbase",
79 "libcutils",
80 "libhidlbase",
81 "libhidltransport",
82 "libhwbinder",
83 "liblog",
84 "libutils",
85 "android.hardware.health@2.0",
86 ],
87}
Yifan Hong12df1b92017-09-25 17:25:00 -070088
89cc_binary {
90 name: "healthd",
Yifan Hongcded9002017-11-06 16:47:54 -080091 srcs: [
92 "HealthServiceCommon.cpp",
93 "HealthServiceHealthd.cpp",
94 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070095 local_include_dirs: ["include"],
96
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080097 cflags: [
98 "-DHEALTH_INSTANCE_NAME=\"backup\"",
99 "-Wall",
100 "-Werror",
101 ],
Yifan Hong12df1b92017-09-25 17:25:00 -0700102
103 static_libs: [
104 "android.hardware.health@2.0-impl",
105 "android.hardware.health@1.0-convert",
106 "libbatterymonitor",
107 ],
108
109 shared_libs: [
110 "libbase",
111 "libcutils",
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "liblog",
116 "libutils",
Yifan Hong31cc64a2017-11-06 16:48:36 -0800117 "android.hardware.health@1.0",
Yifan Hong12df1b92017-09-25 17:25:00 -0700118 "android.hardware.health@2.0",
119 ],
120
121}