summaryrefslogtreecommitdiff
path: root/chromium/mojo/public/mojo_application_manifest.gypi
blob: bda86404707f917e00e39eab0852d10651b0a2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'variables': {
    'variables': {
      'application_name%': '<(application_name)',
      'application_type%': '<(application_type)',
      'base_manifest%': 'none',
    },
    'application_type%': '<(application_type)',
    'application_name%': '<(application_name)',
    'base_manifest%': '<(base_manifest)',
    'manifest_collator_script%':
        '<(DEPTH)/mojo/public/tools/manifest/manifest_collator.py',
    'source_manifest%': '<(source_manifest)',
    'conditions': [
      ['application_type=="mojo"', {
        'output_manifest%': '<(PRODUCT_DIR)/<(application_name)/manifest.json',
      }, {
        'output_manifest%': '<(PRODUCT_DIR)/<(application_name)_manifest.json',
      }],
      ['base_manifest!="none"', {
        'extra_args%': [ '--base-manifest=<(base_manifest)', ],
      }, {
        'extra_args%': [],
      }]
    ],
  },
  'actions': [{
    'action_name': '<(_target_name)_collation',
    'inputs': [
      '<(manifest_collator_script)',
      '<(source_manifest)',
    ],
    'outputs': [
      '<(output_manifest)',
    ],
    'action': [
      'python',
      '<(manifest_collator_script)',
      '--application-name', '<(application_name)',
      '--parent=<(source_manifest)',
      '--output=<(output_manifest)',
      '<@(extra_args)',
    ],
  }],
}