| 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 # { |
| 11 # 'target_name': 'chrome_shell_manifest', | 11 # 'target_name': 'chrome_public_manifest', |
| 12 # 'type': 'none', | 12 # 'type': 'none', |
| 13 # 'variables': { | 13 # 'variables': { |
| 14 # 'jinja_inputs': ['android/shell/java/AndroidManifest.xml'], | 14 # 'jinja_inputs': ['android/java/AndroidManifest.xml'], |
| 15 # 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/Android
Manifest.xml', | 15 # 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_public_manifest/Androi
dManifest.xml', |
| 16 # 'jinja_variables': ['app_name=ChromeShell'], | 16 # 'jinja_variables': ['app_name=ChromePublic'], |
| 17 # }, | 17 # }, |
| 18 # 'includes': [ '../build/android/jinja_template.gypi' ], | 18 # 'includes': [ '../build/android/jinja_template.gypi' ], |
| 19 # }, | 19 # }, |
| 20 # | 20 # |
| 21 # To process multiple template files and package the results into a zip file, | 21 # To process multiple template files and package the results into a zip file, |
| 22 # create a gyp target with the following form: | 22 # create a gyp target with the following form: |
| 23 # { | 23 # { |
| 24 # 'target_name': 'chrome_template_resources', | 24 # 'target_name': 'chrome_template_resources', |
| 25 # 'type': 'none', | 25 # 'type': 'none', |
| 26 # 'variables': { | 26 # 'variables': { |
| 27 # 'jinja_inputs_base_dir': 'android/shell/java/res_template', | 27 # 'jinja_inputs_base_dir': 'android/java/res_template', |
| 28 # 'jinja_inputs': [ | 28 # 'jinja_inputs': [ |
| 29 # '<(jinja_inputs_base_dir)/xml/searchable.xml', | 29 # '<(jinja_inputs_base_dir)/xml/searchable.xml', |
| 30 # '<(jinja_inputs_base_dir)/xml/syncadapter.xml', | 30 # '<(jinja_inputs_base_dir)/xml/syncadapter.xml', |
| 31 # ], | 31 # ], |
| 32 # 'jinja_outputs_zip': '<(PRODUCT_DIR)/res.java/<(_target_name).zip', | 32 # 'jinja_outputs_zip': '<(PRODUCT_DIR)/res.java/<(_target_name).zip', |
| 33 # 'jinja_variables': ['app_name=ChromeShell'], | 33 # 'jinja_variables': ['app_name=ChromePublic'], |
| 34 # }, | 34 # }, |
| 35 # 'includes': [ '../build/android/jinja_template.gypi' ], | 35 # 'includes': [ '../build/android/jinja_template.gypi' ], |
| 36 # }, | 36 # }, |
| 37 # | 37 # |
| 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', |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |