1cc_library_headers { 2 name: "libhealthd_headers", 3 vendor_available: true, 4 recovery_available: true, 5 export_include_dirs: ["include"], 6 header_libs: ["libbatteryservice_headers"], 7 export_header_lib_headers: ["libbatteryservice_headers"], 8} 9 10cc_library_static { 11 name: "libbatterymonitor", 12 srcs: ["BatteryMonitor.cpp"], 13 cflags: ["-Wall", "-Werror"], 14 vendor_available: true, 15 recovery_available: true, 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} 24 25cc_defaults { 26 name: "android.hardware.health@2.0-service_defaults", 27 28 cflags: [ 29 "-Wall", 30 "-Werror", 31 ], 32 33 static_libs: [ 34 "android.hardware.health@2.0-impl", 35 "android.hardware.health@1.0-convert", 36 "libhealthservice", 37 "libhealthstoragedefault", 38 "libbatterymonitor", 39 ], 40 41 shared_libs: [ 42 "libbase", 43 "libcutils", 44 "libhidlbase", 45 "liblog", 46 "libutils", 47 "android.hardware.health@2.0", 48 ], 49} 50 51cc_binary { 52 name: "android.hardware.health@2.0-service", 53 defaults: ["android.hardware.health@2.0-service_defaults"], 54 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 62 overrides: [ 63 "healthd", 64 ] 65} 66 67cc_binary { 68 name: "healthd", 69 defaults: ["android.hardware.health@2.0-service_defaults"], 70 71 init_rc: ["healthd.rc"], 72 srcs: [ 73 "HealthServiceHealthd.cpp", 74 ], 75 local_include_dirs: ["include"], 76 77 shared_libs: [ 78 "android.hardware.health@1.0", 79 ], 80 81 vintf_fragments: [ 82 "manifest_healthd.xml" 83 ], 84} 85 86cc_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} 111 112sysprop_library { 113 name: "charger_sysprop", 114 srcs: ["charger.sysprop"], 115 property_owner: "Platform", 116 api_packages: ["android.sysprop"], 117} 118 119cc_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 134cc_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} 163