blob: d372a325726ab9f04f3bc4930f58c26bf1cc3b9b [file]
# Copyright 2020 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.
## 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")
rustc_library("ffx_component") {
sources = []
sources += [
"src/format.rs",
"src/lib.rs",
"src/rcs.rs",
]
if (is_host) {
sources += [ "src/server.rs" ]
}
edition = "2024"
visibility = [
":*",
"//src/developer/ffx/*",
]
deps = []
deps += [
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust_fdomain",
"//src/developer/ffx/lib/errors:lib",
"//src/lib/fuchsia-url",
"//src/sys/lib/component_debug:component_debug_fdomain",
"//src/sys/lib/moniker",
"//third_party/rust_crates:anyhow",
]
if (is_host) {
deps += [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain",
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust_fdomain",
"//src/developer/ffx/lib/pkg",
"//src/developer/ffx/lib/rcs:lib",
"//src/lib/fdomain/client",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
]
}
}
if (is_host) {
rustc_test("ffx_component_test") {
sources = []
sources += [
"src/format.rs",
"src/lib.rs",
"src/rcs.rs",
]
if (is_host) {
sources += [ "src/server.rs" ]
}
edition = "2024"
deps = []
deps += [
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust_fdomain",
"//src/developer/ffx/lib/errors:lib",
"//src/lib/fuchsia-url",
"//src/sys/lib/component_debug:component_debug_fdomain",
"//src/sys/lib/moniker",
"//third_party/rust_crates:anyhow",
]
if (is_host) {
deps += [
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust_fdomain",
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust_fdomain",
"//src/developer/ffx/lib/pkg",
"//src/developer/ffx/lib/rcs:lib",
"//src/lib/fdomain/client",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
]
}
deps += [
"//src/developer/ffx/lib/target/holders:lib",
"//src/lib/fdomain/local",
]
visibility = [
":*",
"//src/developer/ffx:*",
"//src/developer/ffx/plugins/component:*",
]
}
}