blob: 75d3ece9294a2b62e298121a2954691642b2401e [file]
# Copyright 2022 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")
fuchsia_package("process-resolver") {
visibility = [
":*",
"//bundles/assembly/*",
]
deps = [ ":component" ]
}
group("tests") {
testonly = true
deps = [ ":process-resolver-unittests" ]
}
## 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("bin") {
sources = [
"src/main.rs",
"src/resolve/mod.rs",
"src/resolve/serve.rs",
]
configs += [ "//build/config/rust:bootfs" ]
output_name = "process_resolver"
edition = "2024"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.ldsvc:fuchsia.ldsvc_rust",
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust",
"//sdk/fidl/fuchsia.process:fuchsia.process_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-url",
"//src/sys/lib/library_loader",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
}
fuchsia_component_manifest("component-manifest") {
component_name = "process_resolver"
manifest = "meta/process_resolver.cml"
}
fuchsia_component("component") {
cm_label = ":component-manifest"
deps = [ ":bin" ]
}
if (is_fuchsia) {
rustc_test("process_resolver_bin_test") {
sources = [
"src/main.rs",
"src/resolve/mod.rs",
"src/resolve/serve.rs",
]
edition = "2024"
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.ldsvc:fuchsia.ldsvc_rust",
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust",
"//sdk/fidl/fuchsia.process:fuchsia.process_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//src/lib/fuchsia-url",
"//src/sys/lib/library_loader",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
] + [ "//src/lib/fuchsia-async" ]
source_root = "src/main.rs"
configs += [ "//build/config/rust:bootfs" ]
}
}
fuchsia_unittest_package("process-resolver-unittests") {
package_name = "process-resolver-unittests-gn"
component_name = "process-resolver-unittests"
deps = [ ":process_resolver_bin_test" ]
visibility = [
":*",
"//src/sys:*",
]
}