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

Unified Diff: chrome/android/webapk/shell_apk/manifest_processor.gni

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/webapk/shell_apk/BUILD.gn ('k') | chrome/android/webapk/shell_apk/manifest_processor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/webapk/shell_apk/manifest_processor.gni
diff --git a/chrome/android/webapk/shell_apk/manifest_processor.gni b/chrome/android/webapk/shell_apk/manifest_processor.gni
new file mode 100644
index 0000000000000000000000000000000000000000..994c46931bae327cc52674d4b68545116f294b37
--- /dev/null
+++ b/chrome/android/webapk/shell_apk/manifest_processor.gni
@@ -0,0 +1,40 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/android/rules.gni")
+
+template("manifest_processor_template") {
+ set_sources_assignment_filter([])
+ forward_variables_from(invoker, [ "testonly" ])
+
+ assert(defined(invoker.input))
+ assert(defined(invoker.output))
+
+ action(target_name) {
+ forward_variables_from(invoker,
+ [
+ "visibility",
+ "deps",
+ ])
+ sources = [
+ invoker.input,
+ ]
+ script = "//chrome/android/webapk/shell_apk/manifest_processor.py"
+
+ outputs = [
+ invoker.output,
+ ]
+
+ args = [
+ "--template",
+ rebase_path(invoker.input, root_build_dir),
+ "--output",
+ rebase_path(invoker.output, root_build_dir),
+ ]
+ if (defined(invoker.variables)) {
+ variables = invoker.variables
+ args += [ "--variables=${variables}" ]
+ }
+ }
+}
« no previous file with comments | « chrome/android/webapk/shell_apk/BUILD.gn ('k') | chrome/android/webapk/shell_apk/manifest_processor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698