summaryrefslogtreecommitdiff
path: root/system/audio_a2dp_hw/Android.bp
blob: 56515e7b7fa4bff520a46017c138cf5ef4899684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "system_bt_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["system_bt_license"],
}

cc_defaults {
    name: "audio_a2dp_hw_defaults",
    defaults: ["libchrome_shared_support_defaults"],
    include_dirs: [
        "packages/modules/Bluetooth/system",
        "packages/modules/Bluetooth/system/audio_a2dp_hw/include",
        "packages/modules/Bluetooth/system/gd",
        "packages/modules/Bluetooth/system/include",
        "packages/modules/Bluetooth/system/types",
    ],
}

// Audio A2DP shared library for target
cc_library {
    name: "audio.a2dp.default",
    defaults: ["audio_a2dp_hw_defaults"],
    relative_install_path: "hw",
    srcs: [
        "src/audio_a2dp_hw.cc",
        "src/audio_a2dp_hw_utils.cc",
    ],
    apex_available: [
        "//apex_available:platform",
        "com.android.bluetooth",
    ],
    shared_libs: [
        "liblog",
        "libcutils",
    ],
    static_libs: ["libosi"],
}

cc_library_static {
    name: "libaudio-a2dp-hw-utils",
    defaults: ["audio_a2dp_hw_defaults"],
    srcs: [
        "src/audio_a2dp_hw_utils.cc",
    ],
    host_supported: true,
    min_sdk_version: "29",
}

// Audio A2DP library unit tests for target and host
cc_test {
    name: "net_test_audio_a2dp_hw",
    test_suites: ["device-tests"],
    defaults: [
        "audio_a2dp_hw_defaults",
        "mts_defaults",
    ],
    srcs: [
        "test/audio_a2dp_hw_test.cc",
    ],
    shared_libs: [
        "liblog",
    ],
    static_libs: [
        "audio.a2dp.default",
        "libosi",
    ],
}