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 # Generates an output manifest based on a Jinja2 templated manifest. | 5 # Generates an output manifest based on a Jinja2 templated manifest. |
6 # Include this file inside of your target to generate a manifest. | 6 # Include this file inside of your target to generate a manifest. |
7 # The following variables must be set before including this file: | 7 # The following variables must be set before including this file: |
8 # | 8 # |
9 # template_manifest_path: a valid Jinja2 file path. | 9 # template_manifest_path: a valid Jinja2 file path. |
10 # output_manifest_path: file path for the resulting manifest. | 10 # output_manifest_path: file path for the resulting manifest. |
11 # | 11 # |
12 # The following variable is optional: | 12 # The following variables are optional: |
13 # | 13 # |
14 # guest_manifest: 1 or 0; generates a manifest usable while in guest | 14 # guest_manifest: 1 or 0; generates a manifest usable while in guest |
15 # mode. | 15 # mode. |
| 16 # use_chromevox_next: 1 or 0; generates a manifest for ChromeVox next. |
16 | 17 |
17 { | 18 { |
18 'variables': { | 19 'variables': { |
19 'generate_manifest_script_path': 'tools/generate_manifest.py', | 20 'generate_manifest_script_path': 'tools/generate_manifest.py', |
20 'is_guest_manifest%': 0, | 21 'is_guest_manifest%': 0, |
21 'key': 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDltVl1k15pjRzuZfMc3B69inxwm2bZ
eZ2O8/zFO+NluHnBm3GJ3fzdOoFGJd+M16I8p7zxxQyHeDMfWYASyCeB8XnUEDKjqNLQfCnncsANzHsY
oEbYj2nEUML2P13b9q+AAvpCBpAJ4cZp81e9n1y/vbSXHE4385cgkKueItzikQIDAQAB', | 22 'key': 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDltVl1k15pjRzuZfMc3B69inxwm2bZ
eZ2O8/zFO+NluHnBm3GJ3fzdOoFGJd+M16I8p7zxxQyHeDMfWYASyCeB8XnUEDKjqNLQfCnncsANzHsY
oEbYj2nEUML2P13b9q+AAvpCBpAJ4cZp81e9n1y/vbSXHE4385cgkKueItzikQIDAQAB', |
| 23 'use_chromevox_next%': 0, |
22 }, | 24 }, |
23 'includes': [ | 25 'includes': [ |
24 '../../../../../build/util/version.gypi', | 26 '../../../../../build/util/version.gypi', |
25 ], | 27 ], |
26 'actions': [ | 28 'actions': [ |
27 { | 29 { |
28 'action_name': 'generate_manifest', | 30 'action_name': 'generate_manifest', |
29 'message': 'Generate manifest for <(_target_name)', | 31 'message': 'Generate manifest for <(_target_name)', |
30 'inputs': [ | 32 'inputs': [ |
31 '<(generate_manifest_script_path)', | 33 '<(generate_manifest_script_path)', |
32 '<(template_manifest_path)', | 34 '<(template_manifest_path)', |
33 ], | 35 ], |
34 'outputs': [ | 36 'outputs': [ |
35 '<(output_manifest_path)' | 37 '<(output_manifest_path)' |
36 ], | 38 ], |
37 'action': [ | 39 'action': [ |
38 'python', | 40 'python', |
39 '<(generate_manifest_script_path)', | 41 '<(generate_manifest_script_path)', |
40 '--is_guest_manifest=<(is_guest_manifest)', | 42 '--is_guest_manifest=<(is_guest_manifest)', |
41 '--key=<(key)', | 43 '--key=<(key)', |
42 '--use_chromevox_next=<(use_chromevox_next)', | 44 '--use_chromevox_next=<(use_chromevox_next)', |
43 '--set_version=<(version_full)', | 45 '--set_version=<(version_full)', |
44 '-o', '<(output_manifest_path)', | 46 '-o', '<(output_manifest_path)', |
45 '<(template_manifest_path)', | 47 '<(template_manifest_path)', |
46 ], | 48 ], |
47 }, | 49 }, |
48 ], | 50 ], |
49 } | 51 } |
OLD | NEW |