blob: a04352f977a0cd4513ef72db4b3a0ec3eb53a5f4 [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/components.gni")
import("//build/rust/rustc_binary.gni")
if (is_host) {
rustc_binary("minfs-fsck-host") {
output_name = "minfs_fsck_host"
testonly = true
edition = "2018"
deps = [
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:structopt",
"//tools/blackout/blackout-host",
]
source_root = "src/host.rs"
sources = [ "src/host.rs" ]
}
}
rustc_binary("minfs-fsck-target-bin") {
output_name = "minfs_fsck_target_bin"
testonly = true
edition = "2018"
deps = [
"//src/lib/storage/fs_management/rust:fs_management",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:rand",
"//third_party/rust_crates:structopt",
"//tools/blackout/blackout-target",
]
source_root = "src/target.rs"
sources = [ "src/target.rs" ]
}
fuchsia_package_with_single_component("minfs-fsck-target") {
testonly = true
component_name = "minfs_fsck_target"
manifest = "meta/minfs_fsck_target.cmx"
deps = [
":minfs-fsck-target-bin",
"//src/storage/bin/minfs",
]
}
group("minfs-fsck") {
testonly = true
public_deps = [
":minfs-fsck-host($host_toolchain)",
":minfs-fsck-target",
]
}