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

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

Issue 1158053005: Android: Store language .pak files in res/raw rather than assets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@load-from-apk-v8
Patch Set: rebased Created 5 years, 6 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/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 import("//build/module_args/v8.gni") 7 import("//build/module_args/v8.gni")
8 import("//chrome/version.gni") 8 import("//chrome/version.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//third_party/icu/config.gni") 10 import("//third_party/icu/config.gni")
11 import("//third_party/protobuf/proto_library.gni") 11 import("//third_party/protobuf/proto_library.gni")
12 import("channel.gni") 12 import("channel.gni")
13 13
14 manifest_package = "org.chromium.chrome" 14 manifest_package = "org.chromium.chrome"
15 if (enable_configuration_policy) { 15 if (enable_configuration_policy) {
16 configuration_policy = 1 16 configuration_policy = 1
17 } else { 17 } else {
18 configuration_policy = 0 18 configuration_policy = 0
19 } 19 }
20 20
21 jinja_variables = [ 21 jinja_variables = [
22 "channel=$android_channel", 22 "channel=$android_channel",
23 "manifest_package=$manifest_package", 23 "manifest_package=$manifest_package",
24 "configuration_policy=$configuration_policy", 24 "configuration_policy=$configuration_policy",
25 ] 25 ]
26 26
27 chrome_android_paks_gypi =
28 exec_script("//build/gypi_to_gn.py",
29 [
30 rebase_path("//chrome/chrome_android_paks.gypi"),
31 "--replace=<(PRODUCT_DIR)=$root_out_dir",
32 ],
33 "scope",
34 [ "//chrome/chrome_android_paks.gypi" ])
35
36 locale_pak_resources("chrome_locale_paks") {
37 sources = chrome_android_paks_gypi.chrome_android_pak_locale_resources
38 }
39
27 # GYP: //chrome/chrome.gyp:chrome_java (resources part) 40 # GYP: //chrome/chrome.gyp:chrome_java (resources part)
28 android_resources("chrome_java_resources") { 41 android_resources("chrome_java_resources") {
29 resource_dirs = [ "java/res" ] 42 resource_dirs = [ "java/res" ]
30 deps = [ 43 deps = [
44 ":chrome_locale_paks",
31 ":chrome_strings_grd", 45 ":chrome_strings_grd",
32 "//content/public/android:content_java_resources", 46 "//content/public/android:content_java_resources",
33 "//chrome/app:java_strings_grd", 47 "//chrome/app:java_strings_grd",
34 "//third_party/android_data_chart:android_data_chart_java_resources", 48 "//third_party/android_data_chart:android_data_chart_java_resources",
35 "//third_party/android_media:android_media_resources", 49 "//third_party/android_media:android_media_resources",
36 "//third_party/android_tools:android_support_v7_appcompat_resources", 50 "//third_party/android_tools:android_support_v7_appcompat_resources",
37 ] 51 ]
38 custom_package = "org.chromium.chrome" 52 custom_package = "org.chromium.chrome"
39 } 53 }
40 54
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 libs = [ 721 libs = [
708 "android", 722 "android",
709 "jnigraphics", 723 "jnigraphics",
710 ] 724 ]
711 725
712 defines = [] 726 defines = []
713 } 727 }
714 728
715 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets" 729 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets"
716 730
717 chrome_android_paks_gypi =
718 exec_script("//build/gypi_to_gn.py",
719 [ rebase_path("//chrome/chrome_android_paks.gypi") ],
720 "scope",
721 [ "//chrome/chrome_android_paks.gypi" ])
722
723 copy_ex("chrome_public_apk_assets") { 731 copy_ex("chrome_public_apk_assets") {
724 clear_dir = true 732 clear_dir = true
725 dest = chrome_public_apk_assets_dir 733 dest = chrome_public_apk_assets_dir
726 gypi_sources = chrome_android_paks_gypi.chrome_android_pak_input_resources 734 sources = chrome_android_paks_gypi.chrome_android_pak_input_resources
727 cleaned_sources = rebase_path(gypi_sources, "<(PRODUCT_DIR)")
728 sources = rebase_path(cleaned_sources, ".", root_out_dir)
729 if (icu_use_data_file) { 735 if (icu_use_data_file) {
730 sources += [ "$root_build_dir/icudtl.dat" ] 736 sources += [ "$root_build_dir/icudtl.dat" ]
731 } 737 }
732 deps = [ 738 deps = [
733 "//chrome:packed_extra_resources", 739 "//chrome:packed_extra_resources",
734 "//chrome:packed_resources", 740 "//chrome:packed_resources",
735 "//third_party/icu:icudata", 741 "//third_party/icu:icudata",
736 ] 742 ]
737 743
738 if (v8_use_external_startup_data) { 744 if (v8_use_external_startup_data) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 apk_name = "ChromePublicTest" 835 apk_name = "ChromePublicTest"
830 apk_under_test = ":chrome_public_apk" 836 apk_under_test = ":chrome_public_apk"
831 android_manifest = chrome_public_test_apk_manifest 837 android_manifest = chrome_public_test_apk_manifest
832 deps = [ 838 deps = [
833 ":chrome_public_test_apk_manifest", 839 ":chrome_public_test_apk_manifest",
834 "//chrome/test/android:chrome_staging_test_support_java", 840 "//chrome/test/android:chrome_staging_test_support_java",
835 "//chrome/android:chrome_staging_test_java", 841 "//chrome/android:chrome_staging_test_java",
836 ] 842 ]
837 isolate_file = "../chrome_public_test_apk.isolate" 843 isolate_file = "../chrome_public_test_apk.isolate"
838 } 844 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698