OLD | NEW |
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 29 matching lines...) Expand all Loading... |
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_includes%': [], |
49 'jinja_variables%': [], | 49 'jinja_variables%': [], |
50 'jinja_args': [], | 50 'jinja_args': ['--loader-base-dir=<(DEPTH)'], |
51 }, | 51 }, |
52 'inputs': [ | 52 'inputs': [ |
53 '<(DEPTH)/build/android/gyp/util/build_utils.py', | 53 '<(DEPTH)/build/android/gyp/util/build_utils.py', |
54 '<(DEPTH)/build/android/gyp/jinja_template.py', | 54 '<(DEPTH)/build/android/gyp/jinja_template.py', |
55 '<@(jinja_inputs)', | 55 '<@(jinja_inputs)', |
56 '<@(jinja_includes)', | 56 '<@(jinja_includes)', |
57 ], | 57 ], |
58 'conditions': [ | 58 'conditions': [ |
59 ['jinja_output != ""', { | 59 ['jinja_output != ""', { |
60 'outputs': [ '<(jinja_output)' ], | 60 'outputs': [ '<(jinja_output)' ], |
(...skipping 15 matching lines...) Expand all Loading... |
76 ], | 76 ], |
77 'action': [ | 77 'action': [ |
78 'python', '<(DEPTH)/build/android/gyp/jinja_template.py', | 78 'python', '<(DEPTH)/build/android/gyp/jinja_template.py', |
79 '--inputs', '<(jinja_inputs)', | 79 '--inputs', '<(jinja_inputs)', |
80 '--variables', '<(jinja_variables)', | 80 '--variables', '<(jinja_variables)', |
81 '<@(jinja_args)', | 81 '<@(jinja_args)', |
82 ], | 82 ], |
83 }, | 83 }, |
84 ], | 84 ], |
85 } | 85 } |
OLD | NEW |