mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 06:04:55 +08:00
Now all variables are properly forwarded, which means we no longer have to list individual GN properties to be fowarded that are used in the numerous `node_action` definitions. Since `args` and `scripts` are specifically used in `node_action`, these must not be forwarded. R=alexrudenko@chromium.org Bug: 1174013 Change-Id: I1edcaadc3cb49dd0546c244115328fc8aca51ba0 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2843317 Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
34 lines
837 B
Plaintext
34 lines
837 B
Plaintext
# Copyright 2020 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 = []
|
|
}
|