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/chrome/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 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 } | 1452 } |
1449 | 1453 |
1450 # GYP outputs the file in the gen/repack directory. On non-Mac/iOS platforms | 1454 # GYP outputs the file in the gen/repack directory. On non-Mac/iOS platforms |
1451 # it them copies it. This skipes the copy step and writes it to the final | 1455 # it them copies it. This skipes the copy step and writes it to the final |
1452 # location. | 1456 # location. |
1453 if (is_mac || is_ios) { | 1457 if (is_mac || is_ios) { |
1454 output = "$root_gen_dir/repack/resources.pak" | 1458 output = "$root_gen_dir/repack/resources.pak" |
1455 } else { | 1459 } else { |
1456 output = "$root_out_dir/resources.pak" | 1460 output = "$root_out_dir/resources.pak" |
1457 } | 1461 } |
| 1462 |
| 1463 if (enable_resource_whitelist_generation) { |
| 1464 repack_whitelist = android_resource_whitelist |
| 1465 deps += [ "//chrome:resource_whitelist" ] |
| 1466 } |
1458 } | 1467 } |
1459 | 1468 |
1460 # GYP version: chrome/chrome_resources.gyp:browser_tests_pak | 1469 # GYP version: chrome/chrome_resources.gyp:browser_tests_pak |
1461 repack("browser_tests_pak") { | 1470 repack("browser_tests_pak") { |
1462 sources = [ | 1471 sources = [ |
1463 "$root_gen_dir/chrome/options_test_resources.pak", | 1472 "$root_gen_dir/chrome/options_test_resources.pak", |
1464 "$root_gen_dir/chrome/webui_test_resources.pak", | 1473 "$root_gen_dir/chrome/webui_test_resources.pak", |
1465 ] | 1474 ] |
1466 output = "$root_out_dir/browser_tests.pak" | 1475 output = "$root_out_dir/browser_tests.pak" |
1467 deps = [ | 1476 deps = [ |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1562 if (enable_extensions) { | 1571 if (enable_extensions) { |
1563 sources += [ "$root_gen_dir/extensions/extensions_browser_resources_${perc
ent}_percent.pak" ] | 1572 sources += [ "$root_gen_dir/extensions/extensions_browser_resources_${perc
ent}_percent.pak" ] |
1564 deps += [ "//extensions:extensions_browser_resources" ] | 1573 deps += [ "//extensions:extensions_browser_resources" ] |
1565 } | 1574 } |
1566 if (enable_app_list) { | 1575 if (enable_app_list) { |
1567 sources += [ "$root_gen_dir/ui/app_list/resources/app_list_resources_${per
cent}_percent.pak" ] | 1576 sources += [ "$root_gen_dir/ui/app_list/resources/app_list_resources_${per
cent}_percent.pak" ] |
1568 deps += [ "//ui/app_list/resources" ] | 1577 deps += [ "//ui/app_list/resources" ] |
1569 } | 1578 } |
1570 | 1579 |
1571 output = repack_output_file | 1580 output = repack_output_file |
| 1581 |
| 1582 if (enable_resource_whitelist_generation) { |
| 1583 repack_whitelist = android_resource_whitelist |
| 1584 deps += [ "//chrome:resource_whitelist" ] |
| 1585 } |
1572 } | 1586 } |
1573 | 1587 |
1574 copy(copy_name) { | 1588 copy(copy_name) { |
1575 visibility = [ ":*" ] | 1589 visibility = [ ":*" ] |
1576 deps = [ | 1590 deps = [ |
1577 ":$repack_name", | 1591 ":$repack_name", |
1578 ] | 1592 ] |
1579 sources = [ | 1593 sources = [ |
1580 repack_output_file, | 1594 repack_output_file, |
1581 ] | 1595 ] |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1675 "//chrome/common", | 1689 "//chrome/common", |
1676 "//chrome/gpu", | 1690 "//chrome/gpu", |
1677 "//chrome/renderer", | 1691 "//chrome/renderer", |
1678 "//chrome/utility", | 1692 "//chrome/utility", |
1679 "//components/safe_browsing_db:safe_browsing_db_mobile", | 1693 "//components/safe_browsing_db:safe_browsing_db_mobile", |
1680 "//content/public/app:both", | 1694 "//content/public/app:both", |
1681 ] | 1695 ] |
1682 } | 1696 } |
1683 } | 1697 } |
1684 | 1698 |
| 1699 if (enable_resource_whitelist_generation) { |
| 1700 action("resource_whitelist") { |
| 1701 deps = [ |
| 1702 "//chrome/android:chrome", |
| 1703 ] |
| 1704 script = "//tools/resources/generate_resource_whitelist.py" |
| 1705 |
| 1706 _infile = "$root_out_dir/libchrome$shlib_extension.whitelist" |
| 1707 inputs = [ |
| 1708 _infile, |
| 1709 ] |
| 1710 |
| 1711 _outfile = android_resource_whitelist |
| 1712 outputs = [ |
| 1713 _outfile, |
| 1714 ] |
| 1715 |
| 1716 args = [ |
| 1717 "-i", |
| 1718 rebase_path(_infile, root_build_dir), |
| 1719 "-o", |
| 1720 rebase_path(_outfile, root_build_dir), |
| 1721 "--out-dir=.", |
| 1722 ] |
| 1723 } |
| 1724 } |
| 1725 |
1685 if (is_linux) { | 1726 if (is_linux) { |
1686 action("manpage") { | 1727 action("manpage") { |
1687 if (is_chrome_branded) { | 1728 if (is_chrome_branded) { |
1688 name = "Google Chrome" | 1729 name = "Google Chrome" |
1689 filename = "google-chrome" | 1730 filename = "google-chrome" |
1690 confdir = "google-chrome" | 1731 confdir = "google-chrome" |
1691 } else { | 1732 } else { |
1692 name = "Chromium" | 1733 name = "Chromium" |
1693 filename = "chromium-browser" | 1734 filename = "chromium-browser" |
1694 confdir = "chromium" | 1735 confdir = "chromium" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1758 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1799 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
1759 "//chrome/tools/build/linux/chrome-wrapper", | 1800 "//chrome/tools/build/linux/chrome-wrapper", |
1760 "//third_party/xdg-utils/scripts/xdg-mime", | 1801 "//third_party/xdg-utils/scripts/xdg-mime", |
1761 "//third_party/xdg-utils/scripts/xdg-settings", | 1802 "//third_party/xdg-utils/scripts/xdg-settings", |
1762 ] | 1803 ] |
1763 outputs = [ | 1804 outputs = [ |
1764 "$root_out_dir/{{source_file_part}}", | 1805 "$root_out_dir/{{source_file_part}}", |
1765 ] | 1806 ] |
1766 } | 1807 } |
1767 } | 1808 } |
OLD | NEW |