Chromium Code Reviews| 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 variables are optional: | 12 # The following variables are optional: |
| 13 # | 13 # |
| 14 # guest_manifest: 1 or 0; generates a manifest usable while in guest | 14 # is_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 # is_chromevox_next: 1 or 0; generates a manifest for ChromeVox next. |
| 17 # chromevox_compress_js: 1 or 0; whether the javascript is compressed. | |
|
David Tseng
2014/10/14 23:10:11
nit: Next
| |
| 17 | 18 |
|
David Tseng
2014/10/14 23:10:11
nit: convention of is_* prefix for boolean vars?
| |
| 18 { | 19 { |
| 19 'variables': { | 20 'variables': { |
| 20 'generate_manifest_script_path': 'tools/generate_manifest.py', | 21 'generate_manifest_script_path': 'tools/generate_manifest.py', |
| 21 'is_guest_manifest%': 0, | 22 'is_guest_manifest%': 0, |
| 23 'is_chromevox_next%': 0, | |
| 22 'key': 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDltVl1k15pjRzuZfMc3B69inxwm2bZ eZ2O8/zFO+NluHnBm3GJ3fzdOoFGJd+M16I8p7zxxQyHeDMfWYASyCeB8XnUEDKjqNLQfCnncsANzHsY oEbYj2nEUML2P13b9q+AAvpCBpAJ4cZp81e9n1y/vbSXHE4385cgkKueItzikQIDAQAB', | 24 'key': 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDltVl1k15pjRzuZfMc3B69inxwm2bZ eZ2O8/zFO+NluHnBm3GJ3fzdOoFGJd+M16I8p7zxxQyHeDMfWYASyCeB8XnUEDKjqNLQfCnncsANzHsY oEbYj2nEUML2P13b9q+AAvpCBpAJ4cZp81e9n1y/vbSXHE4385cgkKueItzikQIDAQAB', |
| 23 'use_chromevox_next%': 0, | |
| 24 }, | 25 }, |
| 25 'includes': [ | 26 'includes': [ |
| 26 '../../../../../build/util/version.gypi', | 27 '../../../../../build/util/version.gypi', |
| 27 ], | 28 ], |
| 28 'actions': [ | 29 'actions': [ |
| 29 { | 30 { |
| 30 'action_name': 'generate_manifest', | 31 'action_name': 'generate_manifest', |
| 31 'message': 'Generate manifest for <(_target_name)', | 32 'message': 'Generate manifest for <(_target_name)', |
| 32 'inputs': [ | 33 'inputs': [ |
| 33 '<(generate_manifest_script_path)', | 34 '<(generate_manifest_script_path)', |
| 34 '<(template_manifest_path)', | 35 '<(template_manifest_path)', |
| 35 ], | 36 ], |
| 36 'outputs': [ | 37 'outputs': [ |
| 37 '<(output_manifest_path)' | 38 '<(output_manifest_path)' |
| 38 ], | 39 ], |
| 39 'action': [ | 40 'action': [ |
| 40 'python', | 41 'python', |
| 41 '<(generate_manifest_script_path)', | 42 '<(generate_manifest_script_path)', |
| 42 '--is_guest_manifest=<(is_guest_manifest)', | 43 '--is_guest_manifest=<(is_guest_manifest)', |
| 43 '--key=<(key)', | 44 '--key=<(key)', |
| 44 '--use_chromevox_next=<(use_chromevox_next)', | 45 '--is_chromevox_next=<(is_chromevox_next)', |
| 46 '--is_js_compressed=<(chromevox_compress_js)', | |
| 45 '--set_version=<(version_full)', | 47 '--set_version=<(version_full)', |
| 46 '-o', '<(output_manifest_path)', | 48 '--output_manifest=<(output_manifest_path)', |
| 47 '<(template_manifest_path)', | 49 '<(template_manifest_path)', |
| 48 ], | 50 ], |
| 49 }, | 51 }, |
| 50 ], | 52 ], |
| 51 } | 53 } |
| OLD | NEW |