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 29 matching lines...) Expand all Loading... | |
| 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_type", | 46 "--input_type", |
| 47 invoker.input_type, | 47 invoker.input_type, |
| 48 "--input", | 48 "--input", |
| 49 invoker.input, | 49 invoker.input, |
| 50 "--insert_in_head", | |
| 51 invoker.insert_in_head, | |
| 52 "--out_folder", | 50 "--out_folder", |
| 53 rebase_path(target_gen_dir, root_build_dir), | 51 rebase_path(target_gen_dir, root_build_dir), |
| 54 "--depfile", | 52 "--depfile", |
| 55 rebase_path(depfile, root_build_dir), | 53 rebase_path(depfile, root_build_dir), |
| 56 ] | 54 ] |
| 55 | |
| 56 if (defined(invoker.insert_in_head)) { | |
| 57 args += [ | |
| 58 "--insert_in_head", | |
| 59 invoker.insert_in_head, | |
| 60 ] | |
| 61 } | |
| 62 | |
| 63 if (defined(invoker.excludes)) { | |
| 64 foreach(_exclude, invoker.excludes) { | |
| 65 args += [ | |
| 66 "--exclude", | |
|
dpapad
2017/02/08 23:04:18
Can we not just pass all the excludes with a singl
calamity
2017/02/09 03:07:35
Done.
| |
| 67 "$_exclude", | |
| 68 ] | |
| 69 } | |
| 70 } | |
| 57 } | 71 } |
| 58 } | 72 } |
| OLD | NEW |