blob: 070e3f47c38387a955ee7b7d1dd0bf382d24d105 [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")
rustc_binary("gsctool") {
edition = "2021"
with_unit_tests = true
configs += [ "//build/config/rust:bootfs" ]
deps = [
"//sdk/fidl/fuchsia.tpm.cr50:fuchsia.tpm.cr50-rustc",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-runtime",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:futures",
]
sources = [ "src/main.rs" ]
}
fuchsia_unittest_package("gsctool-unittests") {
deps = [ ":gsctool_test" ]
}
group("tests") {
testonly = true
deps = [ ":gsctool-unittests" ]
}