summaryrefslogtreecommitdiff
path: root/system/test/headless/Android.bp
blob: 92c6302ccf89993d4caa5ec5508edd1cce9b5b0e (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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_test {
    name: "bt_headless",
    test_suites: ["device-tests"],
    defaults: [
        "fluoride_defaults",
        "mts_defaults",
    ],
    srcs: [
        "connect/connect.cc",
        "get_options.cc",
        "headless.cc",
        "main.cc",
        "pairing/pairing.cc",
        "dumpsys/dumpsys.cc",
        "sdp/sdp.cc",
        "sdp/sdp_db.cc",
        "nop/nop.cc",
        "read/read.cc",
        "read/name.cc",
    ],
    include_dirs: [
        "packages/modules/Bluetooth/system",
        "packages/modules/Bluetooth/system/gd",
        "packages/modules/Bluetooth/system/stack/include",
    ],
    whole_static_libs: [
        "libbtcore",
    ],
    static_libs: [
        "android.hardware.bluetooth.a2dp@1.0",
        "android.system.suspend.control-V1-ndk",
        "avrcp-target-service",
        "libaudio-a2dp-hw-utils",
        "libbluetooth-dumpsys",
        "libbluetooth_gd",
        "libbluetooth_rust_interop",
        "libbt-audio-hal-interface",
        "libbt-bta",
        "libbt_callbacks_cxx",
        "libbt-common",
        "libbtdevice",
        "libbte",
        "libbt-hci",
        "libbtif",
        "lib-bt-packets",
        "lib-bt-packets-avrcp",
        "lib-bt-packets-base",
        "libbt-protos-lite",
        "libbt-sbc-decoder",
        "libbt-sbc-encoder",
        "libbt_shim_bridge",
        "libbt_shim_ffi",
        "libbt-stack",
        "libbt-utils",
        "libc++fs",
        "libflatbuffers-cpp",
        "libFraunhoferAAC",
        "libg722codec",
        "liblc3",
        "libosi",
        "libprotobuf-cpp-lite",
        "libudrv-uipc",
        "libz",
    ],
    shared_libs: [
        "android.hardware.bluetooth@1.0",
        "android.hardware.bluetooth@1.1",
        "android.hardware.bluetooth.audio@2.0",
        "android.hardware.bluetooth.audio@2.1",
        "android.hardware.bluetooth.audio-V2-ndk",
        "android.system.suspend-V1-ndk",
        "libaaudio",
        "libbase",
        "libbinder_ndk",
        "libcrypto",
        "libcutils",  // property_get_bool
        "libfmq",
        "libhidlbase",
        "libjsoncpp",
        "liblog",  // __android_log_print
        "libprocessgroup",
        "libtinyxml2",
        "libutils",
    ],
    ldflags: ["-rdynamic"],
    sanitize: {
      cfi: false,
    },
}