blob: 61baec20a74083fded28bc68c5c9b6d7f6c38a62 [file]
# Copyright 2025 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")
# Kept in GN because `group("console")` is referenced by
# `//src/developer:developer`,
# `//bundles/assembly/bazel_inputs/src/developer/console:package` exports it,
# and `:launcher_bin` transitively depends on `rustc_dylib`
# `//src/storage/lib/vfs/rust:vfs`.
fuchsia_package("package") {
package_name = "developer-console"
deps = [ ":component" ]
}
group("console") {
deps = [ ":package" ]
}
group("tests") {
testonly = true
deps = [ "test:developer-console-integration-test" ]
}
## 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_binary("launcher_bin") {
sources = [
"src/error.rs",
"src/io.rs",
"src/main.rs",
"src/namespace.rs",
"src/process.rs",
"src/program.rs",
"src/util.rs",
]
output_name = "developer-console"
configs += [
"//build/config/rust:bootfs",
"//build/config/rust/lints:deny_unused_results",
]
edition = "2024"
lint_config = "//build/config/rust/lints:clippy_warn_all"
deps = [
"//sdk/fidl/fuchsia.component.runner:fuchsia.component.runner_rust",
"//sdk/fidl/fuchsia.developer.console:fuchsia.developer.console_rust",
"//sdk/fidl/fuchsia.device:fuchsia.device_rust",
"//sdk/fidl/fuchsia.hardware.pty:fuchsia.hardware.pty_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.process:fuchsia.process_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-runtime",
"//src/sys/lib/library_loader",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:thiserror",
]
}
fuchsia_component_manifest("manifest") {
component_name = "developer-console"
manifest = "meta/developer-console.cml"
}
fuchsia_component("component") {
cm_label = ":manifest"
visibility = [
":*",
"//src/developer/console/test:*",
]
deps = [ ":launcher_bin" ]
}