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", |
Omer Osman | a2587da | 2022-05-01 03:54:11 +0000 | [diff] [blame] | 58 | "android.hardware.bluetooth.audio-V2-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 | |
| 66 | xsd_config { |
| 67 | name: "le_audio_codec_capabilities", |
| 68 | srcs: ["le_audio_codec_capabilities/le_audio_codec_capabilities.xsd"], |
| 69 | package_name: "aidl.android.hardware.bluetooth.audio.setting", |
| 70 | api_dir: "le_audio_codec_capabilities/schema", |
Jakub Pawlowski | 964f323 | 2021-02-02 15:11:39 +0100 | [diff] [blame] | 71 | } |