blob: 5184d980d1458f1cebb52c2d1adb8ecbd7fa27e7 [file] [log] [blame]
# Copyright 2017 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/bind/bind.gni")
import("//build/components.gni")
import("//build/drivers.gni")
driver_bind_rules("bt_hci_passthrough_bind") {
rules = "bt_hci_passthrough.bind"
tests = "bind-tests.json"
deps = [ "//src/devices/bind/fuchsia.bluetooth" ]
}
fuchsia_driver("fuchsia_driver") {
output_name = "bt-hci-passthrough"
sources = [ "passthrough.cc" ]
deps = [
":bt_hci_passthrough_bind",
"//sdk/banjo/fuchsia.hardware.bt.hci:fuchsia.hardware.bt.hci_banjo_cpp",
"//sdk/fidl/fuchsia.hardware.bluetooth:fuchsia.hardware.bluetooth_cpp",
"//sdk/lib/fidl",
"//src/devices/lib/driver",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/system/ulib/zx",
]
configs += [ "//build/config/fuchsia:enable_zircon_asserts" ]
}
fuchsia_driver_component("driver") {
component_name = "bt-hci-passthrough"
deps = [ ":fuchsia_driver" ]
info = "driver-info.json"
manifest = "meta/driver.cml"
}
fuchsia_driver_package("passthrough") {
driver_components = [ ":driver" ]
# This package is reachable from //bundles/packages/prod:all
}
group("tests") {
testonly = true
deps = [ ":bt_hci_passthrough_bind_test" ]
}