| # 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/components.gni") | |
| import("//build/dist/renamed_binary.gni") | |
| # Copy the multi_universal_tool as 'bin/pkgctl' as required | |
| # by the pkgctl package below. Note that the package must | |
| # still depend on //src/sys/pkg/bin/multi-universal-tool to | |
| # ensure its runtime dependencies are properly installed. | |
| renamed_binary("pkgctl-binary") { | |
| source = "$root_out_dir/multi_universal_tool" | |
| source_deps = [ "//src/sys/pkg/bin/multi-universal-tool" ] | |
| dest = "bin/pkgctl" | |
| } | |
| fuchsia_package("pkgctl") { | |
| deps = [ ":pkgctl-binary" ] | |
| } | |
| bazel_test_suite("pkgctl-tests") { | |
| target_tests = [ "//src/sys/pkg/bin/pkgctl:pkgctl-tests" ] | |
| } | |
| group("hermetic_tests") { | |
| testonly = true | |
| deps = [ ":pkgctl-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("lib") { | |
| sources = [ | |
| "src/args.rs", | |
| "src/main.rs", | |
| ] | |
| crate_name = "pkgctl" | |
| source_root = "src/main.rs" | |
| edition = "2024" | |
| lint_config = "//build/config/rust/lints:clippy_warn_all" | |
| visibility = [ | |
| ":*", | |
| "//src/sys/pkg/bin/multi-universal-tool:*", | |
| ] | |
| deps = [ | |
| "//sdk/fidl/fuchsia.pkg:fuchsia.pkg_rust", | |
| "//sdk/fidl/fuchsia.pkg.garbagecollector:fuchsia.pkg.garbagecollector_rust", | |
| "//sdk/fidl/fuchsia.pkg.rewrite:fuchsia.pkg.rewrite_rust", | |
| "//sdk/rust/zx", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/fuchsia-component", | |
| "//src/lib/fuchsia-fs", | |
| "//src/lib/fuchsia-url", | |
| "//src/sys/lib/fidl-fuchsia-pkg-ext", | |
| "//src/sys/lib/fidl-fuchsia-pkg-rewrite-ext", | |
| "//src/sys/pkg/lib/fetch-url", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:argh", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:serde_json", | |
| ] | |
| } |