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 # chromevox_extension_key: The extension key to include in the manifest. | 11 # chromevox_extension_key: The extension key to include in the manifest. |
12 # | 12 # |
13 # The following variables are optional: | 13 # The following variables are optional: |
14 # | 14 # |
15 # is_guest_manifest: 1 or 0; generates a manifest usable while in guest | 15 # is_guest_manifest: 1 or 0; generates a manifest usable while in guest |
16 # mode. | 16 # mode. |
17 # is_chromevox_classic: 1 or 0; generates a manifest for ChromeVox Classic. | 17 # is_chromevox_classic: 1 or 0; generates a manifest for ChromeVox Classic. |
18 # chromevox_compress_js: 1 or 0; whether the javascript is compressed. | 18 # chromevox_compress_js: 1 or 0; whether the javascript is compressed. |
19 | 19 |
20 { | 20 { |
21 'variables': { | 21 'variables': { |
22 'generate_manifest_script_path': 'tools/generate_manifest.py', | 22 'generate_manifest_script_path': 'tools/generate_manifest.py', |
23 'is_guest_manifest%': 0, | 23 'is_guest_manifest%': 0, |
24 'is_chromevox_classic%': 0, | 24 'is_chromevox_classic%': 0, |
25 'is_chromeos%': 1, | |
Peter Lundblad
2015/11/06 15:00:58
We already have a variable in gyp called 'chromeos
dmazzoni
2015/11/06 21:01:01
I ended up getting rid of the accessibilityFeature
| |
25 }, | 26 }, |
26 'includes': [ | 27 'includes': [ |
27 '../../../../../build/util/version.gypi', | 28 '../../../../../build/util/version.gypi', |
28 ], | 29 ], |
29 'actions': [ | 30 'actions': [ |
30 { | 31 { |
31 'action_name': 'generate_manifest', | 32 'action_name': 'generate_manifest', |
32 'message': 'Generate manifest for <(_target_name)', | 33 'message': 'Generate manifest for <(_target_name)', |
33 'inputs': [ | 34 'inputs': [ |
34 '<(generate_manifest_script_path)', | 35 '<(generate_manifest_script_path)', |
35 '<(template_manifest_path)', | 36 '<(template_manifest_path)', |
36 ], | 37 ], |
37 'outputs': [ | 38 'outputs': [ |
38 '<(output_manifest_path)' | 39 '<(output_manifest_path)' |
39 ], | 40 ], |
40 'action': [ | 41 'action': [ |
41 'python', | 42 'python', |
42 '<(generate_manifest_script_path)', | 43 '<(generate_manifest_script_path)', |
43 '--is_guest_manifest=<(is_guest_manifest)', | 44 '--is_guest_manifest=<(is_guest_manifest)', |
44 '--key=<(chromevox_extension_key)', | 45 '--key=<(chromevox_extension_key)', |
46 '--is_chromeos=<(is_chromeos)', | |
45 '--is_chromevox_classic=<(is_chromevox_classic)', | 47 '--is_chromevox_classic=<(is_chromevox_classic)', |
46 '--is_js_compressed=<(chromevox_compress_js)', | 48 '--is_js_compressed=<(chromevox_compress_js)', |
47 '--set_version=<(version_full)', | 49 '--set_version=<(version_full)', |
48 '--output_manifest=<(output_manifest_path)', | 50 '--output_manifest=<(output_manifest_path)', |
49 '<(template_manifest_path)', | 51 '<(template_manifest_path)', |
50 ], | 52 ], |
51 }, | 53 }, |
52 ], | 54 ], |
53 } | 55 } |
OLD | NEW |