blob: df12ff05edc80cb171b536a1c2476da9489858c0 [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: [
29 "HealthServiceCommon.cpp",
30 "HealthServiceDefault.cpp",
31 ],
Yifan Hong2763df82017-09-19 17:57:50 -070032
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080033 cflags: [
34 "-DHEALTH_INSTANCE_NAME=\"default\"",
35 "-Wall",
36 "-Werror",
37 ],
Yifan Hong2763df82017-09-19 17:57:50 -070038
39 static_libs: [
40 "android.hardware.health@2.0-impl",
41 "android.hardware.health@1.0-convert",
Hridya Valsaraju89178e72018-01-10 16:14:28 -080042 "libhealthstoragedefault",
Yifan Hong2763df82017-09-19 17:57:50 -070043 "libbatterymonitor",
44 ],
45
46 shared_libs: [
47 "libbase",
48 "libcutils",
49 "libhidlbase",
50 "libhidltransport",
51 "libhwbinder",
52 "liblog",
53 "libutils",
54 "android.hardware.health@2.0",
55 ],
56}
Yifan Hong12df1b92017-09-25 17:25:00 -070057
58cc_binary {
59 name: "healthd",
Yifan Hongcded9002017-11-06 16:47:54 -080060 srcs: [
61 "HealthServiceCommon.cpp",
62 "HealthServiceHealthd.cpp",
63 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070064 local_include_dirs: ["include"],
65
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080066 cflags: [
67 "-DHEALTH_INSTANCE_NAME=\"backup\"",
68 "-Wall",
69 "-Werror",
70 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070071
72 static_libs: [
73 "android.hardware.health@2.0-impl",
74 "android.hardware.health@1.0-convert",
75 "libbatterymonitor",
Hridya Valsaraju89178e72018-01-10 16:14:28 -080076 "libhealthstoragedefault",
Yifan Hong12df1b92017-09-25 17:25:00 -070077 ],
78
79 shared_libs: [
80 "libbase",
81 "libcutils",
82 "libhidlbase",
83 "libhidltransport",
84 "libhwbinder",
85 "liblog",
86 "libutils",
Yifan Hong31cc64a2017-11-06 16:48:36 -080087 "android.hardware.health@1.0",
Yifan Hong12df1b92017-09-25 17:25:00 -070088 "android.hardware.health@2.0",
89 ],
90
91}