blob: 2c5a57b65997f245e39e66521ee178ff18f9a19e [file] [log] [blame]
# Copyright 2021 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")
group("event_pair") {
testonly = true
deps = [
":bin",
":bin($host_toolchain)",
"service",
]
}
rustc_binary("bin") {
name = "overnet_event_pair"
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.overnet:fuchsia.overnet-rustc",
"//src/connectivity/overnet/examples/event_pair/service:event_pair-rustc",
"//src/connectivity/overnet/lib/hoist",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/testing/fidl:placeholders-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:futures",
]
non_rust_deps = [ "//third_party/boringssl" ]
sources = [ "src/main.rs" ]
}
fuchsia_component("test-driver") {
component_name = "overnet-event-pair-test-driver"
deps = [ ":bin" ]
manifest = "meta/test-driver.cml"
}
fuchsia_component("server") {
component_name = "overnet-event-pair-server"
deps = [ ":bin" ]
manifest = "meta/server.cml"
}