blob: 4b381e1d7a2430438e2fc65ef90bb7b366e5fb65 [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.
assert(is_host, "ffx_fastboot is for use with the host toolchain only")
group("fastboot") {
public_deps = [ ":lib" ]
}
group("tests") {
testonly = true
deps = [
":lib_test",
"./connection_factory:tests",
"./flash_manifest:tests",
"./transport/factory:tests",
"./transport/interface:tests",
]
}
## 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")
if (is_host) {
rustc_library("lib") {
sources = [
"src/boot/mod.rs",
"src/common/caching.rs",
"src/common/crypto.rs",
"src/common/mod.rs",
"src/common/vars.rs",
"src/error.rs",
"src/file_resolver/mod.rs",
"src/file_resolver/resolvers.rs",
"src/info/mod.rs",
"src/lib.rs",
"src/lock/mod.rs",
"src/manifest/mod.rs",
"src/manifest/resolvers.rs",
"src/manifest/v1.rs",
"src/manifest/v2.rs",
"src/manifest/v3.rs",
"src/manifest/v4.rs",
"src/unlock/mod.rs",
"src/util.rs",
]
crate_name = "ffx_fastboot"
edition = "2024"
visibility = [
":*",
"//src/developer/ffx/lib/diagnostics/checks:*",
"//src/developer/ffx/lib/fastboot/connection_factory:*",
"//src/developer/ffx/plugins/product/create:*",
"//src/developer/ffx/plugins/target/bootloader:*",
"//src/developer/ffx/plugins/target/fastboot:*",
"//src/developer/ffx/plugins/target/flash:*",
]
deps = [
"//src/developer/fastboot:lib",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/fastboot/flash_manifest:lib",
"//src/developer/ffx/lib/fastboot/interface:lib",
"//src/developer/ffx/lib/futures:lib",
"//src/developer/ffx/lib/pbms:lib",
"//src/developer/ffx/lib/sdk:lib",
"//src/lib/assembly/partitions_config",
"//src/lib/assembly/product_bundle",
"//src/storage/lib/sparse/rust:lib",
"//third_party/rust_crates:async-fs",
"//third_party/rust_crates:base64",
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:camino",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:flate2",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:ring",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:tar",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tokio",
"//third_party/rust_crates:walkdir",
"//third_party/rust_crates:zerocopy",
"//third_party/rust_crates:zip",
]
}
}
if (is_host) {
rustc_test("lib_test") {
sources = [
"src/boot/mod.rs",
"src/common/caching.rs",
"src/common/crypto.rs",
"src/common/mod.rs",
"src/common/vars.rs",
"src/error.rs",
"src/file_resolver/mod.rs",
"src/file_resolver/resolvers.rs",
"src/info/mod.rs",
"src/lib.rs",
"src/lock/mod.rs",
"src/manifest/mod.rs",
"src/manifest/resolvers.rs",
"src/manifest/v1.rs",
"src/manifest/v2.rs",
"src/manifest/v3.rs",
"src/manifest/v4.rs",
"src/unlock/mod.rs",
"src/util.rs",
]
edition = "2024"
deps = [
"//src/developer/fastboot:lib",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/fastboot/flash_manifest:lib",
"//src/developer/ffx/lib/fastboot/interface:lib",
"//src/developer/ffx/lib/futures:lib",
"//src/developer/ffx/lib/pbms:lib",
"//src/developer/ffx/lib/sdk:lib",
"//src/lib/assembly/partitions_config",
"//src/lib/assembly/product_bundle",
"//src/storage/lib/sparse/rust:lib",
"//third_party/rust_crates:async-fs",
"//third_party/rust_crates:base64",
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:camino",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:flate2",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:ring",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:tar",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tokio",
"//third_party/rust_crates:walkdir",
"//third_party/rust_crates:zerocopy",
"//third_party/rust_crates:zip",
] +
[
"//src/lib/assembly/partitions_config",
"//src/lib/fuchsia",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:serde_json",
]
output_name = "ffx_fastboot_lib_test"
visibility = [
":*",
"//src/developer/ffx/*",
]
}
}