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

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

Issue 1200583002: Revert "Android: Store language .pak files in res/raw rather than assets" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 deps = [
40 "//chrome:packed_resources",
41 ]
42 }
43
44 # GYP: //chrome/chrome.gyp:chrome_java (resources part) 27 # GYP: //chrome/chrome.gyp:chrome_java (resources part)
45 android_resources("chrome_java_resources") { 28 android_resources("chrome_java_resources") {
46 resource_dirs = [ 29 resource_dirs = [
47 "java/res", 30 "java/res",
48 "java/res_default", 31 "java/res_default",
49 ] 32 ]
50 deps = [ 33 deps = [
51 ":chrome_locale_paks",
52 ":chrome_strings_grd", 34 ":chrome_strings_grd",
53 "//content/public/android:content_java_resources", 35 "//content/public/android:content_java_resources",
54 "//chrome/app:java_strings_grd", 36 "//chrome/app:java_strings_grd",
55 "//third_party/android_data_chart:android_data_chart_java_resources", 37 "//third_party/android_data_chart:android_data_chart_java_resources",
56 "//third_party/android_media:android_media_resources", 38 "//third_party/android_media:android_media_resources",
57 "//third_party/android_tools:android_support_v7_appcompat_resources", 39 "//third_party/android_tools:android_support_v7_appcompat_resources",
58 ] 40 ]
59 custom_package = "org.chromium.chrome" 41 custom_package = "org.chromium.chrome"
60 } 42 }
61 43
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 resource_dirs = [ "shell/res" ] 235 resource_dirs = [ "shell/res" ]
254 custom_package = "org.chromium.chrome.shell" 236 custom_package = "org.chromium.chrome.shell"
255 } 237 }
256 238
257 # GYP: N/A 239 # GYP: N/A
258 android_library("chrome_shell_java") { 240 android_library("chrome_shell_java") {
259 testonly = true 241 testonly = true
260 deps = [ 242 deps = [
261 ":chrome_shell_resources", 243 ":chrome_shell_resources",
262 ":chrome_java", 244 ":chrome_java",
263 ":chrome_java_resources",
264 "//base:base_java", 245 "//base:base_java",
265 "//content/public/android:content_java", 246 "//content/public/android:content_java",
266 "//components/dom_distiller/android:dom_distiller_content_java", 247 "//components/dom_distiller/android:dom_distiller_content_java",
267 "//components/dom_distiller/android:dom_distiller_core_java", 248 "//components/dom_distiller/android:dom_distiller_core_java",
268 "//components/service_tab_launcher:service_tab_launcher_java", 249 "//components/service_tab_launcher:service_tab_launcher_java",
269 "//components/web_contents_delegate_android:web_contents_delegate_android_ja va", 250 "//components/web_contents_delegate_android:web_contents_delegate_android_ja va",
270 "//printing:printing_java", 251 "//printing:printing_java",
271 "//net/android:net_java", 252 "//net/android:net_java",
272 "//sync/android:sync_java", 253 "//sync/android:sync_java",
273 "//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
729 libs = [ 710 libs = [
730 "android", 711 "android",
731 "jnigraphics", 712 "jnigraphics",
732 ] 713 ]
733 714
734 defines = [] 715 defines = []
735 } 716 }
736 717
737 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"
738 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
739 copy_ex("chrome_public_apk_assets") { 726 copy_ex("chrome_public_apk_assets") {
740 clear_dir = true 727 clear_dir = true
741 dest = chrome_public_apk_assets_dir 728 dest = chrome_public_apk_assets_dir
742 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)
743 if (icu_use_data_file) { 732 if (icu_use_data_file) {
744 sources += [ "$root_build_dir/icudtl.dat" ] 733 sources += [ "$root_build_dir/icudtl.dat" ]
745 } 734 }
746 deps = [ 735 deps = [
747 "//chrome:packed_extra_resources", 736 "//chrome:packed_extra_resources",
748 "//chrome:packed_resources", 737 "//chrome:packed_resources",
749 "//third_party/icu:icudata", 738 "//third_party/icu:icudata",
750 ] 739 ]
751 740
752 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
843 apk_name = "ChromePublicTest" 832 apk_name = "ChromePublicTest"
844 apk_under_test = ":chrome_public_apk" 833 apk_under_test = ":chrome_public_apk"
845 android_manifest = chrome_public_test_apk_manifest 834 android_manifest = chrome_public_test_apk_manifest
846 deps = [ 835 deps = [
847 ":chrome_public_test_apk_manifest", 836 ":chrome_public_test_apk_manifest",
848 "//chrome/test/android:chrome_staging_test_support_java", 837 "//chrome/test/android:chrome_staging_test_support_java",
849 "//chrome/android:chrome_staging_test_java", 838 "//chrome/android:chrome_staging_test_java",
850 ] 839 ]
851 isolate_file = "../chrome_public_test_apk.isolate" 840 isolate_file = "../chrome_public_test_apk.isolate"
852 } 841 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698