OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/config/locales.gni") | 7 import("//build/config/locales.gni") |
8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
9 import("//tools/resources/generate_resource_whitelist.gni") | 9 import("//tools/resources/generate_resource_whitelist.gni") |
10 import("system_webview_apk_tmpl.gni") | 10 import("system_webview_apk_tmpl.gni") |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 output_locales = locales | 46 output_locales = locales |
47 | 47 |
48 if (enable_resource_whitelist_generation) { | 48 if (enable_resource_whitelist_generation) { |
49 repack_whitelist = system_webview_pak_whitelist | 49 repack_whitelist = system_webview_pak_whitelist |
50 deps = [ | 50 deps = [ |
51 ":system_webview_pak_whitelist", | 51 ":system_webview_pak_whitelist", |
52 ] | 52 ] |
53 } | 53 } |
54 } | 54 } |
55 | 55 |
56 locale_pak_resources("locale_paks") { | 56 locale_pak_assets("locale_pak") { |
| 57 disable_compression = true |
57 sources = [ | 58 sources = [ |
58 "$root_out_dir/android_webview/locales/am.pak", | 59 "$root_out_dir/android_webview/locales/am.pak", |
59 "$root_out_dir/android_webview/locales/ar.pak", | 60 "$root_out_dir/android_webview/locales/ar.pak", |
60 "$root_out_dir/android_webview/locales/bg.pak", | 61 "$root_out_dir/android_webview/locales/bg.pak", |
61 "$root_out_dir/android_webview/locales/bn.pak", | 62 "$root_out_dir/android_webview/locales/bn.pak", |
62 "$root_out_dir/android_webview/locales/ca.pak", | 63 "$root_out_dir/android_webview/locales/ca.pak", |
63 "$root_out_dir/android_webview/locales/cs.pak", | 64 "$root_out_dir/android_webview/locales/cs.pak", |
64 "$root_out_dir/android_webview/locales/da.pak", | 65 "$root_out_dir/android_webview/locales/da.pak", |
65 "$root_out_dir/android_webview/locales/de.pak", | 66 "$root_out_dir/android_webview/locales/de.pak", |
66 "$root_out_dir/android_webview/locales/el.pak", | 67 "$root_out_dir/android_webview/locales/el.pak", |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 "//third_party/icu:icu_assets", | 180 "//third_party/icu:icu_assets", |
180 "//v8:v8_external_startup_data_assets", | 181 "//v8:v8_external_startup_data_assets", |
181 ] | 182 ] |
182 if (android_64bit_target_cpu && build_apk_secondary_abi) { | 183 if (android_64bit_target_cpu && build_apk_secondary_abi) { |
183 deps += [ ":v8_snapshot_secondary_abi_assets" ] | 184 deps += [ ":v8_snapshot_secondary_abi_assets" ] |
184 } | 185 } |
185 } | 186 } |
186 | 187 |
187 android_assets("assets") { | 188 android_assets("assets") { |
188 deps = [ | 189 deps = [ |
| 190 ":locale_pak_assets", |
189 ":monochrome_webview_assets", | 191 ":monochrome_webview_assets", |
190 ":pak_file_assets", | 192 ":pak_file_assets", |
191 ] | 193 ] |
192 } | 194 } |
193 | 195 |
194 action("generate_webview_license_notice") { | 196 action("generate_webview_license_notice") { |
195 script = "tools/webview_licenses.py" | 197 script = "tools/webview_licenses.py" |
196 inputs = exec_script("//android_webview/tools/webview_licenses.py", | 198 inputs = exec_script("//android_webview/tools/webview_licenses.py", |
197 [ "gn_notice_deps" ], | 199 [ "gn_notice_deps" ], |
198 "value") | 200 "value") |
199 inputs += [ "tools/licenses_notice.tmpl" ] | 201 inputs += [ "tools/licenses_notice.tmpl" ] |
200 outputs = [ | 202 outputs = [ |
201 webview_license_path, | 203 webview_license_path, |
202 ] | 204 ] |
203 args = [ | 205 args = [ |
204 "notice", | 206 "notice", |
205 rebase_path(webview_license_path), | 207 rebase_path(webview_license_path), |
206 ] | 208 ] |
207 } | 209 } |
208 | 210 |
209 android_resources("system_webview_resources") { | 211 android_resources("system_webview_resources") { |
210 resource_dirs = [ "apk/java/res" ] | 212 resource_dirs = [ "apk/java/res" ] |
211 custom_package = system_webview_package_name | 213 custom_package = system_webview_package_name |
212 } | 214 } |
213 | 215 |
214 android_resources("resources") { | 216 android_resources("resources") { |
215 resource_dirs = [ "java/res" ] | 217 resource_dirs = [ "java/res" ] |
216 custom_package = "org.chromium.android_webview" | 218 custom_package = "org.chromium.android_webview" |
217 deps = [ | 219 deps = [ |
218 ":locale_paks", | |
219 ":strings_grd", | 220 ":strings_grd", |
220 ] | 221 ] |
221 } | 222 } |
222 | 223 |
223 grit("generate_aw_resources") { | 224 grit("generate_aw_resources") { |
224 source = "ui/aw_resources.grd" | 225 source = "ui/aw_resources.grd" |
225 outputs = [ | 226 outputs = [ |
226 "grit/aw_resources.h", | 227 "grit/aw_resources.h", |
227 "aw_resources.pak", | 228 "aw_resources.pak", |
228 ] | 229 ] |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 system_webview_apk_tmpl("system_webview_apk") { | 841 system_webview_apk_tmpl("system_webview_apk") { |
841 android_manifest = system_webview_android_manifest | 842 android_manifest = system_webview_android_manifest |
842 android_manifest_dep = ":system_webview_manifest" | 843 android_manifest_dep = ":system_webview_manifest" |
843 deps = [ | 844 deps = [ |
844 ":system_webview_resources", | 845 ":system_webview_resources", |
845 "//android_webview/glue", | 846 "//android_webview/glue", |
846 ] | 847 ] |
847 apk_name = "SystemWebView" | 848 apk_name = "SystemWebView" |
848 } | 849 } |
849 } | 850 } |
OLD | NEW |