blob: 4acf38a5b5a68543e3d5f2be657f215f9257dc63 [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 Hong7a6956e2021-11-08 23:52:44 -080028 host_supported: true,
Yifan Hong52ecb3f2021-01-11 17:04:33 -080029 srcs: ["android/hardware/health/*.aidl"],
30 stability: "vintf",
31 backend: {
32 cpp: {
33 enabled: false,
34 },
35 java: {
36 enabled: true,
37 sdk_version: "module_current",
38 },
Yifan Hong52ecb3f2021-01-11 17:04:33 -080039 },
40}
41
42cc_library {
43 name: "android.hardware.health-translate-ndk",
44 vendor_available: true,
Yifan Honge32a8ea2021-10-20 21:54:20 -070045 recovery_available: true,
Yifan Hong7a6956e2021-11-08 23:52:44 -080046 host_supported: true,
Yifan Hong52ecb3f2021-01-11 17:04:33 -080047 srcs: ["android/hardware/health/translate-ndk.cpp"],
48 shared_libs: [
49 "libbinder_ndk",
50 "libhidlbase",
51 "android.hardware.health-V1-ndk",
52 "android.hardware.health@2.0",
53 "android.hardware.health@2.1",
54 ],
55 export_include_dirs: ["include"],
56 export_shared_lib_headers: [
57 "android.hardware.health@2.0",
58 "android.hardware.health@2.1",
59 ],
Steven Moreland738d3d52022-01-07 22:15:32 +000060 target: {
61 darwin: {
62 enabled: false,
63 },
64 },
Yifan Hong52ecb3f2021-01-11 17:04:33 -080065}
66
67java_library {
68 name: "android.hardware.health-translate-java",
69 srcs: ["android/hardware/health/Translate.java"],
70 libs: [
71 "android.hardware.health-V1-java",
72 "android.hardware.health-V2.0-java",
73 "android.hardware.health-V2.1-java",
74 ],
75}