blob: 72496ca1ec275b43611d862f83f0afeb9ef8ce24 [file]
# 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.
group("tests") {
testonly = true
deps = [
":ffx_bootloader_args_test($host_toolchain)",
":ffx_bootloader_test($host_toolchain)",
]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
ffx_plugin("ffx_bootloader") {
sources = [ "src/lib.rs" ]
args_deps = [
"//src/developer/ffx/core:lib",
"//src/developer/ffx/lib/fastboot/flash_manifest:lib",
"//third_party/rust_crates:argh",
]
args_sources = [ "src/args.rs" ]
edition = "2024"
sdk_category = "not-yet-specified"
visibility = [
":*",
"//src/developer/ffx/plugins/target:*",
]
deps = [
"//sdk/fidl/fuchsia.hardware.power.statecontrol:fuchsia.hardware.power.statecontrol_rust_fdomain",
"//sdk/fidl/fuchsia.hwinfo:fuchsia.hwinfo_rust_fdomain",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/discovery:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/fastboot:lib",
"//src/developer/ffx/lib/fastboot/connection_factory:lib",
"//src/developer/ffx/lib/fastboot/interface:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/target:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/lib/fidl/rust/fidl",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:blocking",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:schemars",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:termion",
"//third_party/rust_crates:tokio",
]
}
if (is_host) {
rustc_test("ffx_bootloader_args_test") {
sources = [ "src/args.rs" ]
edition = "2024"
source_root = "src/args.rs"
deps = [
"//src/developer/ffx/core:lib",
"//src/developer/ffx/lib/fastboot/flash_manifest:lib",
"//third_party/rust_crates:argh",
]
}
}
if (is_host) {
rustc_test("ffx_bootloader_test") {
sources = [ "src/lib.rs" ]
edition = "2024"
deps = [
":ffx_bootloader_args",
"//sdk/fidl/fuchsia.hardware.power.statecontrol:fuchsia.hardware.power.statecontrol_rust_fdomain",
"//sdk/fidl/fuchsia.hwinfo:fuchsia.hwinfo_rust_fdomain",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/discovery:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/fastboot:lib",
"//src/developer/ffx/lib/fastboot/connection_factory:lib",
"//src/developer/ffx/lib/fastboot/interface:lib",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/target:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/lib/fidl/rust/fidl",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:blocking",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:schemars",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:termion",
"//third_party/rust_crates:tokio",
] +
[
"//src/lib/fuchsia",
"//third_party/rust_crates:tempfile",
]
}
}