summaryrefslogtreecommitdiffstats
path: root/mojo/public/mojo_application_manifest.gypi
blob: ddb202d29c274e26e0277780734b6200288afe65 (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
# 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)',
    },
    'application_type%': '<(application_type)',
    'application_name%': '<(application_name)',
    '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',
      }],
    ],
  },
  '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)',
    ],
  }],
}