OLD | NEW |
(Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 template("vulcanize") { |
| 6 action(target_name) { |
| 7 script = "//chrome/browser/resources/vulcanize_gn.py" |
| 8 |
| 9 depfile = "${target_gen_dir}/${target_name}.d" |
| 10 |
| 11 outputs = [ |
| 12 "$target_gen_dir/${invoker.html_out_file}", |
| 13 "$target_gen_dir/${invoker.js_out_file}", |
| 14 ] |
| 15 deps = invoker.deps |
| 16 |
| 17 # Note that we have to manually pass the sources to our script if the |
| 18 # script needs them as inputs. |
| 19 args = [ |
| 20 "--host", |
| 21 invoker.host, |
| 22 "--html_in_file", |
| 23 invoker.html_in_file, |
| 24 "--html_out_file", |
| 25 invoker.html_out_file, |
| 26 "--js_out_file", |
| 27 invoker.js_out_file, |
| 28 "--input_type", |
| 29 invoker.input_type, |
| 30 "--input", |
| 31 invoker.input, |
| 32 "--out_folder", |
| 33 rebase_path(target_gen_dir, root_build_dir), |
| 34 "--depfile", |
| 35 rebase_path(depfile, root_build_dir), |
| 36 ] |
| 37 } |
| 38 } |
OLD | NEW |