blob: ebcf0cd4b8ba94a8987f3003d2424c8beed76ccf [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/hci",
"//src/connectivity/bluetooth/core/bt-host/testing:fake_controller",
"//src/connectivity/bluetooth/lib/fidl",
"//src/devices/lib/driver",
"//zircon/public/lib/async-cpp",
"//zircon/public/lib/async-default",
"//zircon/public/lib/ddk",
"//zircon/public/lib/fbl",
"//zircon/public/lib/sync",
"//zircon/public/lib/zx",
]
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"
},
]
}