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, |
| 39 | srcs: [ |
| 40 | "aidl_session/BluetoothAudioCodecs.cpp", |
| 41 | "aidl_session/BluetoothAudioSession.cpp", |
| 42 | "aidl_session/HidlToAidlMiddleware.cpp", |
shihchienc | 8ed901a | 2022-09-06 08:44:44 +0000 | [diff] [blame] | 43 | "aidl_session/BluetoothLeAudioCodecsProvider.cpp", |
Josh Wu | 20bac52 | 2021-12-29 23:52:39 -0800 | [diff] [blame] | 44 | ], |
| 45 | export_include_dirs: ["aidl_session/"], |
shihchienc | 8ed901a | 2022-09-06 08:44:44 +0000 | [diff] [blame] | 46 | header_libs: [ |
| 47 | "libhardware_headers", |
| 48 | "libxsdc-utils", |
| 49 | ], |
Josh Wu | 20bac52 | 2021-12-29 23:52:39 -0800 | [diff] [blame] | 50 | shared_libs: [ |
| 51 | "android.hardware.bluetooth.audio@2.0", |
| 52 | "android.hardware.bluetooth.audio@2.1", |
Josh Wu | 20bac52 | 2021-12-29 23:52:39 -0800 | [diff] [blame] | 53 | "libbase", |
| 54 | "libcutils", |
| 55 | "libbinder_ndk", |
| 56 | "libfmq", |
| 57 | "liblog", |
Rongxuan Liu | 6945dd3 | 2023-01-26 17:16:20 +0000 | [diff] [blame] | 58 | "android.hardware.bluetooth.audio-V3-ndk", |
Josh Wu | 20bac52 | 2021-12-29 23:52:39 -0800 | [diff] [blame] | 59 | "libhidlbase", |
shihchienc | 8ed901a | 2022-09-06 08:44:44 +0000 | [diff] [blame] | 60 | "libxml2", |
Jakub Pawlowski | 964f323 | 2021-02-02 15:11:39 +0100 | [diff] [blame] | 61 | ], |
shihchienc | 8ed901a | 2022-09-06 08:44:44 +0000 | [diff] [blame] | 62 | generated_sources: ["le_audio_codec_capabilities"], |
| 63 | generated_headers: ["le_audio_codec_capabilities"], |
| 64 | } |
| 65 | |
shihchienc | d7f565a | 2022-10-14 13:45:37 +0000 | [diff] [blame] | 66 | cc_test { |
| 67 | name: "BluetoothLeAudioCodecsProviderTest", |
| 68 | srcs: [ |
| 69 | "aidl_session/BluetoothLeAudioCodecsProvider.cpp", |
| 70 | "aidl_session/BluetoothLeAudioCodecsProviderTest.cpp", |
| 71 | ], |
| 72 | header_libs: [ |
| 73 | "libxsdc-utils", |
| 74 | ], |
| 75 | shared_libs: [ |
| 76 | "libbase", |
| 77 | "libbinder_ndk", |
Rongxuan Liu | 6945dd3 | 2023-01-26 17:16:20 +0000 | [diff] [blame] | 78 | "android.hardware.bluetooth.audio-V3-ndk", |
shihchienc | d7f565a | 2022-10-14 13:45:37 +0000 | [diff] [blame] | 79 | "libxml2", |
| 80 | ], |
| 81 | test_suites: [ |
| 82 | "general-tests", |
| 83 | ], |
| 84 | test_options: { |
| 85 | unit_test: false, |
| 86 | }, |
| 87 | generated_sources: ["le_audio_codec_capabilities"], |
| 88 | generated_headers: ["le_audio_codec_capabilities"], |
| 89 | } |
| 90 | |
shihchienc | 8ed901a | 2022-09-06 08:44:44 +0000 | [diff] [blame] | 91 | xsd_config { |
| 92 | name: "le_audio_codec_capabilities", |
| 93 | srcs: ["le_audio_codec_capabilities/le_audio_codec_capabilities.xsd"], |
| 94 | package_name: "aidl.android.hardware.bluetooth.audio.setting", |
| 95 | api_dir: "le_audio_codec_capabilities/schema", |
Jooyung Han | 16d5af6 | 2023-05-22 16:36:26 +0900 | [diff] [blame] | 96 | root_elements: ["leAudioOffloadSetting"], |
Jakub Pawlowski | 964f323 | 2021-02-02 15:11:39 +0100 | [diff] [blame] | 97 | } |