Index: chrome/browser/resources/vulcanize.gni |
diff --git a/chrome/browser/resources/vulcanize.gni b/chrome/browser/resources/vulcanize.gni |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cbca6ee9365ef55211fb052e577008de40d0e628 |
--- /dev/null |
+++ b/chrome/browser/resources/vulcanize.gni |
@@ -0,0 +1,47 @@ |
+# 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("vulcanize") { |
+ action(target_name) { |
+ script = "//chrome/browser/resources/vulcanize_gn.py" |
+ |
+ depfile = "${target_gen_dir}/${target_name}.d" |
+ |
+ outputs = [ |
+ "$target_gen_dir/${invoker.html_out_file}", |
+ "$target_gen_dir/${invoker.js_out_file}", |
+ ] |
+ deps = invoker.deps |
+ |
+ #sources = [ |
+ # invoker.html_in_file, |
+ #] |
Dan Beam
2017/01/20 00:56:50
remove
dpapad
2017/01/20 18:35:04
Done.
|
+ print(outputs) |
Dan Beam
2017/01/20 00:56:50
remove
dpapad
2017/01/20 18:35:04
Done.
|
+ |
+ print( |
+ invoker.target_name + " " + invoker.host + " " + invoker.html_in_file + |
+ " " + invoker.html_out_file + " " + invoker.js_out_file) |
+ |
+ # Note that we have to manually pass the sources to our script if the |
+ # script needs them as inputs. |
+ args = [ |
+ "--host", |
+ invoker.host, |
+ "--htmlInFile", |
Dan Beam
2017/01/20 00:56:50
flagsLikeThis should actually be_like_this
Dan Beam
2017/01/20 17:43:09
ping
dpapad
2017/01/20 18:35:04
Done.
|
+ invoker.html_in_file, |
+ "--htmlOutFile", |
+ invoker.html_out_file, |
+ "--jsOutFile", |
+ invoker.js_out_file, |
+ "--inputType", |
+ invoker.input_type, |
+ "--input", |
+ invoker.input, |
+ "--outFolder", |
+ rebase_path(target_gen_dir, root_build_dir), |
+ "--depfile", |
+ rebase_path(depfile, root_build_dir), |
+ ] |
+ } |
+} |