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 variable is optional: | 12 # The following variable is 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 | 16 |
| 17 { | 17 { |
| 18 'variables': { | 18 'variables': { |
| 19 'generate_manifest_script_path': 'tools/generate_manifest.py', | 19 'generate_manifest_script_path': 'tools/generate_manifest.py', |
| 20 'is_guest_manifest%': 0, | 20 'is_guest_manifest%': 0, |
| 21 'key': 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDltVl1k15pjRzuZfMc3B69inxwm2bZ eZ2O8/zFO+NluHnBm3GJ3fzdOoFGJd+M16I8p7zxxQyHeDMfWYASyCeB8XnUEDKjqNLQfCnncsANzHsY oEbYj2nEUML2P13b9q+AAvpCBpAJ4cZp81e9n1y/vbSXHE4385cgkKueItzikQIDAQAB', | 21 'key': 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDltVl1k15pjRzuZfMc3B69inxwm2bZ eZ2O8/zFO+NluHnBm3GJ3fzdOoFGJd+M16I8p7zxxQyHeDMfWYASyCeB8XnUEDKjqNLQfCnncsANzHsY oEbYj2nEUML2P13b9q+AAvpCBpAJ4cZp81e9n1y/vbSXHE4385cgkKueItzikQIDAQAB', |
| 22 'use_chromevox_next': 1, | |
|
dmazzoni
2014/09/22 06:36:28
Can we just get rid of this from gyp rather than d
Peter Lundblad
2014/09/22 09:00:46
this means that all manifests generated will be fo
David Tseng
2014/09/22 17:23:12
Added comment and made this optional. Was still wo
| |
| 22 }, | 23 }, |
| 23 'includes': [ | 24 'includes': [ |
| 24 '../../../../../build/util/version.gypi', | 25 '../../../../../build/util/version.gypi', |
| 25 ], | 26 ], |
| 26 'actions': [ | 27 'actions': [ |
| 27 { | 28 { |
| 28 'action_name': 'generate_manifest', | 29 'action_name': 'generate_manifest', |
| 29 'message': 'Generate manifest for <(_target_name)', | 30 'message': 'Generate manifest for <(_target_name)', |
| 30 'inputs': [ | 31 'inputs': [ |
| 31 '<(generate_manifest_script_path)', | 32 '<(generate_manifest_script_path)', |
| 32 '<(template_manifest_path)', | 33 '<(template_manifest_path)', |
| 33 ], | 34 ], |
| 34 'outputs': [ | 35 'outputs': [ |
| 35 '<(output_manifest_path)' | 36 '<(output_manifest_path)' |
| 36 ], | 37 ], |
| 37 'action': [ | 38 'action': [ |
| 38 'python', | 39 'python', |
| 39 '<(generate_manifest_script_path)', | 40 '<(generate_manifest_script_path)', |
| 40 '--is_guest_manifest=<(is_guest_manifest)', | 41 '--is_guest_manifest=<(is_guest_manifest)', |
| 41 '--key=<(key)', | 42 '--key=<(key)', |
| 42 '--use_chromevox_next=<(use_chromevox_next)', | 43 '--use_chromevox_next=<(use_chromevox_next)', |
| 43 '--set_version=<(version_full)', | 44 '--set_version=<(version_full)', |
| 44 '-o', '<(output_manifest_path)', | 45 '-o', '<(output_manifest_path)', |
| 45 '<(template_manifest_path)', | 46 '<(template_manifest_path)', |
| 46 ], | 47 ], |
| 47 }, | 48 }, |
| 48 ], | 49 ], |
| 49 } | 50 } |
| OLD | NEW |