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

Side by Side Diff: android_webview/BUILD.gn

Issue 1581253002: aw: Configurable system_webview_apk package name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | no next file » | 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("system_webview_apk_tmpl.gni") 9 import("system_webview_apk_tmpl.gni")
10 import("webview_repack_locales.gni") 10 import("webview_repack_locales.gni")
11 11
12 declare_args() {
13 # Package name of the system_webview_apk target.
14 system_webview_package_name = "com.android.webview"
15 }
16
12 if (!defined(use_webview_internal_framework)) { 17 if (!defined(use_webview_internal_framework)) {
13 use_webview_internal_framework = false 18 use_webview_internal_framework = false
14 } 19 }
15 20
16 group("android_webview") { 21 group("android_webview") {
17 if (!use_webview_internal_framework) { 22 if (!use_webview_internal_framework) {
18 deps = [ 23 deps = [
19 ":system_webview_apk", 24 ":system_webview_apk",
20 ] 25 ]
21 } 26 }
22 } 27 }
23 28
24 jinja_template("system_webview_manifest") { 29 jinja_template("system_webview_manifest") {
25 input = "apk/java/AndroidManifest.xml" 30 input = "apk/java/AndroidManifest.xml"
26 output = "$target_gen_dir/system_webview_manifest/AndroidManifest.xml" 31 output = "$target_gen_dir/system_webview_manifest/AndroidManifest.xml"
32 variables = [ "package=$system_webview_package_name" ]
27 } 33 }
28 34
29 webview_repack_locales("repack_locales") { 35 webview_repack_locales("repack_locales") {
30 input_locales = locales 36 input_locales = locales
31 output_locales = locales 37 output_locales = locales
32 } 38 }
33 39
34 locale_pak_resources("locale_paks") { 40 locale_pak_resources("locale_paks") {
35 sources = [ 41 sources = [
36 "$root_out_dir/android_webview/locales/am.pak", 42 "$root_out_dir/android_webview/locales/am.pak",
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 webview_license_path, 154 webview_license_path,
149 ] 155 ]
150 args = [ 156 args = [
151 "notice", 157 "notice",
152 rebase_path(webview_license_path), 158 rebase_path(webview_license_path),
153 ] 159 ]
154 } 160 }
155 161
156 android_resources("system_webview_resources") { 162 android_resources("system_webview_resources") {
157 resource_dirs = [ "apk/java/res" ] 163 resource_dirs = [ "apk/java/res" ]
158 custom_package = "com.android.webview" 164 custom_package = system_webview_package_name
159 } 165 }
160 166
161 android_resources("resources") { 167 android_resources("resources") {
162 resource_dirs = [ "java/res" ] 168 resource_dirs = [ "java/res" ]
163 custom_package = "org.chromium.android_webview" 169 custom_package = "org.chromium.android_webview"
164 deps = [ 170 deps = [
165 ":locale_paks", 171 ":locale_paks",
166 ":strings_grd", 172 ":strings_grd",
167 ] 173 ]
168 } 174 }
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 android_manifest = get_target_outputs(":system_webview_manifest") 655 android_manifest = get_target_outputs(":system_webview_manifest")
650 android_manifest = android_manifest[1] 656 android_manifest = android_manifest[1]
651 android_manifest_dep = ":system_webview_manifest" 657 android_manifest_dep = ":system_webview_manifest"
652 deps = [ 658 deps = [
653 ":system_webview_resources", 659 ":system_webview_resources",
654 "//android_webview/glue", 660 "//android_webview/glue",
655 ] 661 ]
656 apk_name = "SystemWebView" 662 apk_name = "SystemWebView"
657 } 663 }
658 } 664 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698