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/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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 public_deps = [ | 765 public_deps = [ |
766 ":packed_extra_resources", | 766 ":packed_extra_resources", |
767 ":packed_resources", | 767 ":packed_resources", |
768 "//chrome/app_shim:app_mode_loader", | 768 "//chrome/app_shim:app_mode_loader", |
769 ] | 769 ] |
770 | 770 |
771 if (enable_hidpi) { | 771 if (enable_hidpi) { |
772 sources += [ "$root_out_dir/chrome_200_percent.pak" ] | 772 sources += [ "$root_out_dir/chrome_200_percent.pak" ] |
773 } | 773 } |
774 | 774 |
775 # TODO(estade): remove material design specific resources. | |
776 # See crbug.com/613593 | |
777 if (is_mac) { | |
778 sources += [ "$root_out_dir/chrome_material_100_percent.pak" ] | |
779 | |
780 if (enable_hidpi) { | |
781 sources += [ "$root_out_dir/chrome_material_200_percent.pak" ] | |
782 } | |
783 } | |
784 | |
785 if (enable_mac_keystone) { | 775 if (enable_mac_keystone) { |
786 sources += [ | 776 sources += [ |
787 "browser/mac/keystone_promote_postflight.sh", | 777 "browser/mac/keystone_promote_postflight.sh", |
788 "browser/mac/keystone_promote_preflight.sh", | 778 "browser/mac/keystone_promote_preflight.sh", |
789 ] | 779 ] |
790 } | 780 } |
791 | 781 |
792 if (icu_use_data_file) { | 782 if (icu_use_data_file) { |
793 sources += [ "$root_out_dir/icudtl.dat" ] | 783 sources += [ "$root_out_dir/icudtl.dat" ] |
794 public_deps += [ "//third_party/icu:icudata" ] | 784 public_deps += [ "//third_party/icu:icudata" ] |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 ":repack_pseudo_locales_pack", | 1375 ":repack_pseudo_locales_pack", |
1386 ] | 1376 ] |
1387 | 1377 |
1388 if (is_chrome_branded && !is_mac) { | 1378 if (is_chrome_branded && !is_mac) { |
1389 public_deps += [ ":default_apps" ] | 1379 public_deps += [ ":default_apps" ] |
1390 } | 1380 } |
1391 | 1381 |
1392 if (enable_hidpi) { | 1382 if (enable_hidpi) { |
1393 public_deps += [ ":repack_chrome_200_percent" ] | 1383 public_deps += [ ":repack_chrome_200_percent" ] |
1394 } | 1384 } |
1395 | |
1396 if (is_mac) { | |
1397 public_deps += [ ":repack_chrome_material_100_percent" ] | |
1398 | |
1399 if (enable_hidpi) { | |
1400 public_deps += [ ":repack_chrome_material_200_percent" ] | |
1401 } | |
1402 } | |
1403 } | 1385 } |
1404 | 1386 |
1405 repack("packed_extra_resources") { | 1387 repack("packed_extra_resources") { |
1406 visibility = [ "./*" ] | 1388 visibility = [ "./*" ] |
1407 sources = [ | 1389 sources = [ |
1408 "$root_gen_dir/chrome/browser_resources.pak", | 1390 "$root_gen_dir/chrome/browser_resources.pak", |
1409 "$root_gen_dir/chrome/chrome_unscaled_resources.pak", | 1391 "$root_gen_dir/chrome/chrome_unscaled_resources.pak", |
1410 "$root_gen_dir/chrome/common_resources.pak", | 1392 "$root_gen_dir/chrome/common_resources.pak", |
1411 "$root_gen_dir/chrome/invalidations_resources.pak", | 1393 "$root_gen_dir/chrome/invalidations_resources.pak", |
1412 "$root_gen_dir/chrome/net_internals_resources.pak", | 1394 "$root_gen_dir/chrome/net_internals_resources.pak", |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1629 chrome_repack_percent("repack_chrome_100_percent") { | 1611 chrome_repack_percent("repack_chrome_100_percent") { |
1630 percent = "100" | 1612 percent = "100" |
1631 } | 1613 } |
1632 | 1614 |
1633 if (enable_hidpi) { | 1615 if (enable_hidpi) { |
1634 chrome_repack_percent("repack_chrome_200_percent") { | 1616 chrome_repack_percent("repack_chrome_200_percent") { |
1635 percent = "200" | 1617 percent = "200" |
1636 } | 1618 } |
1637 } | 1619 } |
1638 | 1620 |
1639 # Generates a rule to repack a set of material design resources for the browser | |
1640 # top chrome, substituting a given string in for the percentage (e.g. "100", | |
1641 # "200"). | |
1642 template("chrome_repack_material_percent") { | |
1643 percent = invoker.percent | |
1644 | |
1645 repack_name = "${target_name}_repack" | |
1646 repack_output_file = | |
1647 "$root_gen_dir/repack/chrome_material_${percent}_percent.pak" | |
1648 | |
1649 copy_name = target_name | |
1650 | |
1651 repack(repack_name) { | |
1652 visibility = [ ":$copy_name" ] | |
1653 | |
1654 # All sources should also have deps for completeness. | |
1655 sources = [ | |
1656 "$root_gen_dir/chrome/theme_resources_material_${percent}_percent.pak", | |
1657 ] | |
1658 | |
1659 deps = [ | |
1660 "//chrome/app/theme:theme_resources", | |
1661 "//components/resources", | |
1662 ] | |
1663 | |
1664 output = repack_output_file | |
1665 } | |
1666 | |
1667 copy(copy_name) { | |
1668 visibility = [ ":*" ] | |
1669 deps = [ | |
1670 ":$repack_name", | |
1671 ] | |
1672 sources = [ | |
1673 repack_output_file, | |
1674 ] | |
1675 outputs = [ | |
1676 "$root_build_dir/chrome_material_${percent}_percent.pak", | |
1677 ] | |
1678 } | |
1679 } | |
1680 | |
1681 if (is_mac) { | |
1682 chrome_repack_material_percent("repack_chrome_material_100_percent") { | |
1683 percent = "100" | |
1684 } | |
1685 | |
1686 if (enable_hidpi) { | |
1687 chrome_repack_material_percent("repack_chrome_material_200_percent") { | |
1688 percent = "200" | |
1689 } | |
1690 } | |
1691 } | |
1692 | |
1693 # GYP version: chrome/chrome_resources.gyp:chrome_strings | 1621 # GYP version: chrome/chrome_resources.gyp:chrome_strings |
1694 group("strings") { | 1622 group("strings") { |
1695 public_deps = [ | 1623 public_deps = [ |
1696 "//chrome/app:chromium_strings", | 1624 "//chrome/app:chromium_strings", |
1697 "//chrome/app:generated_resources", | 1625 "//chrome/app:generated_resources", |
1698 "//chrome/app:google_chrome_strings", | 1626 "//chrome/app:google_chrome_strings", |
1699 "//chrome/app/resources:locale_settings", | 1627 "//chrome/app/resources:locale_settings", |
1700 ] | 1628 ] |
1701 } | 1629 } |
1702 | 1630 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1880 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1808 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
1881 "//chrome/tools/build/linux/chrome-wrapper", | 1809 "//chrome/tools/build/linux/chrome-wrapper", |
1882 "//third_party/xdg-utils/scripts/xdg-mime", | 1810 "//third_party/xdg-utils/scripts/xdg-mime", |
1883 "//third_party/xdg-utils/scripts/xdg-settings", | 1811 "//third_party/xdg-utils/scripts/xdg-settings", |
1884 ] | 1812 ] |
1885 outputs = [ | 1813 outputs = [ |
1886 "$root_out_dir/{{source_file_part}}", | 1814 "$root_out_dir/{{source_file_part}}", |
1887 ] | 1815 ] |
1888 } | 1816 } |
1889 } | 1817 } |
OLD | NEW |