blob: eb8dbe6ce1c5e6f83bd40579f5a9bd884ef1be36 [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 init_rc: ["android.hardware.health@2.0-service.rc"],
28 vendor: true,
29 relative_install_path: "hw",
Yifan Hongcded9002017-11-06 16:47:54 -080030 srcs: [
Yifan Hongcded9002017-11-06 16:47:54 -080031 "HealthServiceDefault.cpp",
32 ],
Yifan Hong2763df82017-09-19 17:57:50 -070033
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080034 cflags: [
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080035 "-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",
Yifan Hongaffa24f2018-01-19 15:53:25 -080042 "libhealthservice",
Hridya Valsaraju89178e72018-01-10 16:14:28 -080043 "libhealthstoragedefault",
Yifan Hong2763df82017-09-19 17:57:50 -070044 "libbatterymonitor",
45 ],
46
47 shared_libs: [
48 "libbase",
49 "libcutils",
50 "libhidlbase",
51 "libhidltransport",
52 "libhwbinder",
53 "liblog",
54 "libutils",
55 "android.hardware.health@2.0",
56 ],
57}
Yifan Hong12df1b92017-09-25 17:25:00 -070058
59cc_binary {
Yifan Hong1cf853f2018-04-04 14:08:57 -070060 name: "android.hardware.health@2.0-service",
61 defaults: ["android.hardware.health@2.0-service_defaults"],
Yifan Hong31150c12018-05-01 14:59:43 -070062
63 overrides: [
64 "healthd",
65 ]
Yifan Hong1cf853f2018-04-04 14:08:57 -070066}
67
68cc_binary {
Yifan Hong12df1b92017-09-25 17:25:00 -070069 name: "healthd",
Yifan Hongfd1aa702018-04-04 14:08:04 -070070 init_rc: ["healthd.rc"],
Yifan Hongcded9002017-11-06 16:47:54 -080071 srcs: [
Yifan Hongcded9002017-11-06 16:47:54 -080072 "HealthServiceHealthd.cpp",
73 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070074 local_include_dirs: ["include"],
75
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080076 cflags: [
Chih-Hung Hsieh96352662017-11-29 14:24:50 -080077 "-Wall",
78 "-Werror",
79 ],
Yifan Hong12df1b92017-09-25 17:25:00 -070080
81 static_libs: [
82 "android.hardware.health@2.0-impl",
83 "android.hardware.health@1.0-convert",
Yifan Hongaffa24f2018-01-19 15:53:25 -080084 "libhealthservice",
Yifan Hong12df1b92017-09-25 17:25:00 -070085 "libbatterymonitor",
Hridya Valsaraju89178e72018-01-10 16:14:28 -080086 "libhealthstoragedefault",
Yifan Hong12df1b92017-09-25 17:25:00 -070087 ],
88
89 shared_libs: [
90 "libbase",
91 "libcutils",
92 "libhidlbase",
93 "libhidltransport",
94 "libhwbinder",
95 "liblog",
96 "libutils",
Yifan Hong31cc64a2017-11-06 16:48:36 -080097 "android.hardware.health@1.0",
Yifan Hong12df1b92017-09-25 17:25:00 -070098 "android.hardware.health@2.0",
99 ],
100
Yifan Hong3a39eec2018-04-27 15:03:32 -0700101 vintf_fragments: [
102 "manifest_healthd.xml"
103 ],
Yifan Hong12df1b92017-09-25 17:25:00 -0700104}