blob: 14374a29eeb66d8805e3b8c421ada0598842f85d [file] [log] [blame]
Yifan Honge4382112019-10-02 19:09:37 -07001// 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.
17cc_library_static {
18 name: "libhealth2impl",
19 vendor_available: true,
20 recovery_available: true,
21 srcs: [
22 "BinderHealth.cpp",
23 "HalHealthLoop.cpp",
24 "Health.cpp",
25 ],
26 shared_libs: [
27 "libbase",
28 "libcutils",
29 "libhidlbase",
30 "liblog",
31 "libutils",
32 "android.hardware.health@2.1",
33 "android.hardware.health@2.0",
34 ],
35 static_libs: [
36 "libbatterymonitor",
37 "libhealthloop",
38 "android.hardware.health@1.0-convert",
39 ],
40 cflags: [
41 "-Wall",
42 "-Werror",
43 ],
44 export_static_lib_headers: [
45 "libbatterymonitor",
46 "libhealthloop",
47 ],
48 export_include_dirs: [
49 "include",
50 ],
51}