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("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 80 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 } |
| 101 | |
| 102 template("unpak") { | |
| 103 action(target_name) { | |
| 104 script = "//chrome/browser/resources/unpack_pak.py" | |
| 105 | |
| 106 inputs = [ | |
| 107 "//chrome/browser/resources/unpack_pak.py", | |
| 108 ] | |
| 109 | |
| 110 outputs = [ | |
| 111 "$target_gen_dir/${invoker.out_folder}", | |
|
Nico
2017/03/22 22:09:06
Listing directories as outputs isn't great, since
| |
| 112 ] | |
| 113 | |
| 114 deps = invoker.deps | |
| 115 | |
| 116 args = [ | |
| 117 "--out_folder", | |
| 118 rebase_path("$target_gen_dir/${invoker.out_folder}", root_build_dir), | |
| 119 "--pak_file", | |
| 120 rebase_path("$target_gen_dir/${invoker.pak_file}", root_build_dir), | |
| 121 ] | |
| 122 } | |
| 123 } | |
| OLD | NEW |