blob: 1c31caff4d40c0af7b2dd9ac47ee1aa32a444a54 [file] [log] [blame]
# Copyright 2018 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")
rustc_binary("virtio_block_test_util") {
name = "virtio_block_test_util"
edition = "2021"
configs += [ "//src/virtualization/tests:guest_test_util" ]
if (is_fuchsia) {
deps = [
"//sdk/fidl/fuchsia.hardware.block:fuchsia.hardware.block_rust",
"//sdk/lib/device-watcher/rust",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//src/lib/storage/block_client/rust:remote-block-device",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:structopt",
]
source_root = "src/fuchsia_main.rs"
sources = [ "src/fuchsia_main.rs" ]
} else if (is_linux) {
deps = [
"//third_party/rust_crates:libc",
"//third_party/rust_crates:structopt",
]
source_root = "src/linux_main.rs"
sources = [ "src/linux_main.rs" ]
}
}