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