| Index: third_party/node/run_node.gni
|
| diff --git a/third_party/node/run_node.gni b/third_party/node/run_node.gni
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7e6f0bb53bed8922d5b31017d15359fcc679412d
|
| --- /dev/null
|
| +++ b/third_party/node/run_node.gni
|
| @@ -0,0 +1,16 @@
|
| +# Copyright 2016 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.
|
| +
|
| +template("nodejs") {
|
| + action(target_name) {
|
| + script = "//third_party/node/run_node.py"
|
| + node_script = rebase_path(invoker.script, root_build_dir)
|
| + outputs = [ "$target_gen_dir/${invoker.script}.txt" ]
|
| +
|
| +
|
| + # Note that we have to manually pass the sources to our script if the
|
| + # script needs them as inputs.
|
| + args = [node_script] + [rebase_path(target_gen_dir, root_build_dir)]
|
| + }
|
| +}
|
|
|