blob: d862ea541c7f5f22b2ec22d9dfe449a334d8962f [file]
# Copyright 2021 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/testing/host_test_data.gni")
assert(is_host, "pkg is for use with the host toolchain only")
relative_root_out_dir = rebase_path(root_out_dir, root_build_dir)
host_test_data("empty-repo-keys") {
sources = [
"//src/sys/pkg/tests/pkg-resolver/template/keys/root.json",
"//src/sys/pkg/tests/pkg-resolver/template/keys/snapshot.json",
"//src/sys/pkg/tests/pkg-resolver/template/keys/targets.json",
"//src/sys/pkg/tests/pkg-resolver/template/keys/timestamp.json",
]
outputs = [
"$root_out_dir/test_data/ffx_lib_pkg/empty-repo/keys/{{source_file_part}}",
]
}
host_test_data("empty-repo-metadata") {
sources = [
"//src/sys/pkg/tests/pkg-resolver/template/repository/1.root.json",
"//src/sys/pkg/tests/pkg-resolver/template/repository/1.snapshot.json",
"//src/sys/pkg/tests/pkg-resolver/template/repository/1.targets.json",
"//src/sys/pkg/tests/pkg-resolver/template/repository/root.json",
"//src/sys/pkg/tests/pkg-resolver/template/repository/snapshot.json",
"//src/sys/pkg/tests/pkg-resolver/template/repository/targets.json",
"//src/sys/pkg/tests/pkg-resolver/template/repository/timestamp.json",
]
outputs = [ "$root_out_dir/test_data/ffx_lib_pkg/empty-repo/repository/{{source_file_part}}" ]
}
## 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("pkg") {
sources = [
"src/config.rs",
"src/instance.rs",
"src/lib.rs",
"src/repo.rs",
]
features = [ "fdomain" ]
edition = "2024"
rustenv = [ "ROOT_OUT_DIR=$relative_root_out_dir" ]
visibility = [
":*",
"//src/developer/ffx/*",
]
deps = [
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust_fdomain_flex",
"//sdk/fidl/fuchsia.pkg.rewrite:fuchsia.pkg.rewrite_rust_fdomain_flex",
"//sdk/rust/zx-status",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/process:lib",
"//src/developer/ffx/lib/target_net:lib",
"//src/developer/ffx/lib/timeout:lib",
"//src/lib/fdomain/client:flex_fdomain",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-hyper",
"//src/lib/fuchsia-url",
"//src/sys/lib/fidl-fuchsia-pkg-ext",
"//src/sys/lib/fidl-fuchsia-pkg-rewrite-ext:fidl-fuchsia-pkg-rewrite-ext_fdomain",
"//src/sys/pkg/lib/fuchsia-repo",
"//third_party/rust_crates:async-lock",
"//third_party/rust_crates:camino",
"//third_party/rust_crates:http",
"//third_party/rust_crates:log",
"//third_party/rust_crates:nix",
"//third_party/rust_crates:schemars",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tuf",
"//third_party/rust_crates:url",
]
}
}
if (is_host) {
group("pkg_fdomain") {
public_deps = [ ":pkg" ]
visibility = [
":*",
"//src/developer/ffx/*",
]
}
}