Don't add an aura tooltip to bubble close buttons on Windows.
[chromium-blink-merge.git] / win8 / metro_driver / metro_driver.gyp
blobce09c1d449cbe5418d8df80a6fe223ae9ab4bcbf
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5   'conditions': [
6     ['OS=="win"', {
7       'variables': {
8         'chromium_code': 1,
9       },
10       'includes': [
11         '../../build/util/version.gypi',
12         '../../build/win_precompile.gypi',
13       ],
14       'target_defaults': {
15         'msvs_settings': {
16           'VCLinkerTool': {
17             'AdditionalDependencies': [
18               'D2D1.lib',
19               'D3D11.lib',
20               'runtimeobject.lib',
21             ],
22             'DelayLoadDLLs': [
23               'API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL',
24               'API-MS-WIN-CORE-WINRT-L1-1-0.DLL',
25               'API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL',
26             ],
27           },
28         },
29       },
30       'targets': [
31         {
32           'target_name': 'metro_driver_version_resources',
33           'type': 'none',
34           'conditions': [
35             ['branding == "Chrome"', {
36               'variables': {
37                  'branding_path': '../../chrome/app/theme/google_chrome/BRANDING',
38               },
39             }, { # else branding!="Chrome"
40               'variables': {
41                  'branding_path': '../../chrome/app/theme/chromium/BRANDING',
42               },
43             }],
44           ],
45           'variables': {
46             'output_dir': 'metro_driver',
47             'template_input_path': '../../chrome/app/chrome_version.rc.version',
48           },
49           'sources': [
50             'metro_driver_dll.ver',
51           ],
52           'includes': [
53             '../../chrome/version_resource_rules.gypi',
54           ],
55         },
56         {
57           'target_name': 'metro_driver',
58           'type': 'shared_library',
59           'dependencies': [
60             '../../base/base.gyp:base',
61             '../../chrome/common_constants.gyp:common_constants',
62             '../../chrome/chrome.gyp:installer_util',
63             '../../crypto/crypto.gyp:crypto',
64             '../../google_update/google_update.gyp:google_update',
65             '../../ipc/ipc.gyp:ipc',
66             '../../sandbox/sandbox.gyp:sandbox',
67             '../../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages',
68             '../../ui/gfx/gfx.gyp:gfx',
69             '../../ui/gfx/gfx.gyp:gfx_geometry',
70             '../../url/url.gyp:url_lib',
71             'metro_driver_version_resources',
72           ],
73           'sources': [
74             'display_properties.cc',
75             'display_properties.h',
76             'metro_driver.cc',
77             'metro_driver.h',
78             'metro_driver_win7.cc',
79             'stdafx.h',
80             'winrt_utils.cc',
81             'winrt_utils.h',
82             '<(SHARED_INTERMEDIATE_DIR)/metro_driver/metro_driver_dll_version.rc',
83           ],
84           'conditions': [
85             ['use_aura==1', {
86               'dependencies': [
87                 '../win8.gyp:metro_viewer_constants',
88               ],
89               'sources': [
90                 'chrome_app_view_ash.cc',
91                 'chrome_app_view_ash.h',
92                 'direct3d_helper.cc',
93                 'direct3d_helper.h',
94                 'file_picker_ash.cc',
95                 'file_picker_ash.h',
96               ],
97               'includes': [
98                 'ime/ime.gypi',
99               ],
100             }, {  # use_aura!=1
101               'sources': [
102                 'chrome_app_view.cc',
103                 'chrome_app_view.h',
104                 'chrome_url_launch_handler.cc',
105                 'chrome_url_launch_handler.h',
106                 'devices_handler.cc',
107                 'devices_handler.h',
108                 'file_picker.cc',
109                 'file_picker.h',
110                 'metro_dialog_box.cc',
111                 'metro_dialog_box.h',
112                 'print_document_source.cc',
113                 'print_document_source.h',
114                 'print_handler.cc',
115                 'print_handler.h',
116                 'secondary_tile.cc',
117                 'secondary_tile.h',
118                 'settings_handler.cc',
119                 'settings_handler.h',
120                 'toast_notification_handler.cc',
121                 'toast_notification_handler.h',
122               ],
123             }],
124           ],
125           'copies': [
126             {
127               'destination': '<(PRODUCT_DIR)',
128               'files': [
129                 'resources/Logo.png',
130                 'resources/SecondaryTile.png',
131                 'resources/SmallLogo.png',
132                 'resources/splash-620x300.png',
133                 'resources/VisualElementsManifest.xml',
134               ],
135             },
136           ],
137         },
138         {
139           'target_name': 'metro_driver_unittests',
140           'type': 'executable',
141           'dependencies': [
142             '../../base/base.gyp:base',
143             '../../chrome/chrome.gyp:installer_util',
144             '../../testing/gtest.gyp:gtest',
145             'metro_driver',
146           ],
147           'sources': [
148             'run_all_unittests.cc',
149             'winrt_utils.cc',
150             'winrt_utils.h',
151             'winrt_utils_unittest.cc',
152           ],
153         },
154       ],
155     },],
156   ],