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"], 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: [ "system/bt", "system/bt/gd", "system/bt/stack/include", ], whole_static_libs: [ "libbtcore", ], static_libs: [ "libFraunhoferAAC", "libbluetooth_gd", "libbt-bta", "libbt-common", "libbt-hci", "libbt-protos-lite", "libbt-sbc-decoder", "libbt-sbc-encoder", "libbt-stack", "libbt-utils", "libbtdevice", "libbte", "libbtif", "libflatbuffers-cpp", "libg722codec", "libosi", "libprotobuf-cpp-lite", "libudrv-uipc", "libz", "libbluetooth_rust_interop", ], shared_libs: [ "android.hardware.bluetooth.a2dp@1.0", "android.hardware.bluetooth.audio@2.0", "android.hardware.bluetooth.audio@2.1", "android.hardware.bluetooth@1.0", "android.hardware.bluetooth@1.1", "android.system.suspend.control-V1-ndk", "android.system.suspend@1.0", "libaaudio", "libbase", "libbinder_ndk", "libcrypto", "libcutils", // property_get_bool "libfmq", "libhidlbase", "libjsoncpp", "liblog", // __android_log_print "libprocessgroup", "libtinyxml2", "libutils", ], ldflags: ["-rdynamic"], sanitize: { cfi: false, }, }