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

Side by Side Diff: chrome/android/webapk/shell_apk/BUILD.gn

Issue 2912393005: Add support for webapk without runtimeHost (part 2) (Closed)
Patch Set: pkotwicz@'s comments. Created 3 years, 6 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("//build/config/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 import("manifest_processor.gni") 6 import("manifest_processor.gni")
7 import("shell_apk_version.gni") 7 import("shell_apk_version.gni")
8 8
9 declare_args() { 9 declare_args() {
10 # The browser that the WebAPK will be bound to. 10 # The browser that the WebAPK will be bound to.
11 webapk_runtime_host = "com.google.android.apps.chrome" 11 webapk_runtime_host = "com.google.android.apps.chrome"
12 12
13 # The application name of the browser that the WebAPK will be bound to.
14 webapk_runtime_host_application_name = "Chromium"
15
13 # The Url of the Web Manifest file. 16 # The Url of the Web Manifest file.
14 webapk_web_manifest_url = "https://www.template.com/manifest.json" 17 webapk_web_manifest_url = "https://www.template.com/manifest.json"
15 18
16 # Murmur2 hash of the homescreen icon. The hash should be of the icon as it is 19 # Murmur2 hash of the homescreen icon. The hash should be of the icon as it is
17 # available from the web. The icon bytes should not be transformed (e.g. 20 # available from the web. The icon bytes should not be transformed (e.g.
18 # decoded / encoded) prior to taking the hash. 21 # decoded / encoded) prior to taking the hash.
19 webapk_icon_murmur2_hash = "0" 22 webapk_icon_murmur2_hash = "0"
20 23
21 # Attributes from Web Manifest. 24 # Attributes from Web Manifest.
22 webapk_start_url = "https://www.template.com/home_page" 25 webapk_start_url = "https://www.template.com/home_page"
(...skipping 27 matching lines...) Expand all
50 "$target_gen_dir/shell_apk_manifest_javatests/AndroidManifest.xml" 53 "$target_gen_dir/shell_apk_manifest_javatests/AndroidManifest.xml"
51 54
52 manifest_processor_template("shell_apk_manifest") { 55 manifest_processor_template("shell_apk_manifest") {
53 input = "AndroidManifest.xml" 56 input = "AndroidManifest.xml"
54 output = shell_apk_manifest 57 output = shell_apk_manifest
55 58
56 variables = [ 59 variables = [
57 "shell_apk_version=$template_shell_apk_version", 60 "shell_apk_version=$template_shell_apk_version",
58 "manifest_package=org.chromium.webapk", 61 "manifest_package=org.chromium.webapk",
59 "runtime_host=$webapk_runtime_host", 62 "runtime_host=$webapk_runtime_host",
63 "runtime_host_application_name=$webapk_runtime_host_application_name",
60 "start_url=$webapk_start_url", 64 "start_url=$webapk_start_url",
61 "name=$webapk_name", 65 "name=$webapk_name",
62 "short_name=$webapk_short_name", 66 "short_name=$webapk_short_name",
63 "scope_url=$webapk_scope_url", 67 "scope_url=$webapk_scope_url",
64 "display_mode=$webapk_display_mode", 68 "display_mode=$webapk_display_mode",
65 "orientation=$webapk_orientation", 69 "orientation=$webapk_orientation",
66 "theme_color=$webapk_theme_color", 70 "theme_color=$webapk_theme_color",
67 "background_color=$webapk_background_color", 71 "background_color=$webapk_background_color",
68 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes ", 72 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes ",
69 "scope_url_scheme=$webapk_scope_url_scheme", 73 "scope_url_scheme=$webapk_scope_url_scheme",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 ":webapk_strings_grd", 113 ":webapk_strings_grd",
110 ] 114 ]
111 } 115 }
112 116
113 android_library("webapk_java") { 117 android_library("webapk_java") {
114 java_files = [ 118 java_files = [
115 "src/org/chromium/webapk/shell_apk/DexLoader.java", 119 "src/org/chromium/webapk/shell_apk/DexLoader.java",
116 "src/org/chromium/webapk/shell_apk/HostBrowserClassLoader.java", 120 "src/org/chromium/webapk/shell_apk/HostBrowserClassLoader.java",
117 "src/org/chromium/webapk/shell_apk/ChooseHostBrowserDialog.java", 121 "src/org/chromium/webapk/shell_apk/ChooseHostBrowserDialog.java",
118 "src/org/chromium/webapk/shell_apk/MainActivity.java", 122 "src/org/chromium/webapk/shell_apk/MainActivity.java",
123 "src/org/chromium/webapk/shell_apk/InstallHostBrowserDialog.java",
119 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService.java", 124 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService.java",
120 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService0.java", 125 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService0.java",
121 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService1.java", 126 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService1.java",
122 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService2.java", 127 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService2.java",
123 "src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java", 128 "src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java",
124 "src/org/chromium/webapk/shell_apk/WebApkUtils.java", 129 "src/org/chromium/webapk/shell_apk/WebApkUtils.java",
125 ] 130 ]
126 deps = [ 131 deps = [
127 ":shell_apk_resources", 132 ":shell_apk_resources",
128 "//chrome/android/webapk/libs/common:common_java", 133 "//chrome/android/webapk/libs/common:common_java",
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 java_files = [ 247 java_files = [
243 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java", 248 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java",
244 "junit/src/org/chromium/webapk/shell_apk/WebApkUtilsTest.java", 249 "junit/src/org/chromium/webapk/shell_apk/WebApkUtilsTest.java",
245 ] 250 ]
246 deps = [ 251 deps = [
247 ":webapk_java", 252 ":webapk_java",
248 "//chrome/android/webapk/libs/common:common_java", 253 "//chrome/android/webapk/libs/common:common_java",
249 "//chrome/android/webapk/test:junit_test_support", 254 "//chrome/android/webapk/test:junit_test_support",
250 ] 255 ]
251 } 256 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698