103 lines
2.8 KiB
Plaintext
103 lines
2.8 KiB
Plaintext
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"],
|
|
}
|
|
|
|
// HCI static library for target
|
|
cc_library_static {
|
|
name: "libbt-hci",
|
|
defaults: ["fluoride_basic_defaults"],
|
|
srcs: [
|
|
"src/buffer_allocator.cc",
|
|
"src/packet_fragmenter.cc",
|
|
],
|
|
generated_headers: [
|
|
"BluetoothGeneratedDumpsysDataSchema_h",
|
|
"BluetoothGeneratedPackets_h",
|
|
],
|
|
local_include_dirs: [
|
|
"include",
|
|
],
|
|
include_dirs: [
|
|
"packages/modules/Bluetooth/system",
|
|
"packages/modules/Bluetooth/system/bta/include",
|
|
"packages/modules/Bluetooth/system/btif/include",
|
|
"packages/modules/Bluetooth/system/gd",
|
|
"packages/modules/Bluetooth/system/gd/rust/shim",
|
|
"packages/modules/Bluetooth/system/internal_include",
|
|
"packages/modules/Bluetooth/system/stack/include",
|
|
"system/libhwbinder/include",
|
|
],
|
|
host_supported: true,
|
|
min_sdk_version: "Tiramisu",
|
|
}
|
|
|
|
// HCI unit tests for target
|
|
cc_test {
|
|
name: "net_test_hci",
|
|
test_suites: ["device-tests"],
|
|
defaults: [
|
|
"bluetooth_gtest_x86_asan_workaround",
|
|
"fluoride_basic_defaults",
|
|
"fluoride_test_defaults",
|
|
"mts_defaults",
|
|
],
|
|
host_supported: false,
|
|
local_include_dirs: [
|
|
"include",
|
|
],
|
|
include_dirs: [
|
|
"packages/modules/Bluetooth/system",
|
|
"packages/modules/Bluetooth/system/gd/rust/shim",
|
|
"packages/modules/Bluetooth/system/internal_include",
|
|
"packages/modules/Bluetooth/system/osi/test",
|
|
"packages/modules/Bluetooth/system/stack/include",
|
|
"system/libhwbinder/include",
|
|
],
|
|
srcs: [
|
|
"test/packet_fragmenter_test.cc",
|
|
],
|
|
shared_libs: [
|
|
"android.hardware.bluetooth.audio@2.0",
|
|
"android.hardware.bluetooth.audio@2.1",
|
|
"libdl",
|
|
],
|
|
static_libs: [
|
|
"libbluetooth-for-tests",
|
|
"libbt-hci",
|
|
"libbtcore",
|
|
"libchrome",
|
|
],
|
|
}
|
|
|
|
cc_test {
|
|
name: "net_test_hci_fragmenter_native",
|
|
static_libs: [
|
|
"libbase",
|
|
"libchrome",
|
|
],
|
|
test_suites: ["device-tests"],
|
|
defaults: [
|
|
"bluetooth_gtest_x86_asan_workaround",
|
|
"fluoride_test_defaults",
|
|
"mts_defaults",
|
|
],
|
|
local_include_dirs: [
|
|
"include",
|
|
],
|
|
include_dirs: [
|
|
"packages/modules/Bluetooth/system",
|
|
"packages/modules/Bluetooth/system/gd",
|
|
"packages/modules/Bluetooth/system/osi/test",
|
|
"packages/modules/Bluetooth/system/stack/include",
|
|
],
|
|
srcs: [
|
|
"src/buffer_allocator.cc",
|
|
"test/packet_fragmenter_host_test.cc",
|
|
],
|
|
}
|