OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 declare_args() { | 5 declare_args() { |
6 # Absolute path to a resource whitelist (generated using | 6 # Absolute path to a resource whitelist (generated using |
7 # //tools/resources/find_used_resources.py). | 7 # //tools/resources/find_used_resources.py). |
8 repack_whitelist = "" | 8 repack_whitelist = "" |
9 } | 9 } |
10 | 10 |
11 # This file defines a template to invoke grit repack in a consistent manner. | 11 # This file defines a template to invoke grit repack in a consistent manner. |
12 # | 12 # |
13 # Parameters: | 13 # Parameters: |
14 # sources [required] | 14 # sources [required] |
15 # List of pak files that need to be combined. | 15 # List of pak files that need to be combined. |
16 # | 16 # |
17 # output [required] | 17 # output [required] |
18 # File name (single string) of the output file. | 18 # File name (single string) of the output file. |
19 # | 19 # |
20 # deps [optional] | 20 # deps [optional] |
| 21 # public_deps [optional] |
21 # visibility [optional] | 22 # visibility [optional] |
22 # Normal meaning. | 23 # Normal meaning. |
23 template("repack") { | 24 template("repack") { |
24 action(target_name) { | 25 action(target_name) { |
25 forward_variables_from(invoker, | 26 forward_variables_from(invoker, |
26 [ | 27 [ |
27 "deps", | 28 "deps", |
| 29 "public_deps", |
28 "testonly", | 30 "testonly", |
29 "visibility", | 31 "visibility", |
30 ]) | 32 ]) |
31 assert(defined(invoker.sources), "Need sources for $target_name") | 33 assert(defined(invoker.sources), "Need sources for $target_name") |
32 assert(defined(invoker.output), "Need output for $target_name") | 34 assert(defined(invoker.output), "Need output for $target_name") |
33 | 35 |
34 script = "//tools/grit/grit/format/repack.py" | 36 script = "//tools/grit/grit/format/repack.py" |
35 | 37 |
36 inputs = invoker.sources | 38 inputs = invoker.sources |
37 outputs = [ | 39 outputs = [ |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 outputs = [ | 103 outputs = [ |
102 invoker.bundle_output, | 104 invoker.bundle_output, |
103 ] | 105 ] |
104 } else { | 106 } else { |
105 outputs = [ | 107 outputs = [ |
106 "{{bundle_resources_dir}}/{{source_file_part}}", | 108 "{{bundle_resources_dir}}/{{source_file_part}}", |
107 ] | 109 ] |
108 } | 110 } |
109 } | 111 } |
110 } | 112 } |
OLD | NEW |