Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fe8021f authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

bluetooth: Add 'defaults' for 'android_hardware_bluetooth_audio'

Add defaults for the case when the library is used
from within 'target/android'.

Also, switch 'BluetoothLeAudioCodecsProviderTest' to use
'defaults' instead of hardcoding the interface module version.

Bug: 307310023
Test: m
Change-Id: I7e5e70efe6a733367a8b5cbe5cffbfddf610cc6b
parent 938c0177
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -97,3 +97,25 @@ cc_defaults {
        latest_android_hardware_bluetooth_audio + "-ndk",
    ],
}

cc_defaults {
    name: "latest_android_hardware_bluetooth_audio_ndk_android_shared",
    target: {
        android: {
            shared_libs: [
                latest_android_hardware_bluetooth_audio + "-ndk",
            ],
        },
    },
}

cc_defaults {
    name: "latest_android_hardware_bluetooth_audio_ndk_android_static",
    target: {
        android: {
            static_libs: [
                latest_android_hardware_bluetooth_audio + "-ndk",
            ],
        },
    },
}
+3 −1
Original line number Diff line number Diff line
@@ -90,6 +90,9 @@ cc_library_shared {

cc_test {
    name: "BluetoothLeAudioCodecsProviderTest",
    defaults: [
        "latest_android_hardware_bluetooth_audio_ndk_shared",
    ],
    srcs: [
        "aidl_session/BluetoothLeAudioCodecsProvider.cpp",
        "aidl_session/BluetoothLeAudioCodecsProviderTest.cpp",
@@ -100,7 +103,6 @@ cc_test {
    shared_libs: [
        "libbase",
        "libbinder_ndk",
        "android.hardware.bluetooth.audio-V4-ndk",
        "libxml2",
    ],
    test_suites: [