mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 01:38:07 +08:00
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>
34 lines
836 B
Plaintext
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 = []
|
|
}
|