blob: 6a6e44adf9a96f474147d6194c19a437ce2d2e5b [file]
# 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("//build/sdk/sdk_atom.gni")
import("//src/developer/ffx/build/ffx_tool.gni")
assert(is_host, "bazel_ffx_tool() can only be called in a host toolchain.")
# LINT.IfChange(ffx_fuzz_tool)
bazel_ffx_tool("ffx_fuzz_tool") {
output_name = "ffx-fuzz"
sdk_category = "partner"
}
# LINT.ThenChange(//src/developer/ffx/plugins/fuzz/BUILD.bazel:ffx_fuzz_tool)
group("fuzz") {
public_deps = [
":ffx_fuzz_tool",
":ffx_fuzz_tool_host_tool",
]
}
group("bin") {
public_deps = [ ":ffx_fuzz_tool_versioned" ]
}
# TODO(https://fxbug.dev/438572714): Remove once the IDK uses the Bazel atom.
_idk_path = "tools/$current_cpu/ffx_tools/ffx-fuzz"
sdk_atom("sdk") {
category = "partner"
sdk_area = "Developer"
id = "sdk://$_idk_path"
idk_name = "ffx-fuzz"
meta = {
dest = "$_idk_path-meta.json"
type = "ffx_tool"
source_prebuild_info = {
arch = current_cpu
file_base = "tools"
}
}
files = [
{
source = "$root_out_dir/ffx-fuzz"
dest = _idk_path
},
{
source = "$root_out_dir/ffx-fuzz.json"
dest = "$_idk_path.json"
},
]
non_sdk_deps = [ ":ffx_fuzz_tool_versioned" ]
}