summaryrefslogtreecommitdiff
path: root/hci/Android.bp
blob: f5b399d8bf49c4f92ef1414cc073f46047926ca4 (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
71
72
73
74
75
76
77
78
79
cc_defaults {
    name: "libbt-hci_defaults_qti",
    defaults: ["fluoride_defaults_qti"],
    shared_libs: [
        "android.hardware.bluetooth@1.0",
        "android.hardware.bluetooth@1.1",
        "libhidlbase",
    ],
}

// HCI static library for target
// ========================================================
cc_library_static {
    name: "libbt-hci_qti",
    defaults: ["libbt-hci_defaults_qti"],
    srcs: [
        "src/btsnoop.cc",
        "src/btsnoop_mem.cc",
        "src/btsnoop_net.cc",
        "src/buffer_allocator.cc",
        "src/hci_inject.cc",
        "src/hci_layer.cc",
        "src/hci_layer_android.cc",
        "src/hci_packet_factory.cc",
        "src/hci_packet_parser.cc",
        "src/packet_fragmenter.cc",
    ],
    local_include_dirs: [
        "include",
    ],
    include_dirs: [
        "vendor/qcom/opensource/commonsys/system/bt",
        "vendor/qcom/opensource/commonsys/system/bt/internal_include",
        "vendor/qcom/opensource/commonsys/system/bt/btcore/include",
        "vendor/qcom/opensource/commonsys/system/bt/stack/include",
        "vendor/qcom/opensource/commonsys/system/bt/utils/include",
        "vendor/qcom/opensource/commonsys/system/bt/bta/include",
        "vendor/qcom/opensource/commonsys/system/bt/device/include",
        "vendor/qcom/opensource/commonsys-intf/bluetooth/include",
    ],
}

// HCI unit tests for target
// ========================================================
cc_test {
    name: "net_test_hci_qti",
    test_suites: ["device-tests"],
    defaults: ["libbt-hci_defaults_qti"],
    local_include_dirs: [
        "include",
    ],
    include_dirs: [
        "vendor/qcom/opensource/commonsys/system/bt",
        "vendor/qcom/opensource/commonsys/system/bt/internal_include",
        "vendor/qcom/opensource/commonsys/system/bt/btcore/include",
        "vendor/qcom/opensource/commonsys/system/bt/osi/test",
        "vendor/qcom/opensource/commonsys/system/bt/stack/include",
        "vendor/qcom/opensource/commonsys/system/bt/utils/include",
        "vendor/qcom/opensource/commonsys/system/bt/device/include",
        "vendor/qcom/opensource/commonsys-intf/bluetooth/include",
    ],
    srcs: [
        "test/packet_fragmenter_test.cc",
    ],
    shared_libs: [
        "liblog",
        "libdl",
        "libprotobuf-cpp-lite",
    ],
    static_libs: [
        "libbt-hci_qti",
        "libosi_qti",
        "libosi-AlarmTestHarness_qti",
        "libosi-AllocationTestHarness_qti",
        "libcutils",
        "libbtcore_qti",
        "libbt-protos_qti",
    ],
}