blob: dd9a59331c45941edbb41c3ed21abcc540b7a9bd [file] [log] [blame]
# Copyright 2022 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build_overrides/pigweed.gni")
import("//src/connectivity/bluetooth/core/bt-host/build/bt_gtest_package.gni")
group("controllers") {
public_deps = [
":banjo_controller",
":fidl_controller",
]
}
source_set("helpers") {
visibility = [ ":*" ]
sources = [
"helpers.cc",
"helpers.h",
]
public_deps = [
"$dir_pw_bluetooth",
"//zircon/system/ulib/zx",
]
}
source_set("banjo_controller") {
sources = [
"banjo_controller.cc",
"banjo_controller.h",
]
deps = [
":helpers",
"//src/connectivity/bluetooth/core/bt-host/common",
"//src/connectivity/bluetooth/core/bt-host/iso",
"//src/connectivity/bluetooth/core/bt-host/transport",
"//src/lib/ddk",
"//zircon/system/ulib/async:async-cpp",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/zx",
]
public_deps = [
"$dir_pw_bluetooth",
"//sdk/banjo/fuchsia.hardware.bt.hci:fuchsia.hardware.bt.hci_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.bt.vendor:fuchsia.hardware.bt.vendor_banjo_cpp",
"//zircon/system/ulib/async",
]
}
source_set("fidl_controller") {
sources = [
"fidl_controller.cc",
"fidl_controller.h",
]
deps = [
":helpers",
"//src/connectivity/bluetooth/core/bt-host/common",
"//src/connectivity/bluetooth/core/bt-host/iso",
"//src/connectivity/bluetooth/core/bt-host/transport",
"//src/lib/ddk",
"//zircon/system/ulib/async:async-cpp",
"//zircon/system/ulib/zx",
]
public_deps = [
"$dir_pw_bluetooth",
"//sdk/fidl/fuchsia.hardware.bluetooth:fuchsia.hardware.bluetooth_cpp",
"//sdk/fidl/fuchsia.hardware.bluetooth:fuchsia.hardware.bluetooth_hlcpp",
"//zircon/system/ulib/async",
]
}
source_set("tests") {
testonly = true
sources = [
"banjo_controller_test.cc",
"fidl_controller_test.cc",
]
deps = [
":controllers",
"//src/connectivity/bluetooth/core/bt-host/fidl:fake_hci_test_fixture",
"//src/connectivity/bluetooth/core/bt-host/testing",
"//src/connectivity/bluetooth/core/bt-host/testing:test_helpers",
"//src/devices/testing/mock-ddk",
"//src/lib/ddktl",
"//src/lib/testing/loop_fixture",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
bt_gtest_package("bt-host-controllers-tests") {
deps = [ ":tests" ]
}