blob: 4fb41421138b3b1f9f0676e36014ab9f3f2c44ba [file]
# Copyright 2018 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/bazel/bazel_test_suite.gni")
import("//build/dist/resource.gni")
# These are some extra files that are included in the test package under
# lib/config_test, for use in the config_test unit test. This is necessary
# because the library loader must be able to load the files using
# OPEN_RIGHT_EXECUTABLE/VMO_FLAG_EXEC, and the easiest way to provide a test
# directory that supports that is a real pkgfs directory.
# TODO(https://fxbug.dev/42061196): Replace this with a pseudo-directory backed by the Rust VFS.
resource("config_test_foo") {
sources = [ "config_test_files/foo" ]
outputs = [ "lib/config_test/foo" ]
}
resource("config_test_bar_baz") {
sources = [ "config_test_files/bar/baz" ]
outputs = [ "lib/config_test/bar/baz" ]
}
bazel_test_suite("library_loader_tests") {
target_tests = [ "//src/sys/lib/library_loader:library_loader_tests" ]
}
group("tests") {
testonly = true
deps = [ ":library_loader_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")
rustc_library("library_loader") {
sources = [ "src/lib.rs" ]
edition = "2024"
visibility = [
":*",
"//src/developer/console:*",
"//src/devices/bin/driver_manager_rust:*",
"//src/sys/lib/elf_runner:*",
"//src/sys/lib/runner:*",
"//src/sys/lib/task-exceptions:*",
"//src/sys/process-resolver:*",
"//src/sys/runners/dso:*",
"//src/sys/test_runners/*",
]
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//sdk/fidl/fuchsia.ldsvc:fuchsia.ldsvc_rust",
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
}