summaryrefslogtreecommitdiff
path: root/chromium/components/chrome_apps.gypi
blob: 4d01ece34f3c6e5e9af7b023fb7a5e7a60c3a1d3 (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
50
51
# Copyright 2015 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': {
    'chromium_code': 1,
    'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/components/chrome_apps',
  },
  'targets': [
    {
      'target_name': 'chrome_apps_resources',
      'type': 'none',
      'actions': [
        {
          'action_name': 'chrome_apps_resources',
          'variables': {
            'grit_grd_file': 'chrome_apps/chrome_apps_resources.grd',
          },
          'includes': [ '../build/grit_action.gypi' ],
        },
      ],
      'includes': [ '../build/grit_target.gypi' ],
      'copies': [
        {
          'destination': '<(PRODUCT_DIR)',
          'files': [
            '<(SHARED_INTERMEDIATE_DIR)/components/chrome_apps/chrome_apps_resources.pak',
          ],
        },
      ],
    },
    {
      'target_name': 'chrome_apps',
      'type': '<(component)',
      'dependencies': [
        '../base/base.gyp:base',
        'chrome_apps_resources',
      ],
      'defines': [
        'CHROME_APPS_IMPLEMENTATION',
      ],
      'sources': [
        '<(grit_out_dir)/grit/chrome_apps_resources_map.cc',
        '<(grit_out_dir)/grit/chrome_apps_resources_map.h',
        'chrome_apps/chrome_apps_export.h',
        'chrome_apps/chrome_apps_resource_util.cc',
        'chrome_apps/chrome_apps_resource_util.h',
      ]
    }
  ]
}