blob: a807b7e108d943e555de289d2ddcea9e700d0c41 [file] [log] [blame]
# 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("//src/developer/ffx/build/ffx_plugin.gni")
import("//src/developer/ffx/build/ffx_tool.gni")
ffx_plugin("ffx_package") {
sdk_category = "partner"
version = "0.1.0"
edition = "2021"
with_unit_tests = true
plugin_deps = [
"archive:ffx_package_archive",
"blob:ffx_package_blob",
"build:ffx_package_build",
"far:ffx_package_far",
"file-hash:ffx_package_file_hash",
]
args_sources = [ "src/args.rs" ]
args_deps = [
"//src/developer/ffx/core:lib",
"//third_party/rust_crates:argh",
]
}
group("tests") {
testonly = true
deps = [
":ffx_package_tests($host_toolchain)",
"archive:tests",
]
}
ffx_tool("ffx_package_tool") {
edition = "2021"
output_name = "ffx-package"
deps = [
":ffx_package_suite",
"//src/lib/fuchsia-async",
]
sources = [ "src/main.rs" ]
sdk_target_name = "sdk"
sdk_category = "partner"
}
group("package") {
public_deps = [
":ffx_package_tool",
":ffx_package_tool_host_tool",
]
}
group("bin") {
public_deps = [ ":ffx_package_tool_versioned" ]
}