| Steven Moreland | 1b13eea | 2017-07-10 16:05:51 -0700 | [diff] [blame] | 1 | cc_library_headers { | 
|  | 2 | name: "libhealthd_headers", | 
|  | 3 | vendor_available: true, | 
| Yifan Hong | 90fdc72 | 2018-07-10 13:02:18 -0700 | [diff] [blame] | 4 | recovery_available: true, | 
| Steven Moreland | 1b13eea | 2017-07-10 16:05:51 -0700 | [diff] [blame] | 5 | export_include_dirs: ["include"], | 
|  | 6 | header_libs: ["libbatteryservice_headers"], | 
|  | 7 | export_header_lib_headers: ["libbatteryservice_headers"], | 
|  | 8 | } | 
| Yifan Hong | ffff9aa | 2017-06-01 14:34:29 -0700 | [diff] [blame] | 9 |  | 
|  | 10 | cc_library_static { | 
|  | 11 | name: "libbatterymonitor", | 
|  | 12 | srcs: ["BatteryMonitor.cpp"], | 
| Chih-Hung Hsieh | 9635266 | 2017-11-29 14:24:50 -0800 | [diff] [blame] | 13 | cflags: ["-Wall", "-Werror"], | 
| Yifan Hong | ffff9aa | 2017-06-01 14:34:29 -0700 | [diff] [blame] | 14 | vendor_available: true, | 
| Yifan Hong | 90fdc72 | 2018-07-10 13:02:18 -0700 | [diff] [blame] | 15 | recovery_available: true, | 
| Yifan Hong | ffff9aa | 2017-06-01 14:34:29 -0700 | [diff] [blame] | 16 | 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 Hong | 2763df8 | 2017-09-19 17:57:50 -0700 | [diff] [blame] | 24 |  | 
| Yifan Hong | 1cf853f | 2018-04-04 14:08:57 -0700 | [diff] [blame] | 25 | cc_defaults { | 
|  | 26 | name: "android.hardware.health@2.0-service_defaults", | 
| Yifan Hong | 2763df8 | 2017-09-19 17:57:50 -0700 | [diff] [blame] | 27 |  | 
| Chih-Hung Hsieh | 9635266 | 2017-11-29 14:24:50 -0800 | [diff] [blame] | 28 | cflags: [ | 
| Chih-Hung Hsieh | 9635266 | 2017-11-29 14:24:50 -0800 | [diff] [blame] | 29 | "-Wall", | 
|  | 30 | "-Werror", | 
|  | 31 | ], | 
| Yifan Hong | 2763df8 | 2017-09-19 17:57:50 -0700 | [diff] [blame] | 32 |  | 
|  | 33 | static_libs: [ | 
|  | 34 | "android.hardware.health@2.0-impl", | 
|  | 35 | "android.hardware.health@1.0-convert", | 
| Yifan Hong | affa24f | 2018-01-19 15:53:25 -0800 | [diff] [blame] | 36 | "libhealthservice", | 
| Hridya Valsaraju | 89178e7 | 2018-01-10 16:14:28 -0800 | [diff] [blame] | 37 | "libhealthstoragedefault", | 
| Yifan Hong | 2763df8 | 2017-09-19 17:57:50 -0700 | [diff] [blame] | 38 | "libbatterymonitor", | 
|  | 39 | ], | 
|  | 40 |  | 
|  | 41 | shared_libs: [ | 
|  | 42 | "libbase", | 
|  | 43 | "libcutils", | 
|  | 44 | "libhidlbase", | 
| Yifan Hong | 2763df8 | 2017-09-19 17:57:50 -0700 | [diff] [blame] | 45 | "liblog", | 
|  | 46 | "libutils", | 
|  | 47 | "android.hardware.health@2.0", | 
|  | 48 | ], | 
|  | 49 | } | 
| Yifan Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 50 |  | 
|  | 51 | cc_binary { | 
| Yifan Hong | 1cf853f | 2018-04-04 14:08:57 -0700 | [diff] [blame] | 52 | name: "android.hardware.health@2.0-service", | 
|  | 53 | defaults: ["android.hardware.health@2.0-service_defaults"], | 
| Yifan Hong | 31150c1 | 2018-05-01 14:59:43 -0700 | [diff] [blame] | 54 |  | 
| Yifan Hong | ef26fe4 | 2018-07-10 13:07:08 -0700 | [diff] [blame] | 55 | vendor: true, | 
|  | 56 | relative_install_path: "hw", | 
|  | 57 | init_rc: ["android.hardware.health@2.0-service.rc"], | 
|  | 58 | srcs: [ | 
|  | 59 | "HealthServiceDefault.cpp", | 
|  | 60 | ], | 
|  | 61 |  | 
| Yifan Hong | 31150c1 | 2018-05-01 14:59:43 -0700 | [diff] [blame] | 62 | overrides: [ | 
|  | 63 | "healthd", | 
|  | 64 | ] | 
| Yifan Hong | 1cf853f | 2018-04-04 14:08:57 -0700 | [diff] [blame] | 65 | } | 
|  | 66 |  | 
|  | 67 | cc_binary { | 
| Yifan Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 68 | name: "healthd", | 
| Yifan Hong | ef26fe4 | 2018-07-10 13:07:08 -0700 | [diff] [blame] | 69 | defaults: ["android.hardware.health@2.0-service_defaults"], | 
|  | 70 |  | 
| Yifan Hong | fd1aa70 | 2018-04-04 14:08:04 -0700 | [diff] [blame] | 71 | init_rc: ["healthd.rc"], | 
| Yifan Hong | cded900 | 2017-11-06 16:47:54 -0800 | [diff] [blame] | 72 | srcs: [ | 
| Yifan Hong | cded900 | 2017-11-06 16:47:54 -0800 | [diff] [blame] | 73 | "HealthServiceHealthd.cpp", | 
|  | 74 | ], | 
| Yifan Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 75 | local_include_dirs: ["include"], | 
|  | 76 |  | 
| Yifan Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 77 | shared_libs: [ | 
| Yifan Hong | 31cc64a | 2017-11-06 16:48:36 -0800 | [diff] [blame] | 78 | "android.hardware.health@1.0", | 
| Yifan Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 79 | ], | 
|  | 80 |  | 
| Yifan Hong | 3a39eec | 2018-04-27 15:03:32 -0700 | [diff] [blame] | 81 | vintf_fragments: [ | 
|  | 82 | "manifest_healthd.xml" | 
|  | 83 | ], | 
| Yifan Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 84 | } | 
| Tao Bao | 5747e22 | 2018-09-11 10:46:35 -0700 | [diff] [blame] | 85 |  | 
|  | 86 | cc_library_static { | 
|  | 87 | name: "libhealthd_charger_nops", | 
|  | 88 |  | 
|  | 89 | srcs: [ | 
|  | 90 | "healthd_mode_charger_nops.cpp", | 
|  | 91 | ], | 
|  | 92 |  | 
|  | 93 | cflags: [ | 
|  | 94 | "-Wall", | 
|  | 95 | "-Werror", | 
|  | 96 | ], | 
|  | 97 |  | 
|  | 98 | header_libs: [ | 
|  | 99 | "libhealthd_headers", | 
|  | 100 | ], | 
|  | 101 |  | 
|  | 102 | static_libs: [ | 
|  | 103 | "android.hardware.health@2.0-impl", | 
|  | 104 | ], | 
|  | 105 |  | 
|  | 106 | shared_libs: [ | 
|  | 107 | "android.hardware.health@2.0", | 
|  | 108 | "libutils", | 
|  | 109 | ], | 
|  | 110 | } | 
| Yifan Hong | 97eecdc | 2019-07-03 11:07:37 -0700 | [diff] [blame] | 111 |  | 
|  | 112 | sysprop_library { | 
|  | 113 | name: "charger_sysprop", | 
|  | 114 | srcs: ["charger.sysprop"], | 
|  | 115 | property_owner: "Platform", | 
|  | 116 | api_packages: ["android.sysprop"], | 
|  | 117 | } | 
| Yifan Hong | dbaa477 | 2019-07-03 11:40:08 -0700 | [diff] [blame] | 118 |  | 
|  | 119 | cc_library_static { | 
|  | 120 | name: "libhealthd_draw", | 
|  | 121 | export_include_dirs: ["."], | 
|  | 122 | static_libs: [ | 
|  | 123 | "libcharger_sysprop", | 
|  | 124 | "libminui", | 
|  | 125 | ], | 
|  | 126 | shared_libs: [ | 
|  | 127 | "libbase", | 
|  | 128 | ], | 
|  | 129 | header_libs: ["libbatteryservice_headers"], | 
|  | 130 |  | 
|  | 131 | srcs: ["healthd_draw.cpp"], | 
|  | 132 | } | 
|  | 133 |  | 
|  | 134 | cc_library_static { | 
|  | 135 | name: "libhealthd_charger", | 
|  | 136 | local_include_dirs: ["include"], | 
|  | 137 | export_include_dirs: [".", "include"], | 
|  | 138 |  | 
|  | 139 | static_libs: [ | 
|  | 140 | "android.hardware.health@2.0-impl", | 
|  | 141 | "android.hardware.health@1.0-convert", | 
|  | 142 | "libcharger_sysprop", | 
|  | 143 | "libhealthstoragedefault", | 
|  | 144 | "libhealthd_draw", | 
|  | 145 | "libminui", | 
|  | 146 | ], | 
|  | 147 |  | 
|  | 148 | shared_libs: [ | 
|  | 149 | "android.hardware.health@2.0", | 
|  | 150 | "libbase", | 
|  | 151 | "libcutils", | 
|  | 152 | "liblog", | 
|  | 153 | "libpng", | 
|  | 154 | "libsuspend", | 
|  | 155 | "libutils", | 
|  | 156 | ], | 
|  | 157 |  | 
|  | 158 | srcs: [ | 
|  | 159 | "healthd_mode_charger.cpp", | 
|  | 160 | "AnimationParser.cpp", | 
|  | 161 | ], | 
|  | 162 | } |