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