blob: df789c82a61ee17d1770b0b86d67cd762b07db06 [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
import("$zx/public/gn/host_tool_action.gni")
template("abigen") {
host_tool_action(target_name) {
forward_variables_from(invoker,
[
"testonly",
"visibility",
])
tool = "$zx/system/host/abigen"
outputs = []
args = []
foreach(gen, invoker.gen) {
outputs += gen.outputs
args += gen.args + rebase_path(gen.outputs, root_build_dir)
}
sources = [
"$zx/system/public/zircon/syscalls.abigen",
]
args += rebase_path(sources, root_build_dir)
}
}