blob: 3a11e644e18bb3370f15e046fe64dc7f31414a41 [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: {
Yifan Hongb47f6762021-10-26 10:55:19 -070029 separate_platform_variant: false,
Yifan Hong52ecb3f2021-01-11 17:04:33 -080030 vndk: {
31 enabled: true,
32 },
33 },
34 },
35}
36
37cc_library {
38 name: "android.hardware.health-translate-ndk",
39 vendor_available: true,
40 srcs: ["android/hardware/health/translate-ndk.cpp"],
41 shared_libs: [
42 "libbinder_ndk",
43 "libhidlbase",
44 "android.hardware.health-V1-ndk",
45 "android.hardware.health@2.0",
46 "android.hardware.health@2.1",
47 ],
48 export_include_dirs: ["include"],
49 export_shared_lib_headers: [
50 "android.hardware.health@2.0",
51 "android.hardware.health@2.1",
52 ],
53}
54
55java_library {
56 name: "android.hardware.health-translate-java",
57 srcs: ["android/hardware/health/Translate.java"],
58 libs: [
59 "android.hardware.health-V1-java",
60 "android.hardware.health-V2.0-java",
61 "android.hardware.health-V2.1-java",
62 ],
63}