Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: third_party/node/run_node.gni

Issue 2533153002: DO NOT SUBMIT, call node from GN.
Patch Set: Run different scripts with nodejs() Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/plugins/script2.js ('k') | third_party/node/run_node.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)]
+ }
+}
« no previous file with comments | « chrome/browser/ui/webui/plugins/script2.js ('k') | third_party/node/run_node.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698