blob: 09fdb7bdacefc2b4825202db9574631b64653740 [file]
# Copyright 2026 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("//src/developer/ffx/build/ffx_tool.gni")
if (is_host) {
bazel_ffx_tool("ffx_usb") {
output_name = "ffx-usb"
}
group("usb") {
public_deps = [
":ffx_usb",
":ffx_usb_host_tool",
]
}
group("bin") {
public_deps = [ ":ffx_usb_versioned" ]
}
}
group("tests") {
testonly = true
deps = [ ":lib_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")
if (is_host) {
rustc_library("lib") {
sources = [
"src/args.rs",
"src/diagnostics/mod.rs",
"src/lib.rs",
]
crate_name = "ffx_usb"
edition = "2024"
deps = [
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust_fdomain",
"//sdk/fidl/fuchsia.diagnostics.host:fuchsia.diagnostics.host_rust_fdomain",
"//sdk/fidl/fuchsia.hardware.usb.policy:fuchsia.hardware.usb.policy_rust_fdomain",
"//sdk/fidl/fuchsia.usb.policy:fuchsia.usb.policy_rust_fdomain",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/rcs:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/lib/fdomain/client",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
]
}
}
if (is_host) {
rustc_test("lib_test") {
sources = [
"src/args.rs",
"src/diagnostics/mod.rs",
"src/lib.rs",
]
edition = "2024"
deps = [
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust_fdomain",
"//sdk/fidl/fuchsia.diagnostics.host:fuchsia.diagnostics.host_rust_fdomain",
"//sdk/fidl/fuchsia.hardware.usb.policy:fuchsia.hardware.usb.policy_rust_fdomain",
"//sdk/fidl/fuchsia.usb.policy:fuchsia.usb.policy_rust_fdomain",
"//src/developer/ffx/lib/fho:lib",
"//src/developer/ffx/lib/rcs:lib",
"//src/developer/ffx/lib/target/holders:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/lib/fdomain/client",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
]
output_name = "ffx_usb_lib_test"
visibility = [
":*",
"//src/developer/ffx:*",
]
}
}