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 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
| 9 import("//tools/grit/grit_rule.gni") |
9 | 10 |
10 # Arguments: | 11 # Arguments: |
11 # | 12 # |
12 # locale | 13 # locale |
13 # Internal name of locale. e.g. "pt-BR" | 14 # Internal name of locale. e.g. "pt-BR" |
14 # | 15 # |
15 # output | 16 # output |
16 # Output file name. | 17 # Output file name. |
17 # | 18 # |
18 # visibility | 19 # visibility |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 sources += [ | 112 sources += [ |
112 "${root_gen_dir}/chrome/chromium_strings_${locale}.pak", | 113 "${root_gen_dir}/chrome/chromium_strings_${locale}.pak", |
113 "${root_gen_dir}/components/strings/components_chromium_strings_${locale
}.pak", | 114 "${root_gen_dir}/components/strings/components_chromium_strings_${locale
}.pak", |
114 ] | 115 ] |
115 deps += [ | 116 deps += [ |
116 "//chrome/app:chromium_strings", | 117 "//chrome/app:chromium_strings", |
117 "//components/strings:components_chromium_strings", | 118 "//components/strings:components_chromium_strings", |
118 ] | 119 ] |
119 } | 120 } |
120 | 121 |
| 122 if (enable_resource_whitelist_generation) { |
| 123 repack_whitelist = "$root_gen_dir/resource_whitelist.txt" |
| 124 deps += [ "//chrome:resource_whitelist" ] |
| 125 } |
121 output = invoker.output | 126 output = invoker.output |
122 } | 127 } |
123 } | 128 } |
124 | 129 |
125 # Creates an action to call the repack_locales script. | 130 # Creates an action to call the repack_locales script. |
126 # | 131 # |
127 # The GYP version generates the locales in the "gen" directory and then copies | 132 # The GYP version generates the locales in the "gen" directory and then copies |
128 # it to the root build directory. This isn't easy to express in a GN copy | 133 # it to the root build directory. This isn't easy to express in a GN copy |
129 # rule since the files on Mac have a complex structure. So we generate the | 134 # rule since the files on Mac have a complex structure. So we generate the |
130 # files into the final place and skip the "gen" directory. | 135 # files into the final place and skip the "gen" directory. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 202 |
198 current_index = current_index + 1 | 203 current_index = current_index + 1 |
199 } | 204 } |
200 | 205 |
201 # The group that external targets depend on which collects all deps. | 206 # The group that external targets depend on which collects all deps. |
202 group(group_target_name) { | 207 group(group_target_name) { |
203 forward_variables_from(invoker, [ "visibility" ]) | 208 forward_variables_from(invoker, [ "visibility" ]) |
204 public_deps = locale_targets | 209 public_deps = locale_targets |
205 } | 210 } |
206 } | 211 } |
OLD | NEW |