blob: 5747f9390d8cf283a925d1c816a213e27b857a3c [file] [log] [blame]
# Copyright 2018 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/config/fuchsia/rules.gni")
import("//build/driver_package.gni")
driver_module("driver") {
output_name = "bt-hci-emulator"
testonly = true
sources = [
"device.cc",
"device.h",
"driver.cc",
"log.h",
"peer.cc",
"peer.h",
]
deps = [
"//sdk/banjo/ddk.protocol.test",
"//sdk/fidl/fuchsia.bluetooth.test",
"//sdk/fidl/fuchsia.hardware.bluetooth:fuchsia.hardware.bluetooth_c_client",
"//src/connectivity/bluetooth/core/bt-host:fidl_helpers",
"//src/connectivity/bluetooth/core/bt-host/hci",
"//src/connectivity/bluetooth/core/bt-host/testing:fake_controller",
"//src/connectivity/bluetooth/lib/fidl",
"//src/devices/lib/driver",
"//src/lib/ddk",
"//zircon/public/lib/async-cpp",
"//zircon/public/lib/fbl",
"//zircon/public/lib/sync",
"//zircon/public/lib/zx",
"//zircon/system/ulib/async-default",
]
configs -= [ "//build/config/fuchsia:no_cpp_standard_library" ]
configs += [ "//build/config/fuchsia:static_cpp_standard_library" ]
}
driver_package("emulator") {
testonly = true
deps = [ ":driver" ]
drivers = [
{
name = "bt-hci-emulator.so"
},
]
}