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

Side by Side Diff: chrome/android/BUILD.gn

Issue 2894763002: Revert of Separate WebView's locale paks from Chrome's locale paks (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « android_webview/BUILD.gn ('k') | chrome/browser/chrome_browser_main_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//android_webview/webview_repack_locales_list.gni")
5 import("//build/config/android/config.gni") 6 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni") 7 import("//build/config/android/rules.gni")
7 import("//build/util/process_version.gni") 8 import("//build/util/process_version.gni")
8 import("//chrome/android/chrome_public_apk_tmpl.gni") 9 import("//chrome/android/chrome_public_apk_tmpl.gni")
9 import("//chrome/android/monochrome_android_manifest_jinja_variables.gni") 10 import("//chrome/android/monochrome_android_manifest_jinja_variables.gni")
10 import("//chrome/chrome_paks.gni") 11 import("//chrome/chrome_paks.gni")
11 import("//chrome/common/features.gni") 12 import("//chrome/common/features.gni")
12 import("//chrome/process_version_rc_template.gni") # For branding_file_path. 13 import("//chrome/process_version_rc_template.gni") # For branding_file_path.
13 import("//device/vr/features/features.gni") 14 import("//device/vr/features/features.gni")
14 import("//testing/test.gni") 15 import("//testing/test.gni")
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 android_assets("chrome_public_pak_assets") { 593 android_assets("chrome_public_pak_assets") {
593 sources = [ 594 sources = [
594 "$root_out_dir/chrome_100_percent.pak", 595 "$root_out_dir/chrome_100_percent.pak",
595 "$root_out_dir/resources.pak", 596 "$root_out_dir/resources.pak",
596 ] 597 ]
597 disable_compression = true 598 disable_compression = true
598 599
599 deps = [ 600 deps = [
600 ":chrome_public_locale_pak_assets", 601 ":chrome_public_locale_pak_assets",
601 "//chrome:packed_resources", 602 "//chrome:packed_resources",
603 "//chrome/android/webapk/libs/runtime_library:runtime_library_assets",
604 "//third_party/icu:icu_assets",
605 "//v8:v8_external_startup_data_assets",
602 ] 606 ]
603 } 607 }
604 608
605 # This target is separate from chrome_public_pak_assets because it does not 609 # This target is separate from chrome_public_pak_assets because it does not
606 # disable compression. 610 # disable compression.
607 android_assets("chrome_public_locale_pak_assets") { 611 android_assets("chrome_public_locale_pak_assets") {
608 sources = [] 612 sources = []
609 foreach(_locale, locales - android_chrome_omitted_locales) { 613 foreach(_locale, locales - android_chrome_omitted_locales) {
610 sources += [ "$root_out_dir/locales/$_locale.pak" ] 614 sources += [ "$root_out_dir/locales/$_locale.pak" ]
611 } 615 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 deps = [ 685 deps = [
682 ":monochrome($_fat_lib_toolchain)", 686 ":monochrome($_fat_lib_toolchain)",
683 ] 687 ]
684 688
685 input = get_label_info(deps[0], "root_out_dir") + 689 input = get_label_info(deps[0], "root_out_dir") +
686 "/libmonochrome$shlib_extension.whitelist" 690 "/libmonochrome$shlib_extension.whitelist"
687 output = monochrome_resource_whitelist 691 output = monochrome_resource_whitelist
688 } 692 }
689 } 693 }
690 694
691 # This target does not output locale paks.
692 chrome_paks("monochrome_paks") { 695 chrome_paks("monochrome_paks") {
693 output_dir = "$target_gen_dir/$target_name" 696 output_dir = "$target_gen_dir/$target_name"
694 697
695 additional_extra_paks = [ "$root_gen_dir/android_webview/aw_resources.pak" ] 698 additional_extra_paks = [ "$root_gen_dir/android_webview/aw_resources.pak" ]
696 deps = [ 699 deps = [
697 "//android_webview:generate_aw_resources", 700 "//android_webview:generate_aw_resources",
698 ] 701 ]
699 702
700 exclude_locale_paks = true 703 additional_locale_source_patterns = webview_repack_locales_source_patterns
704 deps += webview_repack_locales_deps
701 705
702 if (enable_resource_whitelist_generation) { 706 if (enable_resource_whitelist_generation) {
703 repack_whitelist = monochrome_resource_whitelist 707 repack_whitelist = monochrome_resource_whitelist
704 deps += [ ":monochrome_resource_whitelist" ] 708 deps += [ ":monochrome_resource_whitelist" ]
705 } 709 }
706 } 710 }
707 711
708 # This target explicitly includes locale paks via deps.
709 android_assets("monochrome_pak_assets") { 712 android_assets("monochrome_pak_assets") {
710 sources = [ 713 sources = [
711 "$target_gen_dir/monochrome_paks/chrome_100_percent.pak", 714 "$target_gen_dir/monochrome_paks/chrome_100_percent.pak",
712 "$target_gen_dir/monochrome_paks/resources.pak", 715 "$target_gen_dir/monochrome_paks/resources.pak",
713 ] 716 ]
717 foreach(_locale, locales) {
718 sources += [ "$target_gen_dir/monochrome_paks/locales/$_locale.pak" ]
719 }
714 disable_compression = true 720 disable_compression = true
715 721
716 deps = [ 722 deps = [
717 ":chrome_public_locale_pak_assets",
718 ":monochrome_paks", 723 ":monochrome_paks",
719 "//android_webview:locale_pak_assets",
720 ] 724 ]
721 } 725 }
722 } # current_toolchain == host_toolchain 726 } # current_toolchain == host_toolchain
723 727
724 # 728 #
725 # Only 32-bit //chrome/android/monochrome is needed, beside 729 # Only 32-bit //chrome/android/monochrome is needed, beside
726 # being built with 32-bit default toolchain, it is also built 730 # being built with 32-bit default toolchain, it is also built
727 # with secondary 32-bit toolchain in 64-bit platform because we 731 # with secondary 32-bit toolchain in 64-bit platform because we
728 # need 64-bit //android_webview/monochrome and 32-bit this target 732 # need 64-bit //android_webview/monochrome and 32-bit this target
729 # for 64-bit APK. 733 # for 64-bit APK.
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 apk_name = "ChromeSyncShellTest" 962 apk_name = "ChromeSyncShellTest"
959 apk_under_test = ":chrome_sync_shell_apk" 963 apk_under_test = ":chrome_sync_shell_apk"
960 android_manifest = chrome_sync_shell_test_apk_manifest 964 android_manifest = chrome_sync_shell_test_apk_manifest
961 android_manifest_dep = ":chrome_sync_shell_test_apk_manifest" 965 android_manifest_dep = ":chrome_sync_shell_test_apk_manifest"
962 deps = [ 966 deps = [
963 ":chrome_sync_shell_test_apk_java", 967 ":chrome_sync_shell_test_apk_java",
964 "//third_party/android_support_test_runner:runner_java", 968 "//third_party/android_support_test_runner:runner_java",
965 ] 969 ]
966 proguard_enabled = !is_java_debug 970 proguard_enabled = !is_java_debug
967 } 971 }
OLDNEW
« no previous file with comments | « android_webview/BUILD.gn ('k') | chrome/browser/chrome_browser_main_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698