blob: eb9f06002f2223b4f1b277eaaf88587b11467cc3 [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/components.gni")
import("//build/rust/rustc_binary.gni")
rustc_binary("bin") {
output_name = "lowpan_dummy_driver"
with_unit_tests = true
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.factory.lowpan:fuchsia.factory.lowpan_rust",
"//sdk/fidl/fuchsia.lowpan.driver:fuchsia.lowpan.driver_rust",
"//src/connectivity/lowpan/lib/lowpan_driver_common",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:tracing",
]
sources = [ "src/main.rs" ]
}
fuchsia_component("lowpan-dummy-driver-cmp") {
component_name = "lowpan-dummy-driver"
deps = [ ":bin" ]
manifest = "meta/lowpan-dummy-driver.cml"
}
fuchsia_package("lowpan-dummy-driver") {
deps = [ ":lowpan-dummy-driver-cmp" ]
}
fuchsia_unittest_package("lowpan-dummy-driver-test") {
deps = [ ":bin_test" ]
}
group("tests") {
testonly = true
deps = [ ":lowpan-dummy-driver-test" ]
}