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 # |
| 12 # The following variable is optional: |
| 13 # |
| 14 # is_guest_manifest: 1 or 0; generates a manifest usable while in guest mode. |
| 15 |
| 16 { |
| 17 'actions': [ |
| 18 { |
| 19 'action_name': 'generate_manifest', |
| 20 'message': 'Generate manifest for <(_target_name)', |
| 21 'variables': { |
| 22 'is_guest_manifest%': 0, |
| 23 }, |
| 24 'inputs': [ |
| 25 'tools/generate_manifest.py', |
| 26 '<(template_manifest_path)', |
| 27 ], |
| 28 'outputs': [ |
| 29 '<(output_manifest_path)' |
| 30 ], |
| 31 'action': [ |
| 32 'python', |
| 33 'tools/generate_manifest.py', |
| 34 '-o', '<(output_manifest_path)', |
| 35 '-g', '<(is_guest_manifest)', |
| 36 '<(template_manifest_path)' |
| 37 ], |
| 38 }, |
| 39 ], |
| 40 } |
OLD | NEW |