Steven Moreland | 1b13eea | 2017-07-10 16:05:51 -0700 | [diff] [blame] | 1 | cc_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 Hong | ffff9aa | 2017-06-01 14:34:29 -0700 | [diff] [blame] | 8 | |
| 9 | cc_library_static { |
| 10 | name: "libbatterymonitor", |
| 11 | srcs: ["BatteryMonitor.cpp"], |
Chih-Hung Hsieh | 9635266 | 2017-11-29 14:24:50 -0800 | [diff] [blame] | 12 | cflags: ["-Wall", "-Werror"], |
Yifan Hong | ffff9aa | 2017-06-01 14:34:29 -0700 | [diff] [blame] | 13 | 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 Hong | 2763df8 | 2017-09-19 17:57:50 -0700 | [diff] [blame] | 22 | |
Yifan Hong | 2763df8 | 2017-09-19 17:57:50 -0700 | [diff] [blame] | 23 | cc_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 Hong | cded900 | 2017-11-06 16:47:54 -0800 | [diff] [blame] | 28 | srcs: [ |
| 29 | "HealthServiceCommon.cpp", |
| 30 | "HealthServiceDefault.cpp", |
| 31 | ], |
Yifan Hong | 2763df8 | 2017-09-19 17:57:50 -0700 | [diff] [blame] | 32 | |
Chih-Hung Hsieh | 9635266 | 2017-11-29 14:24:50 -0800 | [diff] [blame] | 33 | cflags: [ |
| 34 | "-DHEALTH_INSTANCE_NAME=\"default\"", |
| 35 | "-Wall", |
| 36 | "-Werror", |
| 37 | ], |
Yifan Hong | 2763df8 | 2017-09-19 17:57:50 -0700 | [diff] [blame] | 38 | |
| 39 | static_libs: [ |
| 40 | "android.hardware.health@2.0-impl", |
| 41 | "android.hardware.health@1.0-convert", |
Hridya Valsaraju | 89178e7 | 2018-01-10 16:14:28 -0800 | [diff] [blame] | 42 | "libhealthstoragedefault", |
Yifan Hong | 2763df8 | 2017-09-19 17:57:50 -0700 | [diff] [blame] | 43 | "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 Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 57 | |
| 58 | cc_binary { |
| 59 | name: "healthd", |
Yifan Hong | cded900 | 2017-11-06 16:47:54 -0800 | [diff] [blame] | 60 | srcs: [ |
| 61 | "HealthServiceCommon.cpp", |
| 62 | "HealthServiceHealthd.cpp", |
| 63 | ], |
Yifan Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 64 | local_include_dirs: ["include"], |
| 65 | |
Chih-Hung Hsieh | 9635266 | 2017-11-29 14:24:50 -0800 | [diff] [blame] | 66 | cflags: [ |
| 67 | "-DHEALTH_INSTANCE_NAME=\"backup\"", |
| 68 | "-Wall", |
| 69 | "-Werror", |
| 70 | ], |
Yifan Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 71 | |
| 72 | static_libs: [ |
| 73 | "android.hardware.health@2.0-impl", |
| 74 | "android.hardware.health@1.0-convert", |
| 75 | "libbatterymonitor", |
Hridya Valsaraju | 89178e7 | 2018-01-10 16:14:28 -0800 | [diff] [blame] | 76 | "libhealthstoragedefault", |
Yifan Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 77 | ], |
| 78 | |
| 79 | shared_libs: [ |
| 80 | "libbase", |
| 81 | "libcutils", |
| 82 | "libhidlbase", |
| 83 | "libhidltransport", |
| 84 | "libhwbinder", |
| 85 | "liblog", |
| 86 | "libutils", |
Yifan Hong | 31cc64a | 2017-11-06 16:48:36 -0800 | [diff] [blame] | 87 | "android.hardware.health@1.0", |
Yifan Hong | 12df1b9 | 2017-09-25 17:25:00 -0700 | [diff] [blame] | 88 | "android.hardware.health@2.0", |
| 89 | ], |
| 90 | |
| 91 | } |