forked from ChromeDevTools/devtools-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode.gni
33 lines (24 loc) · 836 Bytes
/
node.gni
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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 = []
}