blob: 1606e49b4c178f017ad1193bbff228acf43275da [file] [log] [blame]
# Copyright 2020 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/compiled_action.gni")
template("zx_host_tool") {
executable(target_name) {
forward_variables_from(invoker, "*")
}
}
set_defaults("zx_host_tool") {
configs = default_executable_configs
}
template("zx_host_tool_action_foreach") {
assert(defined(invoker.tool), "tool must be defined for $target_name")
compiled_action_foreach(target_name) {
tool = invoker.tool
forward_variables_from(invoker,
"*",
[
"target_name",
"tool",
])
}
}