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

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

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