summaryrefslogtreecommitdiffstats
path: root/win8/metro_driver/metro_driver.gyp
blob: 2720bb5b8d6f632cc624d2dd43604fa434c60c5a (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Copyright (c) 2012 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.
{
  'conditions': [
    ['OS=="win"', {
      'variables': {
        'chromium_code': 1,
      },
      'includes': [
        '../../build/util/version.gypi',
        '../../build/win_precompile.gypi',
      ],
      'target_defaults': {
        'msvs_settings': {
          'VCLinkerTool': {
            'AdditionalDependencies': [
              'D2D1.lib',
              'D3D11.lib',
              'runtimeobject.lib',
            ],
            'DelayLoadDLLs': [
              'API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL',
              'API-MS-WIN-CORE-WINRT-L1-1-0.DLL',
              'API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL',
            ],
          },
        },
      },
      'targets': [
        {
          'target_name': 'metro_driver_version_resources',
          'type': 'none',
          'variables': {
            'output_dir': 'metro_driver',
            'branding_path': '../../chrome/app/theme/<(branding_path_component)/BRANDING',
            'template_input_path': '../../chrome/app/chrome_version.rc.version',
          },
          'sources': [
            'metro_driver_dll.ver',
          ],
          'includes': [
            '../../chrome/version_resource_rules.gypi',
          ],
        },
        {
          'target_name': 'metro_driver',
          'type': 'shared_library',
          'dependencies': [
            '../../base/base.gyp:base',
            '../../chrome/common_constants.gyp:common_constants',
            '../../chrome/chrome.gyp:installer_util',
            '../../crypto/crypto.gyp:crypto',
            '../../ipc/ipc.gyp:ipc',
            '../../sandbox/sandbox.gyp:sandbox',
            '../../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages',
            '../../ui/gfx/gfx.gyp:gfx',
            '../../ui/gfx/gfx.gyp:gfx_geometry',
            '../../url/url.gyp:url_lib',
            'metro_driver_version_resources',
          ],
          'sources': [
            'display_properties.cc',
            'display_properties.h',
            'metro_driver.cc',
            'metro_driver.h',
            'metro_driver_win7.cc',
            'stdafx.h',
            'winrt_utils.cc',
            'winrt_utils.h',
            '<(SHARED_INTERMEDIATE_DIR)/metro_driver/metro_driver_dll_version.rc',
          ],
          'conditions': [
            ['use_aura==1', {
              'dependencies': [
                '../win8.gyp:metro_viewer_constants',
              ],
              'sources': [
                'chrome_app_view_ash.cc',
                'chrome_app_view_ash.h',
                'direct3d_helper.cc',
                'direct3d_helper.h',
                'file_picker_ash.cc',
                'file_picker_ash.h',
              ],
              'includes': [
                'ime/ime.gypi',
              ],
            }, {  # use_aura!=1
              'sources': [
                'chrome_app_view.cc',
                'chrome_app_view.h',
                'chrome_url_launch_handler.cc',
                'chrome_url_launch_handler.h',
                'devices_handler.cc',
                'devices_handler.h',
                'file_picker.cc',
                'file_picker.h',
                'metro_dialog_box.cc',
                'metro_dialog_box.h',
                'print_document_source.cc',
                'print_document_source.h',
                'print_handler.cc',
                'print_handler.h',
                'secondary_tile.cc',
                'secondary_tile.h',
                'settings_handler.cc',
                'settings_handler.h',
                'toast_notification_handler.cc',
                'toast_notification_handler.h',
              ],
            }],
          ],
          'copies': [
            {
              'destination': '<(PRODUCT_DIR)',
              'files': [
                'resources/Logo.png',
                'resources/SecondaryTile.png',
                'resources/SmallLogo.png',
                'resources/splash-620x300.png',
                'resources/VisualElementsManifest.xml',
              ],
            },
          ],
        },
        {
          'target_name': 'metro_driver_unittests',
          'type': 'executable',
          'dependencies': [
            '../../base/base.gyp:base',
            '../../chrome/chrome.gyp:installer_util',
            '../../testing/gtest.gyp:gtest',
            'metro_driver',
          ],
          'sources': [
            'run_all_unittests.cc',
            'winrt_utils.cc',
            'winrt_utils.h',
            'winrt_utils_unittest.cc',
          ],
        },
      ],
    },],
  ],
}