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 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1446 } | 1446 } |
1447 | 1447 |
1448 if (is_mac) { | 1448 if (is_mac) { |
1449 output = "$root_gen_dir/repack/resources.pak" | 1449 output = "$root_gen_dir/repack/resources.pak" |
1450 } else { | 1450 } else { |
1451 output = "$root_out_dir/resources.pak" | 1451 output = "$root_out_dir/resources.pak" |
1452 } | 1452 } |
1453 | 1453 |
1454 if (enable_resource_whitelist_generation) { | 1454 if (enable_resource_whitelist_generation) { |
1455 repack_whitelist = android_resource_whitelist | 1455 repack_whitelist = android_resource_whitelist |
1456 deps += [ ":resource_whitelist" ] | 1456 deps += [ "//chrome:resource_whitelist" ] |
1457 } | 1457 } |
1458 } | 1458 } |
1459 | 1459 |
1460 # GYP version: chrome/chrome_resources.gyp:browser_tests_pak | 1460 # GYP version: chrome/chrome_resources.gyp:browser_tests_pak |
1461 repack("browser_tests_pak") { | 1461 repack("browser_tests_pak") { |
1462 sources = [ | 1462 sources = [ |
1463 "$root_gen_dir/chrome/options_test_resources.pak", | 1463 "$root_gen_dir/chrome/options_test_resources.pak", |
1464 "$root_gen_dir/chrome/webui_test_resources.pak", | 1464 "$root_gen_dir/chrome/webui_test_resources.pak", |
1465 ] | 1465 ] |
1466 output = "$root_out_dir/browser_tests.pak" | 1466 output = "$root_out_dir/browser_tests.pak" |
1467 deps = [ | 1467 deps = [ |
1468 "//chrome/browser/resources:options_test_resources", | 1468 "//chrome/browser/resources:options_test_resources", |
1469 "//chrome/test/data:webui_test_resources", | 1469 "//chrome/test/data:webui_test_resources", |
1470 ] | 1470 ] |
1471 } | 1471 } |
1472 | 1472 |
1473 # Collects per-locale grit files from many sources into global per-locale files. | 1473 # Collects per-locale grit files from many sources into global per-locale files. |
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 = [ | |
1488 ":resource_whitelist", | |
1489 ] | |
1490 } | |
1491 } | 1484 } |
1492 | 1485 |
1493 chrome_repack_locales("repack_pseudo_locales_pack") { | 1486 chrome_repack_locales("repack_pseudo_locales_pack") { |
1494 visibility = [ ":*" ] | 1487 visibility = [ ":*" ] |
1495 | 1488 |
1496 input_locales = [ "fake-bidi" ] | 1489 input_locales = [ "fake-bidi" ] |
1497 | 1490 |
1498 if (is_mac) { | 1491 if (is_mac) { |
1499 output_locales = [ "fake_bidi" ] # Mac uses underscores. | 1492 output_locales = [ "fake_bidi" ] # Mac uses underscores. |
1500 } else { | 1493 } else { |
1501 output_locales = [ "fake-bidi" ] | 1494 output_locales = [ "fake-bidi" ] |
1502 } | 1495 } |
1503 | |
1504 if (enable_resource_whitelist_generation) { | |
1505 repack_whitelist = android_resource_whitelist | |
1506 deps = [ | |
1507 ":resource_whitelist", | |
1508 ] | |
1509 } | |
1510 } | 1496 } |
1511 | 1497 |
1512 # 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 |
1513 # 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 |
1514 # 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 |
1515 # build directory. | 1501 # build directory. |
1516 # | 1502 # |
1517 # 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 |
1518 # 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 |
1519 # 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1573 } | 1559 } |
1574 if (enable_app_list) { | 1560 if (enable_app_list) { |
1575 sources += [ "$root_gen_dir/ui/app_list/resources/app_list_resources_${per
cent}_percent.pak" ] | 1561 sources += [ "$root_gen_dir/ui/app_list/resources/app_list_resources_${per
cent}_percent.pak" ] |
1576 deps += [ "//ui/app_list/resources" ] | 1562 deps += [ "//ui/app_list/resources" ] |
1577 } | 1563 } |
1578 | 1564 |
1579 output = repack_output_file | 1565 output = repack_output_file |
1580 | 1566 |
1581 if (enable_resource_whitelist_generation) { | 1567 if (enable_resource_whitelist_generation) { |
1582 repack_whitelist = android_resource_whitelist | 1568 repack_whitelist = android_resource_whitelist |
1583 deps += [ ":resource_whitelist" ] | 1569 deps += [ "//chrome:resource_whitelist" ] |
1584 } | 1570 } |
1585 } | 1571 } |
1586 | 1572 |
1587 copy(copy_name) { | 1573 copy(copy_name) { |
1588 visibility = [ ":*" ] | 1574 visibility = [ ":*" ] |
1589 deps = [ | 1575 deps = [ |
1590 ":$repack_name", | 1576 ":$repack_name", |
1591 ] | 1577 ] |
1592 sources = [ | 1578 sources = [ |
1593 repack_output_file, | 1579 repack_output_file, |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1799 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1785 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
1800 "//chrome/tools/build/linux/chrome-wrapper", | 1786 "//chrome/tools/build/linux/chrome-wrapper", |
1801 "//third_party/xdg-utils/scripts/xdg-mime", | 1787 "//third_party/xdg-utils/scripts/xdg-mime", |
1802 "//third_party/xdg-utils/scripts/xdg-settings", | 1788 "//third_party/xdg-utils/scripts/xdg-settings", |
1803 ] | 1789 ] |
1804 outputs = [ | 1790 outputs = [ |
1805 "$root_out_dir/{{source_file_part}}", | 1791 "$root_out_dir/{{source_file_part}}", |
1806 ] | 1792 ] |
1807 } | 1793 } |
1808 } | 1794 } |
OLD | NEW |