1// Copyright (C) 2019 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// A helper library for health@2.x HAL implementation. 16// HAL implementations can link to this library and extend the Health class. 17package { 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "hardware_interfaces_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["hardware_interfaces_license"], 24} 25 26cc_library_static { 27 name: "libhealth2impl", 28 vendor_available: true, 29 recovery_available: true, 30 srcs: [ 31 "BinderHealth.cpp", 32 "HalHealthLoop.cpp", 33 "Health.cpp", 34 ], 35 shared_libs: [ 36 "libbase", 37 "libcutils", 38 "libhidlbase", 39 "liblog", 40 "libutils", 41 "android.hardware.health@2.1", 42 "android.hardware.health@2.0", 43 ], 44 static_libs: [ 45 "libbatterymonitor", 46 "libhealthloop", 47 "android.hardware.health@1.0-convert", 48 ], 49 cflags: [ 50 "-Wall", 51 "-Werror", 52 ], 53 export_static_lib_headers: [ 54 "libbatterymonitor", 55 "libhealthloop", 56 ], 57 export_include_dirs: [ 58 "include", 59 ], 60} 61