blob: d2ba33be940287b85e23d5fe1ca55ba7304ddb6c [file] [log] [blame]
# 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/package.gni")
import("//build/rust/rustc_binary.gni")
import("//build/rust/rustc_library.gni")
import("//build/rust/rustc_test.gni")
import("//build/test/test_package.gni")
import("//build/testing/test_spec.gni")
group("runner") {
public_deps = [ ":bin" ]
}
group("tests") {
testonly = true
deps = [ ":remote-control-runner-tests" ]
}
rustc_binary("bin") {
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" ]
}
test_package("remote-control-runner-tests") {
deps = [ ":bin_test" ]
tests = [
{
name = "remote_control_runner_bin_test"
},
]
}