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

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

Issue 2779253002: Switch from jinja to mustache templates (Closed)
Patch Set: switch template to no escaping Created 3 years, 8 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("shell_apk_version.gni") 7 import("shell_apk_version.gni")
7 8
8 declare_args() { 9 declare_args() {
9 # The browser that the WebAPK will be bound to. 10 # The browser that the WebAPK will be bound to.
10 webapk_runtime_host = "com.google.android.apps.chrome" 11 webapk_runtime_host = "com.google.android.apps.chrome"
11 12
12 # The Url of the Web Manifest file. 13 # The Url of the Web Manifest file.
13 webapk_web_manifest_url = "https://www.template.com/manifest.json" 14 webapk_web_manifest_url = "https://www.template.com/manifest.json"
14 15
15 # Murmur2 hash of the homescreen icon. The hash should be of the icon as it is 16 # Murmur2 hash of the homescreen icon. The hash should be of the icon as it is
(...skipping 25 matching lines...) Expand all
41 webapk_version_code = "1" 42 webapk_version_code = "1"
42 43
43 # Android version name for the WebAPK. 44 # Android version name for the WebAPK.
44 webapk_version_name = "1.0" 45 webapk_version_name = "1.0"
45 } 46 }
46 47
47 shell_apk_manifest = "$target_gen_dir/shell_apk_manifest/AndroidManifest.xml" 48 shell_apk_manifest = "$target_gen_dir/shell_apk_manifest/AndroidManifest.xml"
48 shell_apk_manifest_javatests = 49 shell_apk_manifest_javatests =
49 "$target_gen_dir/shell_apk_manifest_javatests/AndroidManifest.xml" 50 "$target_gen_dir/shell_apk_manifest_javatests/AndroidManifest.xml"
50 51
51 jinja_template("shell_apk_manifest") { 52 manifest_processor_template("shell_apk_manifest") {
52 input = "AndroidManifest.xml" 53 input = "AndroidManifest.xml"
53 output = shell_apk_manifest 54 output = shell_apk_manifest
54 55
55 variables = [ 56 variables = [
56 "shell_apk_version=$shell_apk_version", 57 "shell_apk_version=$shell_apk_version",
57 "manifest_package=org.chromium.webapk", 58 "manifest_package=org.chromium.webapk",
58 "runtime_host=$webapk_runtime_host", 59 "runtime_host=$webapk_runtime_host",
59 "start_url=$webapk_start_url", 60 "start_url=$webapk_start_url",
60 "name=$webapk_name", 61 "name=$webapk_name",
61 "short_name=$webapk_short_name", 62 "short_name=$webapk_short_name",
62 "scope_url=$webapk_scope_url", 63 "scope_url=$webapk_scope_url",
63 "display_mode=$webapk_display_mode", 64 "display_mode=$webapk_display_mode",
64 "orientation=$webapk_orientation", 65 "orientation=$webapk_orientation",
65 "theme_color=$webapk_theme_color", 66 "theme_color=$webapk_theme_color",
66 "background_color=$webapk_background_color", 67 "background_color=$webapk_background_color",
67 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes ", 68 "icon_urls_and_icon_murmur2_hashes=$webapk_icon_urls_and_icon_murmur2_hashes ",
68 "scope_url_scheme=$webapk_scope_url_scheme", 69 "scope_url_scheme=$webapk_scope_url_scheme",
69 "scope_url_host=$webapk_scope_url_host", 70 "scope_url_host=$webapk_scope_url_host",
70 "scope_url_path=$webapk_scope_url_path", 71 "scope_url_path=$webapk_scope_url_path",
71 "web_manifest_url=$webapk_web_manifest_url", 72 "web_manifest_url=$webapk_web_manifest_url",
72 "version_code=$webapk_version_code", 73 "version_code=$webapk_version_code",
73 "version_name=$webapk_version_name", 74 "version_name=$webapk_version_name",
74 ] 75 ]
75 } 76 }
76 77
77 # Manifest for instrumentation tests. Cannot be customized via GN args. 78 # Manifest for instrumentation tests. Cannot be customized via GN args.
78 jinja_template("shell_apk_manifest_javatests") { 79 manifest_processor_template("shell_apk_manifest_javatests") {
79 input = "AndroidManifest.xml" 80 input = "AndroidManifest.xml"
80 output = shell_apk_manifest_javatests 81 output = shell_apk_manifest_javatests
81 82
82 variables = [ 83 variables = [
83 "shell_apk_version=$shell_apk_version", 84 "shell_apk_version=$shell_apk_version",
84 "manifest_package=org.chromium.webapk.test", 85 "manifest_package=org.chromium.webapk.test",
85 "runtime_host=org.chromium.chrome", 86 "runtime_host=org.chromium.chrome",
86 "start_url=https://www.template.com/home_page", 87 "start_url=https://www.template.com/home_page",
87 "name=Test", 88 "name=Test",
88 "short_name=Test", 89 "short_name=Test",
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 java_files = [ 188 java_files = [
188 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java", 189 "junit/src/org/chromium/webapk/shell_apk/HostBrowserClassLoaderTest.java",
189 "junit/src/org/chromium/webapk/shell_apk/MainActivityTest.java", 190 "junit/src/org/chromium/webapk/shell_apk/MainActivityTest.java",
190 ] 191 ]
191 deps = [ 192 deps = [
192 ":webapk_java", 193 ":webapk_java",
193 "//chrome/android/webapk/libs/common:common_java", 194 "//chrome/android/webapk/libs/common:common_java",
194 "//chrome/android/webapk/test:junit_test_support", 195 "//chrome/android/webapk/test:junit_test_support",
195 ] 196 ]
196 } 197 }
OLDNEW
« no previous file with comments | « chrome/android/webapk/shell_apk/AndroidManifest.xml ('k') | chrome/android/webapk/shell_apk/manifest_processor.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698