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

Side by Side Diff: chrome/BUILD.gn

Issue 2175413004: Enable whitelist generation for all builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 } 1464 }
1465 1465
1466 # GYP outputs the file in the gen/repack directory. On non-Mac/iOS platforms 1466 # GYP outputs the file in the gen/repack directory. On non-Mac/iOS platforms
1467 # it them copies it. This skipes the copy step and writes it to the final 1467 # it them copies it. This skipes the copy step and writes it to the final
1468 # location. 1468 # location.
1469 if (is_mac || is_ios) { 1469 if (is_mac || is_ios) {
1470 output = "$root_gen_dir/repack/resources.pak" 1470 output = "$root_gen_dir/repack/resources.pak"
1471 } else { 1471 } else {
1472 output = "$root_out_dir/resources.pak" 1472 output = "$root_out_dir/resources.pak"
1473 } 1473 }
1474
1475 if (is_android && enable_resource_whitelist_generation) {
1476 repack_whitelist = "$root_out_dir/resource_whitelist.txt"
agrieve 2016/07/27 01:42:28 nit: Make a constant for this since it's used in m
estevenson 2016/07/28 21:56:46 Done.
1477 deps += [ "//chrome/android:resource_whitelist" ]
1478 }
1474 } 1479 }
1475 1480
1476 # GYP version: chrome/chrome_resources.gyp:browser_tests_pak 1481 # GYP version: chrome/chrome_resources.gyp:browser_tests_pak
1477 repack("browser_tests_pak") { 1482 repack("browser_tests_pak") {
1478 sources = [ 1483 sources = [
1479 "$root_gen_dir/chrome/options_test_resources.pak", 1484 "$root_gen_dir/chrome/options_test_resources.pak",
1480 "$root_gen_dir/chrome/webui_test_resources.pak", 1485 "$root_gen_dir/chrome/webui_test_resources.pak",
1481 ] 1486 ]
1482 output = "$root_out_dir/browser_tests.pak" 1487 output = "$root_out_dir/browser_tests.pak"
1483 deps = [ 1488 deps = [
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 if (enable_extensions) { 1583 if (enable_extensions) {
1579 sources += [ "$root_gen_dir/extensions/extensions_browser_resources_${perc ent}_percent.pak" ] 1584 sources += [ "$root_gen_dir/extensions/extensions_browser_resources_${perc ent}_percent.pak" ]
1580 deps += [ "//extensions:extensions_browser_resources" ] 1585 deps += [ "//extensions:extensions_browser_resources" ]
1581 } 1586 }
1582 if (enable_app_list) { 1587 if (enable_app_list) {
1583 sources += [ "$root_gen_dir/ui/app_list/resources/app_list_resources_${per cent}_percent.pak" ] 1588 sources += [ "$root_gen_dir/ui/app_list/resources/app_list_resources_${per cent}_percent.pak" ]
1584 deps += [ "//ui/app_list/resources" ] 1589 deps += [ "//ui/app_list/resources" ]
1585 } 1590 }
1586 1591
1587 output = repack_output_file 1592 output = repack_output_file
1593
1594 if (is_android && enable_resource_whitelist_generation) {
1595 repack_whitelist = "$root_out_dir/resource_whitelist.txt"
1596 deps += [ "//chrome/android:resource_whitelist" ]
1597 }
1588 } 1598 }
1589 1599
1590 copy(copy_name) { 1600 copy(copy_name) {
1591 visibility = [ ":*" ] 1601 visibility = [ ":*" ]
1592 deps = [ 1602 deps = [
1593 ":$repack_name", 1603 ":$repack_name",
1594 ] 1604 ]
1595 sources = [ 1605 sources = [
1596 repack_output_file, 1606 repack_output_file,
1597 ] 1607 ]
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1828 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1838 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1829 "//chrome/tools/build/linux/chrome-wrapper", 1839 "//chrome/tools/build/linux/chrome-wrapper",
1830 "//third_party/xdg-utils/scripts/xdg-mime", 1840 "//third_party/xdg-utils/scripts/xdg-mime",
1831 "//third_party/xdg-utils/scripts/xdg-settings", 1841 "//third_party/xdg-utils/scripts/xdg-settings",
1832 ] 1842 ]
1833 outputs = [ 1843 outputs = [
1834 "$root_out_dir/{{source_file_part}}", 1844 "$root_out_dir/{{source_file_part}}",
1835 ] 1845 ]
1836 } 1846 }
1837 } 1847 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698