1 # Copyright 2016 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 { 6 'variables': { 7 'variables': { 8 'application_name%': '<(application_name)', 9 'application_type%': '<(application_type)', 10 'base_manifest%': 'none', 11 'packaged_manifests%': [] 12 }, 13 'application_type%': '<(application_type)', 14 'application_name%': '<(application_name)', 15 'base_manifest%': '<(base_manifest)', 16 'manifest_collator_script%': 17 '<(DEPTH)/mojo/public/tools/manifest/manifest_collator.py', 18 'packaged_manifests%': '<(packaged_manifests)', 19 'source_manifest%': '<(source_manifest)', 20 'conditions': [ 21 ['application_type=="mojo"', { 22 'output_manifest%': '<(PRODUCT_DIR)/Mojo Applications/<(application_name)/manifest.json', 23 }, { 24 'output_manifest%': '<(PRODUCT_DIR)/<(application_name)_manifest.json', 25 }], 26 ['base_manifest!="none"', { 27 'extra_args%': [ 28 '--base-manifest=<(base_manifest)', 29 '<@(packaged_manifests)', 30 ], 31 }, { 32 'extra_args%': [ 33 '<@(packaged_manifests)', 34 ], 35 }] 36 ], 37 }, 38 'actions': [{ 39 'action_name': '<(_target_name)_collation', 40 'inputs': [ 41 '<(manifest_collator_script)', 42 '<(source_manifest)', 43 ], 44 'outputs': [ 45 '<(output_manifest)', 46 ], 47 'action': [ 48 'python', 49 '<(manifest_collator_script)', 50 '--application-name', '<(application_name)', 51 '--parent=<(source_manifest)', 52 '--output=<(output_manifest)', 53 '<@(extra_args)', 54 ], 55 }], 56 } 57