| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 template("node") { | 5 template("node") { |
| 6 action(target_name) { | 6 action(target_name) { |
| 7 forward_variables_from(invoker, "*") | 7 forward_variables_from(invoker, "*") |
| 8 | 8 |
| 9 # Declare dependencies to all involved tools. | 9 # Declare dependencies to all involved tools. |
| 10 inputs += [ | 10 inputs += [ |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 template("vulcanize") { | 28 template("vulcanize") { |
| 29 node(target_name) { | 29 node(target_name) { |
| 30 script = "//chrome/browser/resources/vulcanize_gn.py" | 30 script = "//chrome/browser/resources/vulcanize_gn.py" |
| 31 | 31 |
| 32 inputs = [ | 32 inputs = [ |
| 33 "//chrome/browser/resources/unpack_pak.py", | 33 "//chrome/browser/resources/unpack_pak.py", |
| 34 ] | 34 ] |
| 35 | 35 |
| 36 # This depfile is generated by vulcanize_gn.py | 36 # This depfile is generated by vulcanize_gn.py |
| 37 depfile = "${target_gen_dir}/${target_name}.d" | 37 depfile = "${target_gen_dir}/${invoker.html_out_file}.d" |
| 38 | 38 |
| 39 outputs = [ | 39 outputs = [ |
| 40 "$target_gen_dir/${invoker.html_out_file}", | 40 "$target_gen_dir/${invoker.html_out_file}", |
| 41 "$target_gen_dir/${invoker.js_out_file}", | 41 "$target_gen_dir/${invoker.js_out_file}", |
| 42 ] | 42 ] |
| 43 deps = invoker.deps | 43 deps = invoker.deps |
| 44 | 44 |
| 45 # Note that we have to manually pass the sources to our script if the | 45 # Note that we have to manually pass the sources to our script if the |
| 46 # script needs them as inputs. | 46 # script needs them as inputs. |
| 47 args = [ | 47 args = [ |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 deps = invoker.deps | 92 deps = invoker.deps |
| 93 | 93 |
| 94 args = [ | 94 args = [ |
| 95 "--out_folder", | 95 "--out_folder", |
| 96 rebase_path(target_gen_dir, root_build_dir), | 96 rebase_path(target_gen_dir, root_build_dir), |
| 97 "--input_files", | 97 "--input_files", |
| 98 ] + invoker.input_files + [ "--output_files" ] + invoker.output_files | 98 ] + invoker.input_files + [ "--output_files" ] + invoker.output_files |
| 99 } | 99 } |
| 100 } | 100 } |
| OLD | NEW |