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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/config/android/rules.gni")
6
7 template("manifest_processor_template") {
8 set_sources_assignment_filter([])
9 forward_variables_from(invoker, [ "testonly" ])
10
11 assert(defined(invoker.input))
12 assert(defined(invoker.output))
13
14 action(target_name) {
15 forward_variables_from(invoker,
16 [
17 "visibility",
18 "deps",
19 ])
20 sources = [
21 invoker.input,
22 ]
23 script = "//chrome/android/webapk/shell_apk/manifest_processor.py"
24
25 outputs = [
26 invoker.output,
27 ]
28
29 args = [
30 "--template",
31 rebase_path(invoker.input, root_build_dir),
32 "--output",
33 rebase_path(invoker.output, root_build_dir),
34 ]
35 if (defined(invoker.variables)) {
36 variables = invoker.variables
37 args += [ "--variables=${variables}" ]
38 }
39 }
40 }
OLDNEW
« 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