blob: e507c27c634948315e38980003a838d6d4792b00 [file] [log] [blame]
// packet library for libbt-rootcanal
// ========================================================
cc_library_static {
name: "libbt-rootcanal-packets",
defaults: [
"libchrome_support_defaults",
"clang_file_coverage",
],
host_supported: true,
proprietary: true,
srcs: [
"iterator.cc",
"counted_builder.cc",
"packet_view.cc",
"raw_builder.cc",
"view.cc",
],
cflags: [
"-fvisibility=hidden",
],
local_include_dirs: [
".",
],
export_include_dirs: ["."],
include_dirs: [
"system/bt/vendor_libs/test_vendor_lib/include",
"system/bt/vendor_libs/test_vendor_lib/",
"system/bt/",
"system/bt/gd",
],
shared_libs: [
"libbase",
"liblog",
],
}
// Unit tests for the host
// ========================================================
cc_test_host {
name: "rootcanal-packets_test_host",
defaults: [
"libchrome_support_defaults",
"clang_file_coverage",
"clang_coverage_bin",
],
srcs: [
"test/packet_builder_test.cc",
"test/packet_view_test.cc",
":BluetoothHciClassSources",
],
header_libs: [
"libbluetooth_headers",
],
local_include_dirs: [
".",
],
include_dirs: [
"system/bt",
"system/bt/gd",
"system/bt/hci/include",
"system/bt/vendor_libs/test_vendor_lib",
"system/bt/vendor_libs/test_vendor_lib/include",
],
shared_libs: [
"liblog",
],
static_libs: [
"libbt-rootcanal-types",
"libbt-rootcanal-packets",
],
}