Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: chrome/chrome_paks.gni

Issue 2884343005: Revert of Separate WebView's locale paks from Chrome's locale paks (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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/locales.gni") 5 import("//build/config/locales.gni")
6 import("//chrome/common/features.gni") 6 import("//chrome/common/features.gni")
7 import("//extensions/features/features.gni") 7 import("//extensions/features/features.gni")
8 import("//ui/base/ui_features.gni") 8 import("//ui/base/ui_features.gni")
9 import("chrome_repack_locales.gni") 9 import("chrome_repack_locales.gni")
10 10
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 # Defines repack() targets used by Chrome. Specifically: 178 # Defines repack() targets used by Chrome. Specifically:
179 # * chrome_100_percent.pak 179 # * chrome_100_percent.pak
180 # * chrome_200_percent.pak (optionally) 180 # * chrome_200_percent.pak (optionally)
181 # * resources.pak 181 # * resources.pak
182 # * locale .pak files 182 # * locale .pak files
183 # 183 #
184 # Paramters: 184 # Paramters:
185 # output_dir [required]: Directory to output .pak files. Locale .pak files 185 # output_dir [required]: Directory to output .pak files. Locale .pak files
186 # will always be place in $output_dir/locales 186 # will always be place in $output_dir/locales
187 # additional_extra_paks: List of extra .pak sources for resources.pak. 187 # additional_extra_paks: List of extra .pak sources for resources.pak.
188 # exclude_locale_paks: if set to true, skip chrome_repack_locales. 188 # additional_locale_source_patterns: additional_source_patterns for
189 # chrome_repack_locales().
189 # copy_data_to_bundle: 190 # copy_data_to_bundle:
190 # deps: 191 # deps:
191 # output_dir: 192 # output_dir:
192 # public_deps: 193 # public_deps:
193 # repack_whitelist: 194 # repack_whitelist:
194 # visibility: 195 # visibility:
195 # Normal meanings. 196 # Normal meanings.
196 # 197 #
197 template("chrome_paks") { 198 template("chrome_paks") {
198 chrome_repack_percent("${target_name}_100_percent") { 199 chrome_repack_percent("${target_name}_100_percent") {
(...skipping 29 matching lines...) Expand all
228 "deps", 229 "deps",
229 "output_dir", 230 "output_dir",
230 "repack_whitelist", 231 "repack_whitelist",
231 "visibility", 232 "visibility",
232 ]) 233 ])
233 if (defined(invoker.additional_extra_paks)) { 234 if (defined(invoker.additional_extra_paks)) {
234 additional_paks = invoker.additional_extra_paks 235 additional_paks = invoker.additional_extra_paks
235 } 236 }
236 } 237 }
237 238
238 if (!defined(invoker.exclude_locale_paks) || 239 chrome_repack_locales("${target_name}_locales") {
239 !invoker.exclude_locale_paks) { 240 forward_variables_from(invoker,
240 chrome_repack_locales("${target_name}_locales") { 241 [
241 forward_variables_from(invoker, 242 "copy_data_to_bundle",
242 [ 243 "deps",
243 "copy_data_to_bundle", 244 "repack_whitelist",
244 "deps", 245 "visibility",
245 "repack_whitelist", 246 ])
246 "visibility", 247
247 ]) 248 if (defined(invoker.additional_locale_source_patterns)) {
248 249 additional_source_patterns = invoker.additional_locale_source_patterns
249 input_locales = locales 250 }
250 output_dir = "${invoker.output_dir}/locales" 251 input_locales = locales
251 252 output_dir = "${invoker.output_dir}/locales"
252 if (is_mac) { 253
253 output_locales = locales_as_mac_outputs 254 if (is_mac) {
254 } else { 255 output_locales = locales_as_mac_outputs
255 output_locales = locales 256 } else {
256 } 257 output_locales = locales
257 } 258 }
258 } 259 }
259 260
260 group(target_name) { 261 group(target_name) {
261 forward_variables_from(invoker, [ "deps" ]) 262 forward_variables_from(invoker, [ "deps" ])
262 public_deps = [ 263 public_deps = [
263 ":${target_name}_100_percent", 264 ":${target_name}_100_percent",
264 ":${target_name}_extra", 265 ":${target_name}_extra",
266 ":${target_name}_locales",
265 ] 267 ]
266 if (!defined(invoker.exclude_locale_paks) ||
267 !invoker.exclude_locale_paks) {
268 public_deps += [ ":${target_name}_locales" ]
269 }
270 if (enable_hidpi) { 268 if (enable_hidpi) {
271 public_deps += [ ":${target_name}_200_percent" ] 269 public_deps += [ ":${target_name}_200_percent" ]
272 } 270 }
273 if (defined(invoker.public_deps)) { 271 if (defined(invoker.public_deps)) {
274 public_deps += invoker.public_deps 272 public_deps += invoker.public_deps
275 } 273 }
276 } 274 }
277 } 275 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_android.cc ('k') | ui/android/java/src/org/chromium/ui/base/ResourceBundle.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698