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

Side by Side Diff: android_webview/BUILD.gn

Issue 2634563002: android_webview: support building a stub WebView. (Closed)
Patch Set: add comment describing new option Created 3 years, 9 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 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("//android_webview/system_webview_apk_tmpl.gni") 5 import("//android_webview/system_webview_apk_tmpl.gni")
6 import("//android_webview/webview_repack_locales.gni") 6 import("//android_webview/webview_repack_locales.gni")
7 import("//build/config/android/config.gni") 7 import("//build/config/android/config.gni")
8 import("//build/config/android/rules.gni") 8 import("//build/config/android/rules.gni")
9 import("//build/config/locales.gni") 9 import("//build/config/locales.gni")
10 import("//components/spellcheck/spellcheck_build_features.gni") 10 import("//components/spellcheck/spellcheck_build_features.gni")
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 if (enable_resource_whitelist_generation) { 23 if (enable_resource_whitelist_generation) {
24 system_webview_pak_whitelist = 24 system_webview_pak_whitelist =
25 "$target_gen_dir/system_webview_pak_whitelist.txt" 25 "$target_gen_dir/system_webview_pak_whitelist.txt"
26 } 26 }
27 27
28 system_webview_android_manifest = 28 system_webview_android_manifest =
29 "$target_gen_dir/system_webview_apk/AndroidManifest.xml" 29 "$target_gen_dir/system_webview_apk/AndroidManifest.xml"
30 30
31 # TODO(torne): uncomment this once Android is updated to support loading this
jbudorick 2017/02/28 16:36:27 I think I'd prefer this be omitted until Android i
michaelbai 2017/02/28 18:58:39 Agreed, since there is internal target, once Andro
Torne 2017/03/01 10:56:29 No, we won't upstream the internal target - it has
michaelbai 2017/03/01 17:15:35 Thanks, I actually thought about the same thing, '
32 # form of stub APK.
33 #system_webview_stub_android_manifest =
34 # "$target_gen_dir/system_webview_stub_apk/AndroidManifest.xml"
35
31 group("android_webview") { 36 group("android_webview") {
32 if (!use_webview_internal_framework) { 37 if (!use_webview_internal_framework) {
33 deps = [ 38 deps = [
34 ":system_webview_apk", 39 ":system_webview_apk",
35 ] 40 ]
36 } 41 }
37 } 42 }
38 43
39 jinja_template("system_webview_manifest") { 44 jinja_template("system_webview_manifest") {
40 input = "apk/java/AndroidManifest.xml" 45 input = "apk/java/AndroidManifest.xml"
41 output = system_webview_android_manifest 46 output = system_webview_android_manifest
42 variables = [ "package=$system_webview_package_name" ] 47 variables = [ "package=$system_webview_package_name" ]
43 } 48 }
44 49
50 # TODO(torne): uncomment this once Android is updated to support loading this
51 # form of stub APK.
52 #jinja_template("system_webview_stub_manifest") {
53 # input = "apk/java/AndroidManifest.xml"
54 # output = system_webview_stub_android_manifest
55 # variables = [
56 # "package=$system_webview_package_name",
57 # "library=libmonochrome.so",
58 # "donor_package=org.chromium.chrome",
59 # "minsdk=TBD",
60 # "targetsdk=TBD",
61 # ]
62 #}
63
45 webview_repack_locales("repack_locales") { 64 webview_repack_locales("repack_locales") {
46 input_locales = locales 65 input_locales = locales
47 output_locales = locales 66 output_locales = locales
48 67
49 if (enable_resource_whitelist_generation) { 68 if (enable_resource_whitelist_generation) {
50 repack_whitelist = system_webview_pak_whitelist 69 repack_whitelist = system_webview_pak_whitelist
51 deps = [ 70 deps = [
52 ":system_webview_pak_whitelist", 71 ":system_webview_pak_whitelist",
53 ] 72 ]
54 } 73 }
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 if (!use_webview_internal_framework) { 819 if (!use_webview_internal_framework) {
801 system_webview_apk_tmpl("system_webview_apk") { 820 system_webview_apk_tmpl("system_webview_apk") {
802 android_manifest = system_webview_android_manifest 821 android_manifest = system_webview_android_manifest
803 android_manifest_dep = ":system_webview_manifest" 822 android_manifest_dep = ":system_webview_manifest"
804 deps = [ 823 deps = [
805 ":system_webview_resources", 824 ":system_webview_resources",
806 "//android_webview/glue", 825 "//android_webview/glue",
807 ] 826 ]
808 apk_name = "SystemWebView" 827 apk_name = "SystemWebView"
809 } 828 }
829 # TODO(torne): uncomment this once Android is updated to support loading this
830 # form of stub APK.
831 #android_apk("system_webview_stub_apk") {
832 # android_manifest = system_webview_stub_android_manifest
833 # android_manifest_dep = ":system_webview_stub_manifest"
834 # deps = [
835 # ":system_webview_resources",
836 # ]
837 # apk_name = "SystemWebViewStub"
838 # generate_buildconfig_java = false
839 #}
810 } 840 }
OLDNEW
« no previous file with comments | « no previous file | android_webview/apk/java/AndroidManifest.xml » ('j') | android_webview/apk/java/AndroidManifest.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698