blob: a469ffa0f1a64fa351ff85ec04f3b898a950b62c [file] [log] [blame]
Yifan Hong52ecb3f2021-01-11 17:04:33 -08001// Copyright (C) 2021 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
15aidl_interface {
16 name: "android.hardware.health",
17 vendor_available: true,
Yifan Honge32a8ea2021-10-20 21:54:20 -070018 recovery_available: true,
Yifan Hong52ecb3f2021-01-11 17:04:33 -080019 srcs: ["android/hardware/health/*.aidl"],
20 stability: "vintf",
21 backend: {
22 cpp: {
23 enabled: false,
24 },
25 java: {
26 enabled: true,
27 sdk_version: "module_current",
28 },
29 ndk: {
Yifan Hongb47f6762021-10-26 10:55:19 -070030 separate_platform_variant: false,
Yifan Hong52ecb3f2021-01-11 17:04:33 -080031 vndk: {
32 enabled: true,
33 },
34 },
35 },
36}
37
38cc_library {
39 name: "android.hardware.health-translate-ndk",
40 vendor_available: true,
Yifan Honge32a8ea2021-10-20 21:54:20 -070041 recovery_available: true,
Yifan Hong52ecb3f2021-01-11 17:04:33 -080042 srcs: ["android/hardware/health/translate-ndk.cpp"],
43 shared_libs: [
44 "libbinder_ndk",
45 "libhidlbase",
46 "android.hardware.health-V1-ndk",
47 "android.hardware.health@2.0",
48 "android.hardware.health@2.1",
49 ],
50 export_include_dirs: ["include"],
51 export_shared_lib_headers: [
52 "android.hardware.health@2.0",
53 "android.hardware.health@2.1",
54 ],
55}
56
57java_library {
58 name: "android.hardware.health-translate-java",
59 srcs: ["android/hardware/health/Translate.java"],
60 libs: [
61 "android.hardware.health-V1-java",
62 "android.hardware.health-V2.0-java",
63 "android.hardware.health-V2.1-java",
64 ],
65}