Files
react-native-devtools-frontend/scripts/build/ninja/node.gni
T
Tim van der Lippe 8b929548c0 Also add license headers for .gni files
R=jacktfranklin@chromium.org

Bug: 1213449
Change-Id: I3228629bbaa1c3824a721a93782356ec71855513
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2919951
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-05-26 16:19:23 +00:00

34 lines
836 B
Plaintext

# Copyright 2021 The Chromium 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("./vars.gni")
template("node_action") {
assert(defined(invoker.script),
"You must define the 'script' for a Node action")
action(target_name) {
script = "//third_party/node/node.py"
forward_variables_from(invoker,
"*",
[
"args",
"script",
])
_full_script_location = devtools_location_prepend + invoker.script
inputs += [ _full_script_location ]
args = [ rebase_path(_full_script_location, root_build_dir) ] + invoker.args
}
}
set_defaults("node_action") {
inputs = []
args = []
}