blob: 5e009487acf3b7d248eb7b62dde2ad7381f75c06 [file] [log] [blame]
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",
"libopus",
"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,
},
}