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

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

Issue 2912393005: Add support for webapk without runtimeHost (part 2) (Closed)
Patch Set: Adopt hdpi logo image. 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 29 matching lines...) Expand all
52 "$target_gen_dir/shell_apk_manifest_javatests/AndroidManifest.xml" 55 "$target_gen_dir/shell_apk_manifest_javatests/AndroidManifest.xml"
53 56
54 manifest_processor_template("shell_apk_manifest") { 57 manifest_processor_template("shell_apk_manifest") {
55 input = "AndroidManifest.xml" 58 input = "AndroidManifest.xml"
56 output = shell_apk_manifest 59 output = shell_apk_manifest
57 60
58 variables = [ 61 variables = [
59 "shell_apk_version=$template_shell_apk_version", 62 "shell_apk_version=$template_shell_apk_version",
60 "manifest_package=org.chromium.webapk", 63 "manifest_package=org.chromium.webapk",
61 "runtime_host=$webapk_runtime_host", 64 "runtime_host=$webapk_runtime_host",
65 "runtime_host_application_name=$webapk_runtime_host_application_name",
62 "start_url=$webapk_start_url", 66 "start_url=$webapk_start_url",
63 "name=$webapk_name", 67 "name=$webapk_name",
64 "short_name=$webapk_short_name", 68 "short_name=$webapk_short_name",
65 "scope_url=$webapk_scope_url", 69 "scope_url=$webapk_scope_url",
66 "display_mode=$webapk_display_mode", 70 "display_mode=$webapk_display_mode",
67 "orientation=$webapk_orientation", 71 "orientation=$webapk_orientation",
68 "theme_color=$webapk_theme_color", 72 "theme_color=$webapk_theme_color",
69 "background_color=$webapk_background_color", 73 "background_color=$webapk_background_color",
70 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes ", 74 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes ",
71 "scope_url_scheme=$webapk_scope_url_scheme", 75 "scope_url_scheme=$webapk_scope_url_scheme",
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 ":webapk_strings_grd", 143 ":webapk_strings_grd",
140 ] 144 ]
141 } 145 }
142 146
143 android_library("webapk_java") { 147 android_library("webapk_java") {
144 java_files = [ 148 java_files = [
145 "src/org/chromium/webapk/shell_apk/DexLoader.java", 149 "src/org/chromium/webapk/shell_apk/DexLoader.java",
146 "src/org/chromium/webapk/shell_apk/HostBrowserClassLoader.java", 150 "src/org/chromium/webapk/shell_apk/HostBrowserClassLoader.java",
147 "src/org/chromium/webapk/shell_apk/ChooseHostBrowserDialog.java", 151 "src/org/chromium/webapk/shell_apk/ChooseHostBrowserDialog.java",
148 "src/org/chromium/webapk/shell_apk/MainActivity.java", 152 "src/org/chromium/webapk/shell_apk/MainActivity.java",
153 "src/org/chromium/webapk/shell_apk/InstallHostBrowserDialog.java",
149 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService.java", 154 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService.java",
150 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService0.java", 155 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService0.java",
151 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService1.java", 156 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService1.java",
152 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService2.java", 157 "src/org/chromium/webapk/shell_apk/WebApkSandboxedProcessService2.java",
153 "src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java", 158 "src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java",
154 "src/org/chromium/webapk/shell_apk/WebApkUtils.java", 159 "src/org/chromium/webapk/shell_apk/WebApkUtils.java",
155 ] 160 ]
156 deps = [ 161 deps = [
157 ":shell_apk_resources", 162 ":shell_apk_resources",
158 "//chrome/android/webapk/libs/common:common_java", 163 "//chrome/android/webapk/libs/common:common_java",
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 java_files = [ 283 java_files = [
279 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java", 284 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java",
280 "junit/src/org/chromium/webapk/shell_apk/WebApkUtilsTest.java", 285 "junit/src/org/chromium/webapk/shell_apk/WebApkUtilsTest.java",
281 ] 286 ]
282 deps = [ 287 deps = [
283 ":webapk_java", 288 ":webapk_java",
284 "//chrome/android/webapk/libs/common:common_java", 289 "//chrome/android/webapk/libs/common:common_java",
285 "//chrome/android/webapk/test:junit_test_support", 290 "//chrome/android/webapk/test:junit_test_support",
286 ] 291 ]
287 } 292 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698