blob: 06992c98e3fedf2d52a6f4b8b23c55b542e63c42 [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/rust/rustc_binary.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_binary("bin") {
name = "debug_serial"
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.boot:fuchsia.boot-rustc",
"//sdk/fidl/fuchsia.hardware.serial:fuchsia.hardware.serial-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/main.rs" ]
}
package("debug-serial") {
deps = [ ":bin" ]
binaries = [
{
name = "debug_serial"
},
]
meta = [
{
path = rebase_path("meta/debug-serial.cml")
dest = "debug-serial.cm"
},
]
}
test_package("debug-serial-tests") {
deps = [ ":bin_test" ]
tests = [
{
name = "debug_serial_bin_test"
environments = basic_envs
},
]
}
group("tests") {
testonly = true
public_deps = [ ":debug-serial-tests" ]
}