summaryrefslogtreecommitdiff
path: root/device/Android.bp
blob: fe3f3341408f20b0ecfa03a3b4152a3f91849441 (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
// Bluetooth device static library for target
// ========================================================
cc_library_static {
    name: "libbtdevice_qti",
    defaults: ["fluoride_defaults_qti"],
    local_include_dirs: [
        "include",
    ],
    include_dirs: [
        "vendor/qcom/opensource/commonsys/system/bt",
        "vendor/qcom/opensource/commonsys/system/bt/bta/ag",
        "vendor/qcom/opensource/commonsys/system/bt/bta/sys",
        "vendor/qcom/opensource/commonsys/system/bt/bta/include",
        "vendor/qcom/opensource/commonsys/system/bt/btcore/include",
        "vendor/qcom/opensource/commonsys/system/bt/hci/include",
        "vendor/qcom/opensource/commonsys/system/bt/internal_include",
        "vendor/qcom/opensource/commonsys/system/bt/stack/include",
        "vendor/qcom/opensource/commonsys/bluetooth_ext/system_bt_ext",
        "vendor/qcom/opensource/commonsys/bluetooth_ext/system_bt_ext/btconfigstore",
        "vendor/qcom/opensource/commonsys-intf/bluetooth/include",
    ],
    srcs: [
        "src/controller.cc",
        "src/esco_parameters.cc",
    ],
    shared_libs: [
        "liblog",
        "libbtconfigstore",
    ],

//ifeq ($(strip $(TARGET_BUILD_VARIANT)),userdebug)
//ifneq ($(strip $(BOARD_HAS_QTI_BT_ROME)),true))
    cflags: [
        "-DQLOGKIT_USERDEBUG",
    ],
//endif
//endif
}

// Bluetooth device unit tests for target
// ========================================================
cc_test {
    name: "net_test_device_qti",
    test_suites: ["device-tests"],
    defaults: ["fluoride_defaults_qti"],
    include_dirs: ["vendor/qcom/opensource/commonsys/system/bt"],
    srcs: [
        "test/interop_test.cc",
    ],
    shared_libs: [
        "liblog",
        "libdl",
    ],
    static_libs: [
        "libbtdevice_qti",
        "libbtdevice_ext",
        "libbtcore_qti",
        "libosi_qti",
        "libosi-AllocationTestHarness_qti",
        "libcutils",
        "libbluetooth-types",
    ],
}