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

Side by Side Diff: build/android/jinja_template.gypi

Issue 657443002: Turn Chrome Shell's AndroidManifest into a jinja2 template. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ignore import failure in pylint Created 6 years, 2 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
« no previous file with comments | « build/android/gyp/jinja_template.py ('k') | build/common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2014 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 # This file is meant to be included into a target to process one or more
6 # Jinja templates.
7 #
8 # To process a single template file, create a gyp target with the following
9 # form:
10 # {
11 # 'target_name': 'chrome_shell_manifest',
12 # 'type': 'none',
13 # 'variables': {
14 # 'jinja_inputs': ['android/shell/java/AndroidManifest.xml'],
15 # 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/Android Manifest.xml',
16 # 'jinja_variables': ['app_name=ChromeShell'],
17 # },
18 # 'includes': [ '../build/android/jinja_template.gypi' ],
19 # },
20 #
21 # To process multiple template files and package the results into a zip file,
22 # create a gyp target with the following form:
23 # {
24 # 'target_name': 'chrome_template_resources',
25 # 'type': 'none',
26 # 'variables': {
27 # 'jinja_inputs_base_dir': 'android/shell/java/res_template',
28 # 'jinja_inputs': [
29 # '<(jinja_inputs_base_dir)/xml/searchable.xml',
30 # '<(jinja_inputs_base_dir)/xml/syncadapter.xml',
31 # ],
32 # 'jinja_outputs_zip': '<(PRODUCT_DIR)/res.java/<(_target_name).zip',
33 # 'jinja_variables': ['app_name=ChromeShell'],
34 # },
35 # 'includes': [ '../build/android/jinja_template.gypi' ],
36 # },
37 #
38
39 {
40 'actions': [
41 {
42 'action_name': '<(_target_name)_jinja_template',
43 'message': 'processing jinja template',
44 'variables': {
45 'jinja_output%': '',
46 'jinja_outputs_zip%': '',
47 'jinja_inputs_base_dir%': '',
48 'jinja_variables%': [],
49 'jinja_args': [],
50 },
51 'inputs': [
52 '<(DEPTH)/build/android/gyp/util/build_utils.py',
53 '<(DEPTH)/build/android/gyp/jinja_template.py',
54 '<@(jinja_inputs)',
55 ],
56 'conditions': [
57 ['jinja_output != ""', {
58 'outputs': [ '<(jinja_output)' ],
59 'variables': {
60 'jinja_args': ['--output', '<(jinja_output)'],
61 },
62 }],
63 ['jinja_outputs_zip != ""', {
64 'outputs': [ '<(jinja_outputs_zip)' ],
65 'variables': {
66 'jinja_args': ['--outputs-zip', '<(jinja_outputs_zip)'],
67 },
68 }],
69 ['jinja_inputs_base_dir != ""', {
70 'variables': {
71 'jinja_args': ['--inputs-base-dir', '<(jinja_inputs_base_dir)'],
72 },
73 }],
74 ],
75 'action': [
76 'python', '<(DEPTH)/build/android/gyp/jinja_template.py',
77 '--inputs', '<(jinja_inputs)',
78 '--variables', '<(jinja_variables)',
79 '<@(jinja_args)',
80 ],
81 },
82 ],
83 }
OLDNEW
« no previous file with comments | « build/android/gyp/jinja_template.py ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698