Bob Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 8 | } |
| 9 | |
Jakub Pawlowski | 964f323 | 2021-02-02 15:11:39 +0100 | [diff] [blame] | 10 | cc_library_shared { |
| 11 | name: "libbluetooth_audio_session", |
| 12 | defaults: ["hidl_defaults"], |
| 13 | vendor: true, |
| 14 | srcs: [ |
| 15 | "session/BluetoothAudioSession.cpp", |
Jakub Pawlowski | 3c8dc61 | 2021-02-03 20:43:20 +0100 | [diff] [blame] | 16 | "session/BluetoothAudioSession_2_1.cpp", |
Jakub Pawlowski | 964f323 | 2021-02-02 15:11:39 +0100 | [diff] [blame] | 17 | "session/BluetoothAudioSupportedCodecsDB.cpp", |
Jakub Pawlowski | 3c8dc61 | 2021-02-03 20:43:20 +0100 | [diff] [blame] | 18 | "session/BluetoothAudioSupportedCodecsDB_2_1.cpp", |
Jakub Pawlowski | 964f323 | 2021-02-02 15:11:39 +0100 | [diff] [blame] | 19 | ], |
| 20 | export_include_dirs: ["session/"], |
| 21 | header_libs: ["libhardware_headers"], |
| 22 | shared_libs: [ |
Jakub Pawlowski | 8d87eb7 | 2021-12-06 15:22:03 +0100 | [diff] [blame] | 23 | "android.hardware.audio.common@5.0", |
Jakub Pawlowski | 964f323 | 2021-02-02 15:11:39 +0100 | [diff] [blame] | 24 | "android.hardware.bluetooth.audio@2.0", |
Jakub Pawlowski | 3c8dc61 | 2021-02-03 20:43:20 +0100 | [diff] [blame] | 25 | "android.hardware.bluetooth.audio@2.1", |
Jakub Pawlowski | 964f323 | 2021-02-02 15:11:39 +0100 | [diff] [blame] | 26 | "libbase", |
| 27 | "libcutils", |
| 28 | "libfmq", |
| 29 | "libhidlbase", |
| 30 | "liblog", |
| 31 | "libutils", |
Josh Wu | 20bac52 | 2021-12-29 23:52:39 -0800 | [diff] [blame] | 32 | "libbluetooth_audio_session_aidl", |
| 33 | ], |
| 34 | } |
| 35 | |
| 36 | cc_library_shared { |
| 37 | name: "libbluetooth_audio_session_aidl", |
| 38 | vendor: true, |
Yung Ti Su | fefceb1 | 2023-08-22 09:29:06 +0000 | [diff] [blame] | 39 | host_supported: true, |
Josh Wu | 20bac52 | 2021-12-29 23:52:39 -0800 | [diff] [blame] | 40 | srcs: [ |
| 41 | "aidl_session/BluetoothAudioCodecs.cpp", |
| 42 | "aidl_session/BluetoothAudioSession.cpp", |
| 43 | "aidl_session/HidlToAidlMiddleware.cpp", |
shihchienc | 8ed901a | 2022-09-06 08:44:44 +0000 | [diff] [blame] | 44 | "aidl_session/BluetoothLeAudioCodecsProvider.cpp", |
Josh Wu | 20bac52 | 2021-12-29 23:52:39 -0800 | [diff] [blame] | 45 | ], |
| 46 | export_include_dirs: ["aidl_session/"], |
shihchienc | 8ed901a | 2022-09-06 08:44:44 +0000 | [diff] [blame] | 47 | header_libs: [ |
| 48 | "libhardware_headers", |
| 49 | "libxsdc-utils", |
| 50 | ], |
Shunkai Yao | 195d3d6 | 2023-10-10 19:26:07 +0000 | [diff] [blame] | 51 | defaults: [ |
| 52 | "latest_android_hardware_bluetooth_audio_ndk_shared", |
| 53 | ], |
Josh Wu | 20bac52 | 2021-12-29 23:52:39 -0800 | [diff] [blame] | 54 | shared_libs: [ |
| 55 | "android.hardware.bluetooth.audio@2.0", |
| 56 | "android.hardware.bluetooth.audio@2.1", |
Josh Wu | 20bac52 | 2021-12-29 23:52:39 -0800 | [diff] [blame] | 57 | "libbase", |
| 58 | "libcutils", |
| 59 | "libbinder_ndk", |
| 60 | "libfmq", |
| 61 | "liblog", |
Josh Wu | 20bac52 | 2021-12-29 23:52:39 -0800 | [diff] [blame] | 62 | "libhidlbase", |
shihchienc | 8ed901a | 2022-09-06 08:44:44 +0000 | [diff] [blame] | 63 | "libxml2", |
Jakub Pawlowski | 964f323 | 2021-02-02 15:11:39 +0100 | [diff] [blame] | 64 | ], |
shihchienc | 8ed901a | 2022-09-06 08:44:44 +0000 | [diff] [blame] | 65 | generated_sources: ["le_audio_codec_capabilities"], |
| 66 | generated_headers: ["le_audio_codec_capabilities"], |
| 67 | } |
| 68 | |
shihchienc | d7f565a | 2022-10-14 13:45:37 +0000 | [diff] [blame] | 69 | cc_test { |
| 70 | name: "BluetoothLeAudioCodecsProviderTest", |
| 71 | srcs: [ |
| 72 | "aidl_session/BluetoothLeAudioCodecsProvider.cpp", |
| 73 | "aidl_session/BluetoothLeAudioCodecsProviderTest.cpp", |
| 74 | ], |
| 75 | header_libs: [ |
| 76 | "libxsdc-utils", |
| 77 | ], |
| 78 | shared_libs: [ |
| 79 | "libbase", |
| 80 | "libbinder_ndk", |
Jakub Rotkiewicz | e70014d | 2023-08-07 12:49:46 +0000 | [diff] [blame] | 81 | "android.hardware.bluetooth.audio-V4-ndk", |
shihchienc | d7f565a | 2022-10-14 13:45:37 +0000 | [diff] [blame] | 82 | "libxml2", |
| 83 | ], |
| 84 | test_suites: [ |
| 85 | "general-tests", |
| 86 | ], |
| 87 | test_options: { |
| 88 | unit_test: false, |
| 89 | }, |
| 90 | generated_sources: ["le_audio_codec_capabilities"], |
| 91 | generated_headers: ["le_audio_codec_capabilities"], |
| 92 | } |
| 93 | |
shihchienc | 8ed901a | 2022-09-06 08:44:44 +0000 | [diff] [blame] | 94 | xsd_config { |
| 95 | name: "le_audio_codec_capabilities", |
| 96 | srcs: ["le_audio_codec_capabilities/le_audio_codec_capabilities.xsd"], |
| 97 | package_name: "aidl.android.hardware.bluetooth.audio.setting", |
| 98 | api_dir: "le_audio_codec_capabilities/schema", |
Jooyung Han | 16d5af6 | 2023-05-22 16:36:26 +0900 | [diff] [blame] | 99 | root_elements: ["leAudioOffloadSetting"], |
Jakub Pawlowski | 964f323 | 2021-02-02 15:11:39 +0100 | [diff] [blame] | 100 | } |