blob: 97de0e2698979e79a2c9ec0c10f0159843041f80 [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 },
Jiyong Park70f58372022-04-16 07:03:24 +090040 versions_with_info: [
41 {
42 version: "1",
43 imports: [],
44 },
Alex Buynytskyyec1198d2023-04-04 19:52:27 +000045 {
46 version: "2",
47 imports: [],
48 },
Devin Moorea8efdb12024-02-20 17:31:40 +000049 {
50 version: "3",
51 imports: [],
52 },
Alex Buynytskyyec1198d2023-04-04 19:52:27 +000053
Jiyong Park70f58372022-04-16 07:03:24 +090054 ],
Devin Moorea8efdb12024-02-20 17:31:40 +000055 frozen: true,
Jiyong Park70f58372022-04-16 07:03:24 +090056
Yifan Hong52ecb3f2021-01-11 17:04:33 -080057}
58
Jack Wu0edf57e2023-01-10 14:56:13 +080059cc_defaults {
60 name: "android.hardware.health-translate-ndk_defaults",
Yifan Hong52ecb3f2021-01-11 17:04:33 -080061 vendor_available: true,
Yifan Honge32a8ea2021-10-20 21:54:20 -070062 recovery_available: true,
Yifan Hong7a6956e2021-11-08 23:52:44 -080063 host_supported: true,
Yifan Hong52ecb3f2021-01-11 17:04:33 -080064 srcs: ["android/hardware/health/translate-ndk.cpp"],
65 shared_libs: [
66 "libbinder_ndk",
67 "libhidlbase",
Yifan Hong52ecb3f2021-01-11 17:04:33 -080068 "android.hardware.health@2.0",
69 "android.hardware.health@2.1",
70 ],
71 export_include_dirs: ["include"],
72 export_shared_lib_headers: [
73 "android.hardware.health@2.0",
74 "android.hardware.health@2.1",
75 ],
Steven Moreland738d3d52022-01-07 22:15:32 +000076 target: {
77 darwin: {
78 enabled: false,
79 },
80 },
Yifan Hong52ecb3f2021-01-11 17:04:33 -080081}
82
Jack Wu0edf57e2023-01-10 14:56:13 +080083cc_library {
84 name: "android.hardware.health-translate-ndk",
85 defaults: ["android.hardware.health-translate-ndk_defaults"],
86 shared_libs: [
David Anderson85b3b032023-12-05 21:34:32 -080087 "android.hardware.health-V3-ndk",
Jack Wu0edf57e2023-01-10 14:56:13 +080088 ],
89}
90
91// TODO(b/251425963): remove when android.hardware.health is upgraded to V2.
92cc_library {
93 name: "android.hardware.health-translate-V1-ndk",
94 defaults: ["android.hardware.health-translate-ndk_defaults"],
95 shared_libs: [
96 "android.hardware.health-V1-ndk",
97 ],
98}
99
Yifan Hong52ecb3f2021-01-11 17:04:33 -0800100java_library {
101 name: "android.hardware.health-translate-java",
102 srcs: ["android/hardware/health/Translate.java"],
103 libs: [
David Anderson85b3b032023-12-05 21:34:32 -0800104 "android.hardware.health-V3-java",
Yifan Hong52ecb3f2021-01-11 17:04:33 -0800105 "android.hardware.health-V2.0-java",
106 "android.hardware.health-V2.1-java",
107 ],
108}