Chromium Code Reviews| 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("vulcanize") { | 5 template("vulcanize") { |
| 6 action(target_name) { | 6 action(target_name) { |
| 7 script = "//chrome/browser/resources/vulcanize_gn.py" | 7 script = "//chrome/browser/resources/vulcanize_gn.py" |
| 8 | 8 |
| 9 # Declare dependencies to all involved tools. | 9 # Declare dependencies to all involved tools. |
| 10 inputs = [ | 10 inputs = [ |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 "--host", | 38 "--host", |
| 39 invoker.host, | 39 invoker.host, |
| 40 "--html_in_file", | 40 "--html_in_file", |
| 41 invoker.html_in_file, | 41 invoker.html_in_file, |
| 42 "--html_out_file", | 42 "--html_out_file", |
| 43 invoker.html_out_file, | 43 invoker.html_out_file, |
| 44 "--js_out_file", | 44 "--js_out_file", |
| 45 invoker.js_out_file, | 45 invoker.js_out_file, |
| 46 "--input", | 46 "--input", |
| 47 invoker.input, | 47 invoker.input, |
| 48 "--insert_in_head", | |
| 49 invoker.insert_in_head, | |
| 50 "--out_folder", | 48 "--out_folder", |
| 51 rebase_path(target_gen_dir, root_build_dir), | 49 rebase_path(target_gen_dir, root_build_dir), |
| 52 "--depfile", | 50 "--depfile", |
| 53 rebase_path(depfile, root_build_dir), | 51 rebase_path(depfile, root_build_dir), |
| 54 ] | 52 ] |
| 53 | |
| 54 if (defined(invoker.excludes)) { | |
| 55 args += [ "--exclude" ] | |
|
dpapad
2017/02/09 19:14:04
Nit: Would that work?
args += [ "--exclude" ] +
| |
| 56 args += invoker.excludes | |
| 57 } | |
| 58 | |
| 59 if (defined(invoker.insert_in_head)) { | |
| 60 args += [ | |
| 61 "--insert_in_head", | |
| 62 invoker.insert_in_head, | |
| 63 ] | |
| 64 } | |
| 55 } | 65 } |
| 56 } | 66 } |
| OLD | NEW |