blob: a28544e6c1b0cfcb657065fc8278688abd4c827e [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 Hong2763df82017-09-19 17:57:50 -070023cc_binary {
24 name: "android.hardware.health@2.0-service",
25 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 {
58 name: "healthd",
Yifan Hongfd1aa702018-04-04 14:08:04 -070059 init_rc: ["healthd.rc"],
Yifan Hongcded9002017-11-06 16:47:54 -080060 srcs: [
Yifan Hongcded9002017-11-06 16:47:54 -080061 "HealthServiceHealthd.cpp",
62 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070063 local_include_dirs: ["include"],
64
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080065 cflags: [
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080066 "-Wall",
67 "-Werror",
68 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070069
70 static_libs: [
71 "android.hardware.health@2.0-impl",
72 "android.hardware.health@1.0-convert",
Yifan Hongaffa24f2018-01-19 15:53:25 -080073 "libhealthservice",
Yifan Hong12df1b92017-09-25 17:25:00 -070074 "libbatterymonitor",
Hridya Valsaraju89178e72018-01-10 16:14:28 -080075 "libhealthstoragedefault",
Yifan Hong12df1b92017-09-25 17:25:00 -070076 ],
77
78 shared_libs: [
79 "libbase",
80 "libcutils",
81 "libhidlbase",
82 "libhidltransport",
83 "libhwbinder",
84 "liblog",
85 "libutils",
Yifan Hong31cc64a2017-11-06 16:48:36 -080086 "android.hardware.health@1.0",
Yifan Hong12df1b92017-09-25 17:25:00 -070087 "android.hardware.health@2.0",
88 ],
89
90}