blob: 42063dcbe75b1cfae9fd18e5134eeb1745d19425 [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/config/fuchsia/rules.gni")
bind_rules("bt_hci_passthrough_bind") {
rules = "bt_hci_passthrough.bind"
output = "bt_hci_passthrough_bind.h"
tests = "bind-tests.json"
deps = [ "//src/devices/bind/fuchsia.bluetooth" ]
}
driver_module("driver") {
output_name = "bt-hci-passthrough"
sources = [ "passthrough.c" ]
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_c",
"//src/devices/lib/driver",
"//src/lib/ddk",
"//zircon/public/lib/fidl",
"//zircon/public/lib/zx",
]
configs += [ "//build/config/fuchsia:enable_zircon_asserts" ]
}
fuchsia_system_package("passthrough") {
deps = [ ":driver" ]
# This package is reachable from //garnet/packages/prod:all
allowed_in_extra_deps = true
}
group("tests") {
testonly = true
deps = [ ":bt_hci_passthrough_bind_test" ]
}