blob: 49d53503bc40c5f1573c8e199d61847be67243ac [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 {
Yifan Hong12df1b92017-09-25 17:25:00 -070063 name: "healthd",
Yifan Hongfd1aa702018-04-04 14:08:04 -070064 init_rc: ["healthd.rc"],
Yifan Hongcded9002017-11-06 16:47:54 -080065 srcs: [
Yifan Hongcded9002017-11-06 16:47:54 -080066 "HealthServiceHealthd.cpp",
67 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070068 local_include_dirs: ["include"],
69
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080070 cflags: [
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080071 "-Wall",
72 "-Werror",
73 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070074
75 static_libs: [
76 "android.hardware.health@2.0-impl",
77 "android.hardware.health@1.0-convert",
Yifan Hongaffa24f2018-01-19 15:53:25 -080078 "libhealthservice",
Yifan Hong12df1b92017-09-25 17:25:00 -070079 "libbatterymonitor",
Hridya Valsaraju89178e72018-01-10 16:14:28 -080080 "libhealthstoragedefault",
Yifan Hong12df1b92017-09-25 17:25:00 -070081 ],
82
83 shared_libs: [
84 "libbase",
85 "libcutils",
86 "libhidlbase",
87 "libhidltransport",
88 "libhwbinder",
89 "liblog",
90 "libutils",
Yifan Hong31cc64a2017-11-06 16:48:36 -080091 "android.hardware.health@1.0",
Yifan Hong12df1b92017-09-25 17:25:00 -070092 "android.hardware.health@2.0",
93 ],
94
Yifan Hong3a39eec2018-04-27 15:03:32 -070095 vintf_fragments: [
96 "manifest_healthd.xml"
97 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070098}