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 | 0d52309 | 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 | }, |
| 41 | java: { |
| 42 | sdk_version: "module_current", |
| 43 | enabled: false, |
| 44 | }, |
| 45 | ndk: { |
Josh Wu | 6ab53e7 | 2021-12-29 23:53:33 -0800 | [diff] [blame] | 46 | apex_available: [ |
| 47 | "//apex_available:platform", |
William Escande | 2591c3d | 2022-08-22 11:27:58 -0700 | [diff] [blame] | 48 | "com.android.btservices", |
Josh Wu | 6ab53e7 | 2021-12-29 23:53:33 -0800 | [diff] [blame] | 49 | ], |
Roopa Sattiraju | 7455efc | 2022-02-03 14:15:22 -0800 | [diff] [blame] | 50 | min_sdk_version: "31", |
Alice Kuo | a4dbaff | 2021-10-18 03:35:59 +0800 | [diff] [blame] | 51 | }, |
| 52 | }, |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 53 | versions_with_info: [ |
| 54 | { |
| 55 | version: "1", |
| 56 | imports: [ |
| 57 | "android.hardware.common-V2", |
| 58 | "android.hardware.common.fmq-V1", |
| 59 | "android.hardware.audio.common-V1", |
| 60 | ], |
| 61 | }, |
Omer Osman | a2587da | 2022-05-01 03:54:11 +0000 | [diff] [blame] | 62 | { |
| 63 | version: "2", |
| 64 | imports: [ |
| 65 | "android.hardware.common-V2", |
| 66 | "android.hardware.common.fmq-V1", |
| 67 | "android.hardware.audio.common-V1", |
| 68 | ], |
| 69 | }, |
Devin Moore | dfcd3bd | 2023-07-31 23:20:30 +0000 | [diff] [blame] | 70 | { |
| 71 | version: "3", |
| 72 | imports: [ |
| 73 | "android.hardware.common-V2", |
| 74 | "android.hardware.common.fmq-V1", |
Ram Mohan | f6497dd | 2023-06-29 08:36:31 +0530 | [diff] [blame] | 75 | "android.hardware.audio.common-V2", |
Devin Moore | dfcd3bd | 2023-07-31 23:20:30 +0000 | [diff] [blame] | 76 | ], |
| 77 | }, |
Devin Moore | a8efdb1 | 2024-02-20 17:31:40 +0000 | [diff] [blame] | 78 | { |
| 79 | version: "4", |
| 80 | imports: [ |
| 81 | "android.hardware.audio.common-V3", |
| 82 | "android.hardware.common-V2", |
| 83 | "android.hardware.common.fmq-V1", |
| 84 | ], |
| 85 | }, |
Omer Osman | a2587da | 2022-05-01 03:54:11 +0000 | [diff] [blame] | 86 | |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 87 | ], |
François Gaffie | 25aff25 | 2024-04-15 13:33:51 +0200 | [diff] [blame] | 88 | frozen: false, |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 89 | |
Alice Kuo | a4dbaff | 2021-10-18 03:35:59 +0800 | [diff] [blame] | 90 | } |
Shunkai Yao | 0d52309 | 2023-10-10 19:26:07 +0000 | [diff] [blame] | 91 | |
| 92 | // Note: This should always be one version ahead of the last frozen version |
François Gaffie | 25aff25 | 2024-04-15 13:33:51 +0200 | [diff] [blame] | 93 | latest_android_hardware_bluetooth_audio = "android.hardware.bluetooth.audio-V5" |
Shunkai Yao | 0d52309 | 2023-10-10 19:26:07 +0000 | [diff] [blame] | 94 | |
| 95 | cc_defaults { |
| 96 | name: "latest_android_hardware_bluetooth_audio_ndk_shared", |
| 97 | shared_libs: [ |
| 98 | latest_android_hardware_bluetooth_audio + "-ndk", |
| 99 | ], |
| 100 | } |
| 101 | |
| 102 | cc_defaults { |
| 103 | name: "latest_android_hardware_bluetooth_audio_ndk_static", |
| 104 | static_libs: [ |
| 105 | latest_android_hardware_bluetooth_audio + "-ndk", |
| 106 | ], |
| 107 | } |
Mikhail Naganov | 4fe8021 | 2024-05-16 18:32:03 -0700 | [diff] [blame] | 108 | |
| 109 | cc_defaults { |
| 110 | name: "latest_android_hardware_bluetooth_audio_ndk_android_shared", |
| 111 | target: { |
| 112 | android: { |
| 113 | shared_libs: [ |
| 114 | latest_android_hardware_bluetooth_audio + "-ndk", |
| 115 | ], |
| 116 | }, |
| 117 | }, |
| 118 | } |
| 119 | |
| 120 | cc_defaults { |
| 121 | name: "latest_android_hardware_bluetooth_audio_ndk_android_static", |
| 122 | target: { |
| 123 | android: { |
| 124 | static_libs: [ |
| 125 | latest_android_hardware_bluetooth_audio + "-ndk", |
| 126 | ], |
| 127 | }, |
| 128 | }, |
| 129 | } |