| # 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/config.gni") | |
| import("//build/rust/rustc_binary.gni") | |
| import("//build/rust/rustc_library.gni") | |
| import("//build/rust/rustc_test.gni") | |
| import("//build/testing/test_spec.gni") | |
| import("//src/sys/build/components.gni") | |
| group("runner") { | |
| public_deps = [ ":bin" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":remote-control-runner-tests" ] | |
| } | |
| rustc_binary("bin") { | |
| output_name = "remote_control_runner" | |
| edition = "2018" | |
| with_unit_tests = true | |
| deps = [ | |
| "//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol-rustc", | |
| "//sdk/fidl/fuchsia.overnet:fuchsia.overnet-rustc", | |
| "//sdk/fidl/fuchsia.overnet.protocol:fuchsia.overnet.protocol-rustc", | |
| "//src/connectivity/overnet/lib/hoist", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/fuchsia-component", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:log", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| sources = [ "src/main.rs" ] | |
| } | |
| fuchsia_unittest_package("remote-control-runner-tests") { | |
| deps = [ ":bin_test" ] | |
| } |