blob: dbff368dae20fdbda866fc53c1f1cbb11a921edc [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 Escande2591c3d2022-08-22 11:27:58 -070051 "com.android.btservices",
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 },
Omer Osmana2587da2022-05-01 03:54:11 +000089
Jiyong Park703e9792022-03-22 14:18:48 +090090 ],
François Gaffiedab7ab02024-06-26 18:13:56 +000091 frozen: false,
Alice Kuoa4dbaff2021-10-18 03:35:59 +080092}
Shunkai Yao195d3d62023-10-10 19:26:07 +000093
94// Note: This should always be one version ahead of the last frozen version
François Gaffiedab7ab02024-06-26 18:13:56 +000095latest_android_hardware_bluetooth_audio = "android.hardware.bluetooth.audio-V5"
Shunkai Yao195d3d62023-10-10 19:26:07 +000096
97cc_defaults {
98 name: "latest_android_hardware_bluetooth_audio_ndk_shared",
99 shared_libs: [
100 latest_android_hardware_bluetooth_audio + "-ndk",
101 ],
102}
103
104cc_defaults {
105 name: "latest_android_hardware_bluetooth_audio_ndk_static",
106 static_libs: [
107 latest_android_hardware_bluetooth_audio + "-ndk",
108 ],
109}
Mikhail Naganov4fe80212024-05-16 18:32:03 -0700110
111cc_defaults {
112 name: "latest_android_hardware_bluetooth_audio_ndk_android_shared",
113 target: {
114 android: {
115 shared_libs: [
116 latest_android_hardware_bluetooth_audio + "-ndk",
117 ],
118 },
119 },
120}
121
122cc_defaults {
123 name: "latest_android_hardware_bluetooth_audio_ndk_android_static",
124 target: {
125 android: {
126 static_libs: [
127 latest_android_hardware_bluetooth_audio + "-ndk",
128 ],
129 },
130 },
131}