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

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

Issue 1193113004: Revert of 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: 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
40 # GYP: //chrome/chrome.gyp:chrome_java (resources part) 27 # GYP: //chrome/chrome.gyp:chrome_java (resources part)
41 android_resources("chrome_java_resources") { 28 android_resources("chrome_java_resources") {
42 resource_dirs = [ 29 resource_dirs = [
43 "java/res", 30 "java/res",
44 "java/res_default", 31 "java/res_default",
45 ] 32 ]
46 deps = [ 33 deps = [
47 ":chrome_locale_paks",
48 ":chrome_strings_grd", 34 ":chrome_strings_grd",
49 "//content/public/android:content_java_resources", 35 "//content/public/android:content_java_resources",
50 "//chrome/app:java_strings_grd", 36 "//chrome/app:java_strings_grd",
51 "//third_party/android_data_chart:android_data_chart_java_resources", 37 "//third_party/android_data_chart:android_data_chart_java_resources",
52 "//third_party/android_media:android_media_resources", 38 "//third_party/android_media:android_media_resources",
53 "//third_party/android_tools:android_support_v7_appcompat_resources", 39 "//third_party/android_tools:android_support_v7_appcompat_resources",
54 ] 40 ]
55 custom_package = "org.chromium.chrome" 41 custom_package = "org.chromium.chrome"
56 } 42 }
57 43
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 resource_dirs = [ "shell/res" ] 235 resource_dirs = [ "shell/res" ]
250 custom_package = "org.chromium.chrome.shell" 236 custom_package = "org.chromium.chrome.shell"
251 } 237 }
252 238
253 # GYP: N/A 239 # GYP: N/A
254 android_library("chrome_shell_java") { 240 android_library("chrome_shell_java") {
255 testonly = true 241 testonly = true
256 deps = [ 242 deps = [
257 ":chrome_shell_resources", 243 ":chrome_shell_resources",
258 ":chrome_java", 244 ":chrome_java",
259 ":chrome_java_resources",
260 "//base:base_java", 245 "//base:base_java",
261 "//content/public/android:content_java", 246 "//content/public/android:content_java",
262 "//components/dom_distiller/android:dom_distiller_content_java", 247 "//components/dom_distiller/android:dom_distiller_content_java",
263 "//components/dom_distiller/android:dom_distiller_core_java", 248 "//components/dom_distiller/android:dom_distiller_core_java",
264 "//components/service_tab_launcher:service_tab_launcher_java", 249 "//components/service_tab_launcher:service_tab_launcher_java",
265 "//components/web_contents_delegate_android:web_contents_delegate_android_ja va", 250 "//components/web_contents_delegate_android:web_contents_delegate_android_ja va",
266 "//printing:printing_java", 251 "//printing:printing_java",
267 "//net/android:net_java", 252 "//net/android:net_java",
268 "//sync/android:sync_java", 253 "//sync/android:sync_java",
269 "//third_party/android_tools:android_support_v13_java", 254 "//third_party/android_tools:android_support_v13_java",
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 libs = [ 710 libs = [
726 "android", 711 "android",
727 "jnigraphics", 712 "jnigraphics",
728 ] 713 ]
729 714
730 defines = [] 715 defines = []
731 } 716 }
732 717
733 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets" 718 chrome_public_apk_assets_dir = "$root_build_dir/chrome_public_apk_assets"
734 719
720 chrome_android_paks_gypi =
721 exec_script("//build/gypi_to_gn.py",
722 [ rebase_path("//chrome/chrome_android_paks.gypi") ],
723 "scope",
724 [ "//chrome/chrome_android_paks.gypi" ])
725
735 copy_ex("chrome_public_apk_assets") { 726 copy_ex("chrome_public_apk_assets") {
736 clear_dir = true 727 clear_dir = true
737 dest = chrome_public_apk_assets_dir 728 dest = chrome_public_apk_assets_dir
738 sources = chrome_android_paks_gypi.chrome_android_pak_input_resources 729 gypi_sources = chrome_android_paks_gypi.chrome_android_pak_input_resources
730 cleaned_sources = rebase_path(gypi_sources, "<(PRODUCT_DIR)")
731 sources = rebase_path(cleaned_sources, ".", root_out_dir)
739 if (icu_use_data_file) { 732 if (icu_use_data_file) {
740 sources += [ "$root_build_dir/icudtl.dat" ] 733 sources += [ "$root_build_dir/icudtl.dat" ]
741 } 734 }
742 deps = [ 735 deps = [
743 "//chrome:packed_extra_resources", 736 "//chrome:packed_extra_resources",
744 "//chrome:packed_resources", 737 "//chrome:packed_resources",
745 "//third_party/icu:icudata", 738 "//third_party/icu:icudata",
746 ] 739 ]
747 740
748 if (v8_use_external_startup_data) { 741 if (v8_use_external_startup_data) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 apk_name = "ChromePublicTest" 832 apk_name = "ChromePublicTest"
840 apk_under_test = ":chrome_public_apk" 833 apk_under_test = ":chrome_public_apk"
841 android_manifest = chrome_public_test_apk_manifest 834 android_manifest = chrome_public_test_apk_manifest
842 deps = [ 835 deps = [
843 ":chrome_public_test_apk_manifest", 836 ":chrome_public_test_apk_manifest",
844 "//chrome/test/android:chrome_staging_test_support_java", 837 "//chrome/test/android:chrome_staging_test_support_java",
845 "//chrome/android:chrome_staging_test_java", 838 "//chrome/android:chrome_staging_test_java",
846 ] 839 ]
847 isolate_file = "../chrome_public_test_apk.isolate" 840 isolate_file = "../chrome_public_test_apk.isolate"
848 } 841 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698