blob: cefe09d5e81b9c4b2f06bc0e61b82ba22c04a9e0 [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
Yifan Hong1cf853f2018-04-04 14:08:57 -070023cc_defaults {
24 name: "android.hardware.health@2.0-service_defaults",
Yifan Hong2763df82017-09-19 17:57:50 -070025 init_rc: ["android.hardware.health@2.0-service.rc"],
26 vendor: true,
27 relative_install_path: "hw",
Yifan Hongcded9002017-11-06 16:47:54 -080028 srcs: [
Yifan Hongcded9002017-11-06 16:47:54 -080029 "HealthServiceDefault.cpp",
30 ],
Yifan Hong2763df82017-09-19 17:57:50 -070031
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080032 cflags: [
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080033 "-Wall",
34 "-Werror",
35 ],
Yifan Hong2763df82017-09-19 17:57:50 -070036
37 static_libs: [
38 "android.hardware.health@2.0-impl",
39 "android.hardware.health@1.0-convert",
Yifan Hongaffa24f2018-01-19 15:53:25 -080040 "libhealthservice",
Hridya Valsaraju89178e72018-01-10 16:14:28 -080041 "libhealthstoragedefault",
Yifan Hong2763df82017-09-19 17:57:50 -070042 "libbatterymonitor",
43 ],
44
45 shared_libs: [
46 "libbase",
47 "libcutils",
48 "libhidlbase",
49 "libhidltransport",
50 "libhwbinder",
51 "liblog",
52 "libutils",
53 "android.hardware.health@2.0",
54 ],
55}
Yifan Hong12df1b92017-09-25 17:25:00 -070056
57cc_binary {
Yifan Hong1cf853f2018-04-04 14:08:57 -070058 name: "android.hardware.health@2.0-service",
59 defaults: ["android.hardware.health@2.0-service_defaults"],
60}
61
62cc_binary {
63 name: "android.hardware.health@2.0-service.override",
64 defaults: ["android.hardware.health@2.0-service_defaults"],
65
66 overrides: [
67 "healthd",
68 ],
69}
70
71cc_binary {
Yifan Hong12df1b92017-09-25 17:25:00 -070072 name: "healthd",
Yifan Hongfd1aa702018-04-04 14:08:04 -070073 init_rc: ["healthd.rc"],
Yifan Hongcded9002017-11-06 16:47:54 -080074 srcs: [
Yifan Hongcded9002017-11-06 16:47:54 -080075 "HealthServiceHealthd.cpp",
76 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070077 local_include_dirs: ["include"],
78
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080079 cflags: [
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080080 "-Wall",
81 "-Werror",
82 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070083
84 static_libs: [
85 "android.hardware.health@2.0-impl",
86 "android.hardware.health@1.0-convert",
Yifan Hongaffa24f2018-01-19 15:53:25 -080087 "libhealthservice",
Yifan Hong12df1b92017-09-25 17:25:00 -070088 "libbatterymonitor",
Hridya Valsaraju89178e72018-01-10 16:14:28 -080089 "libhealthstoragedefault",
Yifan Hong12df1b92017-09-25 17:25:00 -070090 ],
91
92 shared_libs: [
93 "libbase",
94 "libcutils",
95 "libhidlbase",
96 "libhidltransport",
97 "libhwbinder",
98 "liblog",
99 "libutils",
Yifan Hong31cc64a2017-11-06 16:48:36 -0800100 "android.hardware.health@1.0",
Yifan Hong12df1b92017-09-25 17:25:00 -0700101 "android.hardware.health@2.0",
102 ],
103
104}