Chromium Code Reviews| 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..278ad77ad15ebcc3c8bef7adba4fed84a193011b |
| --- /dev/null |
| +++ b/chrome/browser/resources/vulcanize.gni |
| @@ -0,0 +1,41 @@ |
| +# Copyright 2017 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" |
| + inputs = [ |
| + "//chrome/browser/resources/unpack_pak.py", |
|
dpapad
2017/01/24 00:36:48
FYI, added this line, such that vulcanize() action
Dan Beam
2017/01/24 01:54:25
good idea
|
| + ] |
| + |
| + 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 |
| + |
| + # Note that we have to manually pass the sources to our script if the |
| + # script needs them as inputs. |
| + args = [ |
| + "--host", |
| + invoker.host, |
| + "--html_in_file", |
| + invoker.html_in_file, |
| + "--html_out_file", |
| + invoker.html_out_file, |
| + "--js_out_file", |
| + invoker.js_out_file, |
| + "--input_type", |
| + invoker.input_type, |
| + "--input", |
| + invoker.input, |
| + "--out_folder", |
| + rebase_path(target_gen_dir, root_build_dir), |
| + "--depfile", |
| + rebase_path(depfile, root_build_dir), |
| + ] |
| + } |
| +} |