| # Copyright 2019 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") { |
| name = "lowpanctl" |
| edition = "2021" |
| with_unit_tests = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.factory.lowpan:fuchsia.factory.lowpan_rust", |
| "//sdk/fidl/fuchsia.lowpan:fuchsia.lowpan_rust", |
| "//sdk/fidl/fuchsia.lowpan.device:fuchsia.lowpan.device_rust", |
| "//sdk/fidl/fuchsia.lowpan.experimental:fuchsia.lowpan.experimental_rust", |
| "//sdk/fidl/fuchsia.lowpan.test:fuchsia.lowpan.test_rust", |
| "//sdk/fidl/fuchsia.lowpan.thread:fuchsia.lowpan.thread_rust", |
| "//sdk/fidl/fuchsia.net:fuchsia.net_rust", |
| "//src/connectivity/lowpan/lib/openthread_rust", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:argh", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:hex", |
| "//third_party/rust_crates:rustyline", |
| ] |
| |
| sources = [ |
| "src/attach_all_nodes_to_command.rs", |
| "src/context.rs", |
| "src/dataset_command.rs", |
| "src/energy_scan_command.rs", |
| "src/form_command.rs", |
| "src/get_counters_command.rs", |
| "src/get_credential.rs", |
| "src/get_external_routes_command.rs", |
| "src/get_mac_filter_settings_command.rs", |
| "src/get_neighbor_table_command.rs", |
| "src/get_on_mesh_nets_command.rs", |
| "src/get_supported_channels.rs", |
| "src/get_supported_network_types.rs", |
| "src/invocation.rs", |
| "src/join_command.rs", |
| "src/leave_command.rs", |
| "src/list_command.rs", |
| "src/main.rs", |
| "src/make_joinable_command.rs", |
| "src/mfg_command.rs", |
| "src/network_scan_command.rs", |
| "src/otcli_command.rs", |
| "src/provision_command.rs", |
| "src/register_external_route_command.rs", |
| "src/register_on_mesh_net_command.rs", |
| "src/repeat_command.rs", |
| "src/replace_mac_filter_settings_command.rs", |
| "src/reset_command.rs", |
| "src/set_active_comamnd.rs", |
| "src/status_command.rs", |
| "src/unregister_external_route_command.rs", |
| "src/unregister_on_mesh_net_command.rs", |
| ] |
| } |
| |
| fuchsia_package("lowpanctl") { |
| deps = [ ":bin" ] |
| } |
| |
| fuchsia_unittest_package("lowpanctl-unittests") { |
| deps = [ ":bin_test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":lowpanctl-unittests", |
| "test", |
| ] |
| } |