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") |
11 import("//build/config/ui.gni") | 11 import("//build/config/ui.gni") |
12 import("//build/config/win/console_app.gni") | 12 import("//build/config/win/console_app.gni") |
13 import("//build/config/win/manifest.gni") | 13 import("//build/config/win/manifest.gni") |
14 import("//chrome/chrome_repack_locales.gni") | 14 import("//chrome/chrome_repack_locales.gni") |
15 import("//chrome/common/features.gni") | 15 import("//chrome/common/features.gni") |
16 import("//chrome/version.gni") | 16 import("//chrome/version.gni") |
17 import("//ui/base/ui_features.gni") | 17 import("//ui/base/ui_features.gni") |
18 import("//v8/gni/v8.gni") | 18 import("//v8/gni/v8.gni") |
19 | 19 |
| 20 if (enable_resource_whitelist_generation) { |
| 21 android_resource_whitelist = "$root_gen_dir/resource_whitelist.txt" |
| 22 } |
| 23 |
20 if (is_android) { | 24 if (is_android) { |
21 import("//build/config/android/rules.gni") | 25 import("//build/config/android/rules.gni") |
22 } else if (is_mac) { | 26 } else if (is_mac) { |
23 import("//build/compiled_action.gni") | 27 import("//build/compiled_action.gni") |
24 import("//build/config/mac/rules.gni") | 28 import("//build/config/mac/rules.gni") |
25 import("//build/config/mac/symbols.gni") | 29 import("//build/config/mac/symbols.gni") |
26 import("//build/mac/tweak_info_plist.gni") | 30 import("//build/mac/tweak_info_plist.gni") |
27 import("//build/util/branding.gni") | 31 import("//build/util/branding.gni") |
28 import("//build/util/version.gni") | 32 import("//build/util/version.gni") |
29 import("//build_overrides/v8.gni") | 33 import("//build_overrides/v8.gni") |
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 } | 1465 } |
1462 | 1466 |
1463 # GYP outputs the file in the gen/repack directory. On non-Mac/iOS platforms | 1467 # GYP outputs the file in the gen/repack directory. On non-Mac/iOS platforms |
1464 # it them copies it. This skipes the copy step and writes it to the final | 1468 # it them copies it. This skipes the copy step and writes it to the final |
1465 # location. | 1469 # location. |
1466 if (is_mac || is_ios) { | 1470 if (is_mac || is_ios) { |
1467 output = "$root_gen_dir/repack/resources.pak" | 1471 output = "$root_gen_dir/repack/resources.pak" |
1468 } else { | 1472 } else { |
1469 output = "$root_out_dir/resources.pak" | 1473 output = "$root_out_dir/resources.pak" |
1470 } | 1474 } |
| 1475 |
| 1476 if (enable_resource_whitelist_generation) { |
| 1477 repack_whitelist = android_resource_whitelist |
| 1478 deps += [ "//chrome:resource_whitelist" ] |
| 1479 } |
1471 } | 1480 } |
1472 | 1481 |
1473 # GYP version: chrome/chrome_resources.gyp:browser_tests_pak | 1482 # GYP version: chrome/chrome_resources.gyp:browser_tests_pak |
1474 repack("browser_tests_pak") { | 1483 repack("browser_tests_pak") { |
1475 sources = [ | 1484 sources = [ |
1476 "$root_gen_dir/chrome/options_test_resources.pak", | 1485 "$root_gen_dir/chrome/options_test_resources.pak", |
1477 "$root_gen_dir/chrome/webui_test_resources.pak", | 1486 "$root_gen_dir/chrome/webui_test_resources.pak", |
1478 ] | 1487 ] |
1479 output = "$root_out_dir/browser_tests.pak" | 1488 output = "$root_out_dir/browser_tests.pak" |
1480 deps = [ | 1489 deps = [ |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 if (enable_extensions) { | 1584 if (enable_extensions) { |
1576 sources += [ "$root_gen_dir/extensions/extensions_browser_resources_${perc
ent}_percent.pak" ] | 1585 sources += [ "$root_gen_dir/extensions/extensions_browser_resources_${perc
ent}_percent.pak" ] |
1577 deps += [ "//extensions:extensions_browser_resources" ] | 1586 deps += [ "//extensions:extensions_browser_resources" ] |
1578 } | 1587 } |
1579 if (enable_app_list) { | 1588 if (enable_app_list) { |
1580 sources += [ "$root_gen_dir/ui/app_list/resources/app_list_resources_${per
cent}_percent.pak" ] | 1589 sources += [ "$root_gen_dir/ui/app_list/resources/app_list_resources_${per
cent}_percent.pak" ] |
1581 deps += [ "//ui/app_list/resources" ] | 1590 deps += [ "//ui/app_list/resources" ] |
1582 } | 1591 } |
1583 | 1592 |
1584 output = repack_output_file | 1593 output = repack_output_file |
| 1594 |
| 1595 if (enable_resource_whitelist_generation) { |
| 1596 repack_whitelist = android_resource_whitelist |
| 1597 deps += [ "//chrome:resource_whitelist" ] |
| 1598 } |
1585 } | 1599 } |
1586 | 1600 |
1587 copy(copy_name) { | 1601 copy(copy_name) { |
1588 visibility = [ ":*" ] | 1602 visibility = [ ":*" ] |
1589 deps = [ | 1603 deps = [ |
1590 ":$repack_name", | 1604 ":$repack_name", |
1591 ] | 1605 ] |
1592 sources = [ | 1606 sources = [ |
1593 repack_output_file, | 1607 repack_output_file, |
1594 ] | 1608 ] |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 "//chrome/common", | 1702 "//chrome/common", |
1689 "//chrome/gpu", | 1703 "//chrome/gpu", |
1690 "//chrome/renderer", | 1704 "//chrome/renderer", |
1691 "//chrome/utility", | 1705 "//chrome/utility", |
1692 "//components/safe_browsing_db:safe_browsing_db_mobile", | 1706 "//components/safe_browsing_db:safe_browsing_db_mobile", |
1693 "//content/public/app:both", | 1707 "//content/public/app:both", |
1694 ] | 1708 ] |
1695 } | 1709 } |
1696 } | 1710 } |
1697 | 1711 |
| 1712 if (enable_resource_whitelist_generation) { |
| 1713 action("resource_whitelist") { |
| 1714 deps = [ |
| 1715 "//chrome/android:chrome", |
| 1716 ] |
| 1717 script = "//tools/resources/generate_resource_whitelist.py" |
| 1718 |
| 1719 _infile = "$root_out_dir/libchrome.cr.so.whitelist" |
| 1720 inputs = [ |
| 1721 _infile, |
| 1722 ] |
| 1723 |
| 1724 _outfile = android_resource_whitelist |
| 1725 outputs = [ |
| 1726 _outfile, |
| 1727 ] |
| 1728 |
| 1729 args = [ |
| 1730 "-i", |
| 1731 rebase_path(_infile, root_build_dir), |
| 1732 "-o", |
| 1733 rebase_path(_outfile, root_build_dir), |
| 1734 "--out-dir=.", |
| 1735 ] |
| 1736 } |
| 1737 } |
| 1738 |
1698 if (is_linux) { | 1739 if (is_linux) { |
1699 action("manpage") { | 1740 action("manpage") { |
1700 if (is_chrome_branded) { | 1741 if (is_chrome_branded) { |
1701 name = "Google Chrome" | 1742 name = "Google Chrome" |
1702 filename = "google-chrome" | 1743 filename = "google-chrome" |
1703 confdir = "google-chrome" | 1744 confdir = "google-chrome" |
1704 } else { | 1745 } else { |
1705 name = "Chromium" | 1746 name = "Chromium" |
1706 filename = "chromium-browser" | 1747 filename = "chromium-browser" |
1707 confdir = "chromium" | 1748 confdir = "chromium" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1771 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1812 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
1772 "//chrome/tools/build/linux/chrome-wrapper", | 1813 "//chrome/tools/build/linux/chrome-wrapper", |
1773 "//third_party/xdg-utils/scripts/xdg-mime", | 1814 "//third_party/xdg-utils/scripts/xdg-mime", |
1774 "//third_party/xdg-utils/scripts/xdg-settings", | 1815 "//third_party/xdg-utils/scripts/xdg-settings", |
1775 ] | 1816 ] |
1776 outputs = [ | 1817 outputs = [ |
1777 "$root_out_dir/{{source_file_part}}", | 1818 "$root_out_dir/{{source_file_part}}", |
1778 ] | 1819 ] |
1779 } | 1820 } |
1780 } | 1821 } |
OLD | NEW |