blob: bb304c7bbdd3f19121d048a5fdeeea9757295592 [file]
# Copyright 2026 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.
load("//build/bazel/rules/idk:idk_ffx_tool.bzl", "idk_ffx_tool")
load("//src/developer/ffx/build:ffx_plugin.bzl", "ffx_plugin")
package(default_applicable_licenses = ["//:license"])
ffx_plugin(
name = "ffx_product_bundle",
args_deps = [
"//src/developer/ffx/core:lib",
"//third_party/rust_crates/vendor:argh",
],
args_srcs = ["src/args.rs"],
edition = "2024",
plugin_deps = [
"//src/developer/ffx/plugins/product_bundle/bisect:ffx_product_bundle_bisect",
"//src/developer/ffx/plugins/product_bundle/create:ffx_product_bundle_create",
],
sdk_category = "partner",
version = "0.1.0",
visibility = ["//src/developer/ffx/frontends/ffx:__pkg__"],
)
# LINT.IfChange(ffx_product_bundle_tool)
# When used in the build, this separate subtool version is used to avoid
# its build steps depending on all of ffx.
# Avoid instrumenting this target as it has a large negative impact on
# performance.
# TODO(https://fxbug.dev/576944236): Disable instrumentation (asan, coverage,
# profile) for this tool once Rust rules support it in Bazel.
idk_ffx_tool(
name = "ffx_product_bundle_tool",
srcs = ["src/main.rs"],
category = "partner",
edition = "2024",
idk_name = "ffx-product-bundle",
visibility = ["//:__subpackages__"],
deps = [
":ffx_product_bundle_suite",
"//src/lib/fuchsia-async",
],
)
# LINT.ThenChange(//src/developer/ffx/plugins/product_bundle/BUILD.gn:ffx_product_bundle_tool)