blob: 3a0d0d68a2ded845072875d500bd02dec200ffc1 [file] [log] [blame]
Alice Kuoa4dbaff2021-10-18 03:35:59 +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 Badour8df6fa12022-01-13 11:51:58 -080015package {
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
Alice Kuoa4dbaff2021-10-18 03:35:59 +080024aidl_interface {
25 name: "android.hardware.bluetooth.audio",
26 vendor_available: true,
Yung Ti Sufefceb12023-08-22 09:29:06 +000027 host_supported: true,
Alice Kuoa4dbaff2021-10-18 03:35:59 +080028 srcs: ["android/hardware/bluetooth/audio/*.aidl"],
29 stability: "vintf",
Shunkai Yao195d3d62023-10-10 19:26:07 +000030 defaults: [
31 "latest_android_hardware_audio_common_import_interface",
32 ],
Alice Kuoa4dbaff2021-10-18 03:35:59 +080033 imports: [
34 "android.hardware.common-V2",
35 "android.hardware.common.fmq-V1",
Alice Kuoa4dbaff2021-10-18 03:35:59 +080036 ],
37 backend: {
38 cpp: {
39 enabled: false,
40 },
Henri Chataing00035202024-11-20 00:51:39 +000041 rust: {
42 enabled: true,
43 },
Alice Kuoa4dbaff2021-10-18 03:35:59 +080044 java: {
45 sdk_version: "module_current",
46 enabled: false,
47 },
48 ndk: {
Josh Wu6ab53e72021-12-29 23:53:33 -080049 apex_available: [
50 "//apex_available:platform",
William Escande651113e2025-01-09 14:37:59 -080051 "com.android.bt",
Josh Wu6ab53e72021-12-29 23:53:33 -080052 ],
Roopa Sattiraju7455efc2022-02-03 14:15:22 -080053 min_sdk_version: "31",
Alice Kuoa4dbaff2021-10-18 03:35:59 +080054 },
55 },
Jiyong Park703e9792022-03-22 14:18:48 +090056 versions_with_info: [
57 {
58 version: "1",
59 imports: [
60 "android.hardware.common-V2",
61 "android.hardware.common.fmq-V1",
62 "android.hardware.audio.common-V1",
63 ],
64 },
Omer Osmana2587da2022-05-01 03:54:11 +000065 {
66 version: "2",
67 imports: [
68 "android.hardware.common-V2",
69 "android.hardware.common.fmq-V1",
70 "android.hardware.audio.common-V1",
71 ],
72 },
Devin Mooredfcd3bd2023-07-31 23:20:30 +000073 {
74 version: "3",
75 imports: [
76 "android.hardware.common-V2",
77 "android.hardware.common.fmq-V1",
Ram Mohanf6497dd2023-06-29 08:36:31 +053078 "android.hardware.audio.common-V2",
Devin Mooredfcd3bd2023-07-31 23:20:30 +000079 ],
80 },
Devin Moorea8efdb12024-02-20 17:31:40 +000081 {
82 version: "4",
83 imports: [
84 "android.hardware.audio.common-V3",
85 "android.hardware.common-V2",
86 "android.hardware.common.fmq-V1",
87 ],
88 },
Devin Moore9df02452025-01-08 21:21:06 +000089 {
90 version: "5",
91 imports: [
92 "android.hardware.audio.common-V4",
93 "android.hardware.common-V2",
94 "android.hardware.common.fmq-V1",
95 ],
96 },
Omer Osmana2587da2022-05-01 03:54:11 +000097
Jiyong Park703e9792022-03-22 14:18:48 +090098 ],
Devin Moore9df02452025-01-08 21:21:06 +000099 frozen: true,
Alice Kuoa4dbaff2021-10-18 03:35:59 +0800100}
Shunkai Yao195d3d62023-10-10 19:26:07 +0000101
102// Note: This should always be one version ahead of the last frozen version
François Gaffiedab7ab02024-06-26 18:13:56 +0000103latest_android_hardware_bluetooth_audio = "android.hardware.bluetooth.audio-V5"
Shunkai Yao195d3d62023-10-10 19:26:07 +0000104
105cc_defaults {
106 name: "latest_android_hardware_bluetooth_audio_ndk_shared",
107 shared_libs: [
108 latest_android_hardware_bluetooth_audio + "-ndk",
109 ],
110}
111
112cc_defaults {
113 name: "latest_android_hardware_bluetooth_audio_ndk_static",
114 static_libs: [
115 latest_android_hardware_bluetooth_audio + "-ndk",
116 ],
117}
Mikhail Naganov4fe80212024-05-16 18:32:03 -0700118
119cc_defaults {
120 name: "latest_android_hardware_bluetooth_audio_ndk_android_shared",
121 target: {
122 android: {
123 shared_libs: [
124 latest_android_hardware_bluetooth_audio + "-ndk",
125 ],
126 },
127 },
128}
129
130cc_defaults {
131 name: "latest_android_hardware_bluetooth_audio_ndk_android_static",
132 target: {
133 android: {
134 static_libs: [
135 latest_android_hardware_bluetooth_audio + "-ndk",
136 ],
137 },
138 },
139}