blob: aa4ddf6704547f928ca54388cea5ada91fef030f [file] [log] [blame]
# Copyright 2020 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/config/fuchsia/rules.gni")
import("//build/driver_package.gni")
bind_rules("fake_ot_radio_bind") {
rules = "fake-ot-radio.bind"
output = "fake_ot_radio_bind.h"
tests = "bind-tests.json"
deps = [ "//src/devices/bind/test.platform" ]
}
driver_package("fake-ot-radio") {
testonly = true
deps = [ ":fake-ot-radio-driver" ]
drivers = [
{
name = "fake-ot-radio.so"
},
]
}
driver_module("fake-ot-radio-driver") {
output_name = "fake-ot-radio"
testonly = true
sources = [
"fake-ot-radio.cc",
"fake-ot-radio.h",
]
deps = [
":fake_ot_radio_bind",
"//sdk/fidl/fuchsia.lowpan.spinel:fuchsia.lowpan.spinel_llcpp",
"//src/devices/lib/driver",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/public/lib/async-cpp",
"//zircon/public/lib/fbl",
"//zircon/public/lib/sync",
"//zircon/public/lib/zircon-internal",
"//zircon/public/lib/zx",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fidl-async:fidl-async-cpp",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
group("tests") {
testonly = true
deps = [ ":fake_ot_radio_bind_test" ]
}