blob: 4f89bfb6282ae6b2ab46945179499622ba0faa6a [file] [log] [blame]
Steven Moreland1b13eea2017-07-10 16:05:51 -07001cc_library_headers {
2 name: "libhealthd_headers",
3 vendor_available: true,
Yifan Hong90fdc722018-07-10 13:02:18 -07004 recovery_available: true,
Steven Moreland1b13eea2017-07-10 16:05:51 -07005 export_include_dirs: ["include"],
6 header_libs: ["libbatteryservice_headers"],
7 export_header_lib_headers: ["libbatteryservice_headers"],
8}
Yifan Hongffff9aa2017-06-01 14:34:29 -07009
10cc_library_static {
11 name: "libbatterymonitor",
12 srcs: ["BatteryMonitor.cpp"],
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080013 cflags: ["-Wall", "-Werror"],
Yifan Hongffff9aa2017-06-01 14:34:29 -070014 vendor_available: true,
Yifan Hong90fdc722018-07-10 13:02:18 -070015 recovery_available: true,
Yifan Hongffff9aa2017-06-01 14:34:29 -070016 export_include_dirs: ["include"],
17 shared_libs: [
18 "libutils",
19 "libbase",
20 ],
21 header_libs: ["libhealthd_headers"],
22 export_header_lib_headers: ["libhealthd_headers"],
23}
Yifan Hong2763df82017-09-19 17:57:50 -070024
Yifan Hong1cf853f2018-04-04 14:08:57 -070025cc_defaults {
26 name: "android.hardware.health@2.0-service_defaults",
Yifan Hong2763df82017-09-19 17:57:50 -070027
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080028 cflags: [
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080029 "-Wall",
30 "-Werror",
31 ],
Yifan Hong2763df82017-09-19 17:57:50 -070032
33 static_libs: [
34 "android.hardware.health@2.0-impl",
35 "android.hardware.health@1.0-convert",
Yifan Hongaffa24f2018-01-19 15:53:25 -080036 "libhealthservice",
Hridya Valsaraju89178e72018-01-10 16:14:28 -080037 "libhealthstoragedefault",
Yifan Hong2763df82017-09-19 17:57:50 -070038 "libbatterymonitor",
39 ],
40
41 shared_libs: [
42 "libbase",
43 "libcutils",
44 "libhidlbase",
Yifan Hong2763df82017-09-19 17:57:50 -070045 "liblog",
46 "libutils",
47 "android.hardware.health@2.0",
48 ],
49}
Yifan Hong12df1b92017-09-25 17:25:00 -070050
51cc_binary {
Yifan Hong1cf853f2018-04-04 14:08:57 -070052 name: "android.hardware.health@2.0-service",
53 defaults: ["android.hardware.health@2.0-service_defaults"],
Yifan Hong31150c12018-05-01 14:59:43 -070054
Yifan Hongef26fe42018-07-10 13:07:08 -070055 vendor: true,
56 relative_install_path: "hw",
57 init_rc: ["android.hardware.health@2.0-service.rc"],
58 srcs: [
59 "HealthServiceDefault.cpp",
60 ],
61
Yifan Hong31150c12018-05-01 14:59:43 -070062 overrides: [
63 "healthd",
64 ]
Yifan Hong1cf853f2018-04-04 14:08:57 -070065}
66
67cc_binary {
Yifan Hong12df1b92017-09-25 17:25:00 -070068 name: "healthd",
Yifan Hongef26fe42018-07-10 13:07:08 -070069 defaults: ["android.hardware.health@2.0-service_defaults"],
70
Yifan Hongfd1aa702018-04-04 14:08:04 -070071 init_rc: ["healthd.rc"],
Yifan Hongcded9002017-11-06 16:47:54 -080072 srcs: [
Yifan Hongcded9002017-11-06 16:47:54 -080073 "HealthServiceHealthd.cpp",
74 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070075 local_include_dirs: ["include"],
76
Yifan Hong12df1b92017-09-25 17:25:00 -070077 shared_libs: [
Yifan Hong31cc64a2017-11-06 16:48:36 -080078 "android.hardware.health@1.0",
Yifan Hong12df1b92017-09-25 17:25:00 -070079 ],
80
Yifan Hong3a39eec2018-04-27 15:03:32 -070081 vintf_fragments: [
82 "manifest_healthd.xml"
83 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070084}
Tao Bao5747e222018-09-11 10:46:35 -070085
86cc_library_static {
87 name: "libhealthd_charger_nops",
88
89 srcs: [
90 "healthd_mode_charger_nops.cpp",
91 ],
92
93 cflags: [
94 "-Wall",
95 "-Werror",
96 ],
97
98 header_libs: [
99 "libhealthd_headers",
100 ],
101
102 static_libs: [
103 "android.hardware.health@2.0-impl",
104 ],
105
106 shared_libs: [
107 "android.hardware.health@2.0",
108 "libutils",
109 ],
110}
Yifan Hong97eecdc2019-07-03 11:07:37 -0700111
112sysprop_library {
113 name: "charger_sysprop",
114 srcs: ["charger.sysprop"],
115 property_owner: "Platform",
116 api_packages: ["android.sysprop"],
117}
Yifan Hongdbaa4772019-07-03 11:40:08 -0700118
119cc_library_static {
120 name: "libhealthd_draw",
121 export_include_dirs: ["."],
122 static_libs: [
123 "libcharger_sysprop",
124 "libminui",
125 ],
126 shared_libs: [
127 "libbase",
128 ],
129 header_libs: ["libbatteryservice_headers"],
130
131 srcs: ["healthd_draw.cpp"],
132}
133
134cc_library_static {
135 name: "libhealthd_charger",
136 local_include_dirs: ["include"],
137 export_include_dirs: [".", "include"],
138
139 static_libs: [
140 "android.hardware.health@2.0-impl",
141 "android.hardware.health@1.0-convert",
142 "libcharger_sysprop",
143 "libhealthstoragedefault",
144 "libhealthd_draw",
145 "libminui",
146 ],
147
148 shared_libs: [
149 "android.hardware.health@2.0",
150 "libbase",
151 "libcutils",
152 "liblog",
153 "libpng",
154 "libsuspend",
155 "libutils",
156 ],
157
158 srcs: [
159 "healthd_mode_charger.cpp",
160 "AnimationParser.cpp",
161 ],
162}