Chromium Code Reviews| 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: | |
|
Peter Lundblad
2014/05/23 22:37:19
Mention is_guest_manifest as an optional variable
David Tseng
2014/05/23 22:57:16
Done.
| |
| 8 # | |
| 9 # template_manifest: a valid Jinja2 file path. | |
| 10 # output_manifest: file path for the resulting manifest. | |
|
Peter Lundblad
2014/05/23 22:37:19
Variables naming files commonly end in _file or _p
David Tseng
2014/05/23 22:57:16
Obscure; thanks and done.
| |
| 11 | |
| 12 { | |
| 13 'actions': [ | |
| 14 { | |
| 15 'action_name': 'generate_manifest', | |
| 16 'message': 'Generate manifest for <(_target_name)', | |
| 17 'variables': { | |
| 18 'is_guest_manifest%': 0, | |
| 19 }, | |
| 20 'inputs': [ | |
| 21 'tools/generate_manifest.py', | |
| 22 '<(template_manifest)', | |
| 23 ], | |
| 24 'outputs': [ | |
| 25 '<(output_manifest)' | |
| 26 ], | |
| 27 'action': [ | |
| 28 'python', | |
| 29 'tools/generate_manifest.py', | |
| 30 '-o', '<(output_manifest)', | |
| 31 '-g', '<(is_guest_manifest)', | |
| 32 '<(template_manifest)' | |
| 33 ], | |
| 34 }, | |
| 35 ], | |
| 36 } | |
| OLD | NEW |