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

Side by Side Diff: android_webview/BUILD.gn

Issue 2371843002: Reland of Move language pak files to assets. (Closed)
Patch Set: Fix ContentShell context setPrivateDataPrefix that was breaking tests Created 4 years, 2 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
« no previous file with comments | « no previous file | android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 android_assets("locale_pak_assets") {
57 disable_compression = true
57 sources = [] 58 sources = []
58 foreach(_locale, locales) { 59 foreach(_locale, locales) {
59 sources += [ "$root_out_dir/android_webview/locales/$_locale.pak" ] 60 sources += [ "$root_out_dir/android_webview/locales/$_locale.pak" ]
60 } 61 }
61 deps = [ 62 deps = [
62 ":repack_locales", 63 ":repack_locales",
63 ] 64 ]
64 } 65 }
65 66
66 repack("repack_pack") { 67 repack("repack_pack") {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 "//third_party/icu:icu_assets", 129 "//third_party/icu:icu_assets",
129 "//v8:v8_external_startup_data_assets", 130 "//v8:v8_external_startup_data_assets",
130 ] 131 ]
131 if (android_64bit_target_cpu && build_apk_secondary_abi) { 132 if (android_64bit_target_cpu && build_apk_secondary_abi) {
132 deps += [ ":v8_snapshot_secondary_abi_assets" ] 133 deps += [ ":v8_snapshot_secondary_abi_assets" ]
133 } 134 }
134 } 135 }
135 136
136 android_assets("assets") { 137 android_assets("assets") {
137 deps = [ 138 deps = [
139 ":locale_pak_assets",
138 ":monochrome_webview_assets", 140 ":monochrome_webview_assets",
139 ":pak_file_assets", 141 ":pak_file_assets",
140 ] 142 ]
141 } 143 }
142 144
143 action("generate_webview_license_notice") { 145 action("generate_webview_license_notice") {
144 script = "tools/webview_licenses.py" 146 script = "tools/webview_licenses.py"
145 inputs = exec_script("//android_webview/tools/webview_licenses.py", 147 inputs = exec_script("//android_webview/tools/webview_licenses.py",
146 [ "gn_notice_deps" ], 148 [ "gn_notice_deps" ],
147 "value") 149 "value")
148 inputs += [ "tools/licenses_notice.tmpl" ] 150 inputs += [ "tools/licenses_notice.tmpl" ]
149 outputs = [ 151 outputs = [
150 webview_license_path, 152 webview_license_path,
151 ] 153 ]
152 args = [ 154 args = [
153 "notice", 155 "notice",
154 rebase_path(webview_license_path), 156 rebase_path(webview_license_path),
155 ] 157 ]
156 } 158 }
157 159
158 android_resources("system_webview_resources") { 160 android_resources("system_webview_resources") {
159 resource_dirs = [ "apk/java/res" ] 161 resource_dirs = [ "apk/java/res" ]
160 custom_package = system_webview_package_name 162 custom_package = system_webview_package_name
161 } 163 }
162 164
163 android_resources("resources") { 165 android_resources("resources") {
164 resource_dirs = [ "java/res" ] 166 resource_dirs = [ "java/res" ]
165 custom_package = "org.chromium.android_webview" 167 custom_package = "org.chromium.android_webview"
166 deps = [ 168 deps = [
167 ":locale_paks",
168 ":strings_grd", 169 ":strings_grd",
169 ] 170 ]
170 } 171 }
171 172
172 grit("generate_aw_resources") { 173 grit("generate_aw_resources") {
173 source = "ui/aw_resources.grd" 174 source = "ui/aw_resources.grd"
174 outputs = [ 175 outputs = [
175 "grit/aw_resources.h", 176 "grit/aw_resources.h",
176 "aw_resources.pak", 177 "aw_resources.pak",
177 ] 178 ]
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 system_webview_apk_tmpl("system_webview_apk") { 691 system_webview_apk_tmpl("system_webview_apk") {
691 android_manifest = system_webview_android_manifest 692 android_manifest = system_webview_android_manifest
692 android_manifest_dep = ":system_webview_manifest" 693 android_manifest_dep = ":system_webview_manifest"
693 deps = [ 694 deps = [
694 ":system_webview_resources", 695 ":system_webview_resources",
695 "//android_webview/glue", 696 "//android_webview/glue",
696 ] 697 ]
697 apk_name = "SystemWebView" 698 apk_name = "SystemWebView"
698 } 699 }
699 } 700 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698