blob: 940e4d86ade653658ca4c10857594c82b18c4749 [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,
18 srcs: ["android/hardware/health/*.aidl"],
19 stability: "vintf",
20 backend: {
21 cpp: {
22 enabled: false,
23 },
24 java: {
25 enabled: true,
26 sdk_version: "module_current",
27 },
28 ndk: {
29 vndk: {
30 enabled: true,
31 },
32 },
33 },
34}
35
36cc_library {
37 name: "android.hardware.health-translate-ndk",
38 vendor_available: true,
39 srcs: ["android/hardware/health/translate-ndk.cpp"],
40 shared_libs: [
41 "libbinder_ndk",
42 "libhidlbase",
43 "android.hardware.health-V1-ndk",
44 "android.hardware.health@2.0",
45 "android.hardware.health@2.1",
46 ],
47 export_include_dirs: ["include"],
48 export_shared_lib_headers: [
49 "android.hardware.health@2.0",
50 "android.hardware.health@2.1",
51 ],
52}
53
54java_library {
55 name: "android.hardware.health-translate-java",
56 srcs: ["android/hardware/health/Translate.java"],
57 libs: [
58 "android.hardware.health-V1-java",
59 "android.hardware.health-V2.0-java",
60 "android.hardware.health-V2.1-java",
61 ],
62}