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