blob: fae7592860aaf070a7fe0e0fde8471057cfc5512 [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
Bob Badoura88d5b12021-10-28 17:18:27 -070015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "hardware_interfaces_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["hardware_interfaces_license"],
22}
23
Yifan Hong52ecb3f2021-01-11 17:04:33 -080024aidl_interface {
25 name: "android.hardware.health",
26 vendor_available: true,
Yifan Honge32a8ea2021-10-20 21:54:20 -070027 recovery_available: true,
Yifan Hong52ecb3f2021-01-11 17:04:33 -080028 srcs: ["android/hardware/health/*.aidl"],
29 stability: "vintf",
30 backend: {
31 cpp: {
32 enabled: false,
33 },
34 java: {
35 enabled: true,
36 sdk_version: "module_current",
37 },
38 ndk: {
Yifan Hongb47f6762021-10-26 10:55:19 -070039 separate_platform_variant: false,
Yifan Hong52ecb3f2021-01-11 17:04:33 -080040 vndk: {
41 enabled: true,
42 },
43 },
44 },
45}
46
47cc_library {
48 name: "android.hardware.health-translate-ndk",
49 vendor_available: true,
Yifan Honge32a8ea2021-10-20 21:54:20 -070050 recovery_available: true,
Yifan Hong52ecb3f2021-01-11 17:04:33 -080051 srcs: ["android/hardware/health/translate-ndk.cpp"],
52 shared_libs: [
53 "libbinder_ndk",
54 "libhidlbase",
55 "android.hardware.health-V1-ndk",
56 "android.hardware.health@2.0",
57 "android.hardware.health@2.1",
58 ],
59 export_include_dirs: ["include"],
60 export_shared_lib_headers: [
61 "android.hardware.health@2.0",
62 "android.hardware.health@2.1",
63 ],
64}
65
66java_library {
67 name: "android.hardware.health-translate-java",
68 srcs: ["android/hardware/health/Translate.java"],
69 libs: [
70 "android.hardware.health-V1-java",
71 "android.hardware.health-V2.0-java",
72 "android.hardware.health-V2.1-java",
73 ],
74}