Alice Kuo | a4dbaff | 2021-10-18 03:35:59 +0800 | [diff] [blame] | 1 | // 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 Badour | 8df6fa1 | 2022-01-13 11:51:58 -0800 | [diff] [blame] | 15 | package { |
| 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 Kuo | a4dbaff | 2021-10-18 03:35:59 +0800 | [diff] [blame] | 24 | aidl_interface { |
| 25 | name: "android.hardware.bluetooth.audio", |
| 26 | vendor_available: true, |
Yung Ti Su | fefceb1 | 2023-08-22 09:29:06 +0000 | [diff] [blame] | 27 | host_supported: true, |
Alice Kuo | a4dbaff | 2021-10-18 03:35:59 +0800 | [diff] [blame] | 28 | srcs: ["android/hardware/bluetooth/audio/*.aidl"], |
| 29 | stability: "vintf", |
Shunkai Yao | 195d3d6 | 2023-10-10 19:26:07 +0000 | [diff] [blame] | 30 | defaults: [ |
| 31 | "latest_android_hardware_audio_common_import_interface", |
| 32 | ], |
Alice Kuo | a4dbaff | 2021-10-18 03:35:59 +0800 | [diff] [blame] | 33 | imports: [ |
| 34 | "android.hardware.common-V2", |
| 35 | "android.hardware.common.fmq-V1", |
Alice Kuo | a4dbaff | 2021-10-18 03:35:59 +0800 | [diff] [blame] | 36 | ], |
| 37 | backend: { |
| 38 | cpp: { |
| 39 | enabled: false, |
| 40 | }, |
Henri Chataing | 0003520 | 2024-11-20 00:51:39 +0000 | [diff] [blame] | 41 | rust: { |
| 42 | enabled: true, |
| 43 | }, |
Alice Kuo | a4dbaff | 2021-10-18 03:35:59 +0800 | [diff] [blame] | 44 | java: { |
| 45 | sdk_version: "module_current", |
| 46 | enabled: false, |
| 47 | }, |
| 48 | ndk: { |
Josh Wu | 6ab53e7 | 2021-12-29 23:53:33 -0800 | [diff] [blame] | 49 | apex_available: [ |
| 50 | "//apex_available:platform", |
William Escande | 651113e | 2025-01-09 14:37:59 -0800 | [diff] [blame] | 51 | "com.android.bt", |
Josh Wu | 6ab53e7 | 2021-12-29 23:53:33 -0800 | [diff] [blame] | 52 | ], |
Roopa Sattiraju | 7455efc | 2022-02-03 14:15:22 -0800 | [diff] [blame] | 53 | min_sdk_version: "31", |
Alice Kuo | a4dbaff | 2021-10-18 03:35:59 +0800 | [diff] [blame] | 54 | }, |
| 55 | }, |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 56 | 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 Osman | a2587da | 2022-05-01 03:54:11 +0000 | [diff] [blame] | 65 | { |
| 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 Moore | dfcd3bd | 2023-07-31 23:20:30 +0000 | [diff] [blame] | 73 | { |
| 74 | version: "3", |
| 75 | imports: [ |
| 76 | "android.hardware.common-V2", |
| 77 | "android.hardware.common.fmq-V1", |
Ram Mohan | f6497dd | 2023-06-29 08:36:31 +0530 | [diff] [blame] | 78 | "android.hardware.audio.common-V2", |
Devin Moore | dfcd3bd | 2023-07-31 23:20:30 +0000 | [diff] [blame] | 79 | ], |
| 80 | }, |
Devin Moore | a8efdb1 | 2024-02-20 17:31:40 +0000 | [diff] [blame] | 81 | { |
| 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 Moore | 9df0245 | 2025-01-08 21:21:06 +0000 | [diff] [blame] | 89 | { |
| 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 Osman | a2587da | 2022-05-01 03:54:11 +0000 | [diff] [blame] | 97 | |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 98 | ], |
Devin Moore | 9df0245 | 2025-01-08 21:21:06 +0000 | [diff] [blame] | 99 | frozen: true, |
Alice Kuo | a4dbaff | 2021-10-18 03:35:59 +0800 | [diff] [blame] | 100 | } |
Shunkai Yao | 195d3d6 | 2023-10-10 19:26:07 +0000 | [diff] [blame] | 101 | |
| 102 | // Note: This should always be one version ahead of the last frozen version |
François Gaffie | dab7ab0 | 2024-06-26 18:13:56 +0000 | [diff] [blame] | 103 | latest_android_hardware_bluetooth_audio = "android.hardware.bluetooth.audio-V5" |
Shunkai Yao | 195d3d6 | 2023-10-10 19:26:07 +0000 | [diff] [blame] | 104 | |
| 105 | cc_defaults { |
| 106 | name: "latest_android_hardware_bluetooth_audio_ndk_shared", |
| 107 | shared_libs: [ |
| 108 | latest_android_hardware_bluetooth_audio + "-ndk", |
| 109 | ], |
| 110 | } |
| 111 | |
| 112 | cc_defaults { |
| 113 | name: "latest_android_hardware_bluetooth_audio_ndk_static", |
| 114 | static_libs: [ |
| 115 | latest_android_hardware_bluetooth_audio + "-ndk", |
| 116 | ], |
| 117 | } |
Mikhail Naganov | 4fe8021 | 2024-05-16 18:32:03 -0700 | [diff] [blame] | 118 | |
| 119 | cc_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 | |
| 130 | cc_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 | } |