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

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

Issue 1002313002: jinja2: support file references in templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set; relative paths Created 5 years, 9 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') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 # This file is meant to be included into a target to process one or more 5 # This file is meant to be included into a target to process one or more
6 # Jinja templates. 6 # Jinja templates.
7 # 7 #
8 # To process a single template file, create a gyp target with the following 8 # To process a single template file, create a gyp target with the following
9 # form: 9 # form:
10 # { 10 # {
(...skipping 27 matching lines...) Expand all
38 38
39 { 39 {
40 'actions': [ 40 'actions': [
41 { 41 {
42 'action_name': '<(_target_name)_jinja_template', 42 'action_name': '<(_target_name)_jinja_template',
43 'message': 'processing jinja template', 43 'message': 'processing jinja template',
44 'variables': { 44 'variables': {
45 'jinja_output%': '', 45 'jinja_output%': '',
46 'jinja_outputs_zip%': '', 46 'jinja_outputs_zip%': '',
47 'jinja_inputs_base_dir%': '', 47 'jinja_inputs_base_dir%': '',
48 'jinja_includes%': [],
48 'jinja_variables%': [], 49 'jinja_variables%': [],
49 'jinja_args': [], 50 'jinja_args': [],
50 }, 51 },
51 'inputs': [ 52 'inputs': [
52 '<(DEPTH)/build/android/gyp/util/build_utils.py', 53 '<(DEPTH)/build/android/gyp/util/build_utils.py',
53 '<(DEPTH)/build/android/gyp/jinja_template.py', 54 '<(DEPTH)/build/android/gyp/jinja_template.py',
54 '<@(jinja_inputs)', 55 '<@(jinja_inputs)',
56 '<@(jinja_includes)',
55 ], 57 ],
56 'conditions': [ 58 'conditions': [
57 ['jinja_output != ""', { 59 ['jinja_output != ""', {
58 'outputs': [ '<(jinja_output)' ], 60 'outputs': [ '<(jinja_output)' ],
59 'variables': { 61 'variables': {
60 'jinja_args': ['--output', '<(jinja_output)'], 62 'jinja_args': ['--output', '<(jinja_output)'],
61 }, 63 },
62 }], 64 }],
63 ['jinja_outputs_zip != ""', { 65 ['jinja_outputs_zip != ""', {
64 'outputs': [ '<(jinja_outputs_zip)' ], 66 'outputs': [ '<(jinja_outputs_zip)' ],
65 'variables': { 67 'variables': {
66 'jinja_args': ['--outputs-zip', '<(jinja_outputs_zip)'], 68 'jinja_args': ['--outputs-zip', '<(jinja_outputs_zip)'],
67 }, 69 },
68 }], 70 }],
69 ['jinja_inputs_base_dir != ""', { 71 ['jinja_inputs_base_dir != ""', {
70 'variables': { 72 'variables': {
71 'jinja_args': ['--inputs-base-dir', '<(jinja_inputs_base_dir)'], 73 'jinja_args': ['--inputs-base-dir', '<(jinja_inputs_base_dir)'],
72 }, 74 },
73 }], 75 }],
74 ], 76 ],
75 'action': [ 77 'action': [
76 'python', '<(DEPTH)/build/android/gyp/jinja_template.py', 78 'python', '<(DEPTH)/build/android/gyp/jinja_template.py',
77 '--inputs', '<(jinja_inputs)', 79 '--inputs', '<(jinja_inputs)',
78 '--variables', '<(jinja_variables)', 80 '--variables', '<(jinja_variables)',
79 '<@(jinja_args)', 81 '<@(jinja_args)',
80 ], 82 ],
81 }, 83 },
82 ], 84 ],
83 } 85 }
OLDNEW
« no previous file with comments | « build/android/gyp/jinja_template.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698