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

Side by Side Diff: chrome/BUILD.gn

Issue 2340673002: Revert of 🍵 Refactor the various locale_paks() templates to be more shared (Closed)
Patch Set: Created 4 years, 3 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 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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/locales.gni") 9 import("//build/config/locales.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 chrome_repack_locales("repack_locales_pack") { 1474 chrome_repack_locales("repack_locales_pack") {
1475 visibility = [ ":*" ] 1475 visibility = [ ":*" ]
1476 1476
1477 input_locales = locales 1477 input_locales = locales
1478 1478
1479 if (is_mac) { 1479 if (is_mac) {
1480 output_locales = locales_as_mac_outputs 1480 output_locales = locales_as_mac_outputs
1481 } else { 1481 } else {
1482 output_locales = locales 1482 output_locales = locales
1483 } 1483 }
1484
1485 if (enable_resource_whitelist_generation) {
1486 repack_whitelist = android_resource_whitelist
1487 deps += [ "//chrome:resource_whitelist" ]
1488 }
1489 } 1484 }
1490 1485
1491 chrome_repack_locales("repack_pseudo_locales_pack") { 1486 chrome_repack_locales("repack_pseudo_locales_pack") {
1492 visibility = [ ":*" ] 1487 visibility = [ ":*" ]
1493 1488
1494 input_locales = [ "fake-bidi" ] 1489 input_locales = [ "fake-bidi" ]
1495 1490
1496 if (is_mac) { 1491 if (is_mac) {
1497 output_locales = [ "fake_bidi" ] # Mac uses underscores. 1492 output_locales = [ "fake_bidi" ] # Mac uses underscores.
1498 } else { 1493 } else {
1499 output_locales = [ "fake-bidi" ] 1494 output_locales = [ "fake-bidi" ]
1500 } 1495 }
1501
1502 if (enable_resource_whitelist_generation) {
1503 repack_whitelist = android_resource_whitelist
1504 deps += [ "//chrome:resource_whitelist" ]
1505 }
1506 } 1496 }
1507 1497
1508 # Generates a rule to repack a set of resources, substituting a given string 1498 # Generates a rule to repack a set of resources, substituting a given string
1509 # in for the percentage (e.g. "100", "200"). It generates the repacked files in 1499 # in for the percentage (e.g. "100", "200"). It generates the repacked files in
1510 # the "gen" directory, and then introduces a copy rule to copy it to the root 1500 # the "gen" directory, and then introduces a copy rule to copy it to the root
1511 # build directory. 1501 # build directory.
1512 # 1502 #
1513 # It's not clear why this two-step dance is necessary as opposed to just 1503 # It's not clear why this two-step dance is necessary as opposed to just
1514 # generating the file in the destination. However, this is what the GYP build 1504 # generating the file in the destination. However, this is what the GYP build
1515 # does, and for maintenance purposes, this keeps the same files in the same 1505 # does, and for maintenance purposes, this keeps the same files in the same
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1785 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1796 "//chrome/tools/build/linux/chrome-wrapper", 1786 "//chrome/tools/build/linux/chrome-wrapper",
1797 "//third_party/xdg-utils/scripts/xdg-mime", 1787 "//third_party/xdg-utils/scripts/xdg-mime",
1798 "//third_party/xdg-utils/scripts/xdg-settings", 1788 "//third_party/xdg-utils/scripts/xdg-settings",
1799 ] 1789 ]
1800 outputs = [ 1790 outputs = [
1801 "$root_out_dir/{{source_file_part}}", 1791 "$root_out_dir/{{source_file_part}}",
1802 ] 1792 ]
1803 } 1793 }
1804 } 1794 }
OLDNEW
« no previous file with comments | « android_webview/webview_repack_locales_list.gni ('k') | chrome/android/monochrome_repack_locales.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698