cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ui / message_center / message_center.gyp
blob149fa4b5fc9b33adfe74eb15b774650ab3e94ea2
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # GN version: //ui/message_center
12       'target_name': 'message_center',
13       'type': '<(component)',
14       'dependencies': [
15         '../../base/base.gyp:base',
16         '../../base/base.gyp:base_i18n',
17         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
18         '../../components/url_formatter/url_formatter.gyp:url_formatter',
19         '../../skia/skia.gyp:skia',
20         '../../url/url.gyp:url_lib',
21         '../base/ui_base.gyp:ui_base',
22         '../gfx/gfx.gyp:gfx',
23         '../gfx/gfx.gyp:gfx_geometry',
24         '../resources/ui_resources.gyp:ui_resources',
25         '../strings/ui_strings.gyp:ui_strings',
26       ],
27       'defines': [
28         'MESSAGE_CENTER_IMPLEMENTATION',
29       ],
30       'sources': [
31         # Note: file list duplicated in GN build.
32         'cocoa/notification_controller.h',
33         'cocoa/notification_controller.mm',
34         'cocoa/opaque_views.h',
35         'cocoa/opaque_views.mm',
36         'cocoa/popup_collection.h',
37         'cocoa/popup_collection.mm',
38         'cocoa/popup_controller.h',
39         'cocoa/popup_controller.mm',
40         'cocoa/settings_controller.h',
41         'cocoa/settings_controller.mm',
42         'cocoa/settings_entry_view.h',
43         'cocoa/settings_entry_view.mm',
44         'cocoa/status_item_view.h',
45         'cocoa/status_item_view.mm',
46         'cocoa/tray_controller.h',
47         'cocoa/tray_controller.mm',
48         'cocoa/tray_view_controller.h',
49         'cocoa/tray_view_controller.mm',
50         'dummy_message_center.cc',
51         'message_center.cc',
52         'message_center.h',
53         'message_center_export.h',
54         'message_center_impl.cc',
55         'message_center_impl.h',
56         'message_center_observer.h',
57         'message_center_style.cc',
58         'message_center_style.h',
59         'message_center_switches.cc',
60         'message_center_switches.h',
61         'message_center_tray.cc',
62         'message_center_tray.h',
63         'message_center_tray_delegate.h',
64         'message_center_types.h',
65         'notification.cc',
66         'notification.h',
67         'notification_blocker.cc',
68         'notification_blocker.h',
69         'notification_delegate.cc',
70         'notification_delegate.h',
71         'notification_list.cc',
72         'notification_list.h',
73         'notification_types.cc',
74         'notification_types.h',
75         'notifier_settings.cc',
76         'notifier_settings.h',
77         'views/bounded_label.cc',
78         'views/bounded_label.h',
79         'views/constants.h',
80         'views/desktop_popup_alignment_delegate.cc',
81         'views/desktop_popup_alignment_delegate.h',
82         'views/message_bubble_base.cc',
83         'views/message_bubble_base.h',
84         'views/message_center_bubble.cc',
85         'views/message_center_bubble.h',
86         'views/message_center_button_bar.cc',
87         'views/message_center_button_bar.h',
88         'views/message_center_controller.h',
89         'views/message_center_view.cc',
90         'views/message_center_view.h',
91         'views/message_list_view.cc',
92         'views/message_list_view.h',
93         'views/message_popup_collection.cc',
94         'views/message_popup_collection.h',
95         'views/message_view.cc',
96         'views/message_view.h',
97         'views/message_view_context_menu_controller.cc',
98         'views/message_view_context_menu_controller.h',
99         'views/notification_button.cc',
100         'views/notification_button.h',
101         'views/notification_view.cc',
102         'views/notification_view.h',
103         'views/notifier_settings_view.cc',
104         'views/notifier_settings_view.h',
105         'views/padded_button.cc',
106         'views/padded_button.h',
107         'views/popup_alignment_delegate.cc',
108         'views/popup_alignment_delegate.h',
109         'views/proportional_image_view.cc',
110         'views/proportional_image_view.h',
111         'views/toast_contents_view.cc',
112         'views/toast_contents_view.h',
113       ],
114       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
115       'msvs_disabled_warnings': [ 4267, ],
116       'conditions': [
117         # This condition is for Windows 8 Metro mode support.  We need to
118         # specify a particular desktop during widget creation in that case.
119         # This is done using the desktop aura native widget framework.
120         ['OS=="win"', {
121           'dependencies': [
122             '../aura/aura.gyp:aura',
123           ],
124         }],
125         # On Mac, toolkit-views builds still use the Cocoa UI. Keep this in sync
126         # with message_center_unittests below.
127         ['toolkit_views==1 and OS!="mac"', {
128           'dependencies': [
129             '../events/events.gyp:events',
130             '../views/views.gyp:views',
131             '../compositor/compositor.gyp:compositor',
132           ],
133         }, {
134           'sources/': [
135             ['exclude', 'views/'],
136           ],
137         }],
138         ['use_ash==0', {
139           'sources!': [
140             'views/message_bubble_base.cc',
141             'views/message_bubble_base.h',
142             'views/message_center_bubble.cc',
143             'views/message_center_bubble.h',
144           ],
145         }],
146         # iOS disables notifications altogether, Android implements its own
147         # notification UI manager instead of deferring to the message center.
148         ['notifications==0 or OS=="android"', {
149           'sources/': [
150             # Exclude everything except dummy impl.
151             ['exclude', '\\.(cc|mm)$'],
152             ['include', '^dummy_message_center\\.cc$'],
153             ['include', '^notification_delegate\\.cc$'],
154           ],
155         }, {  # notifications==1
156           'sources!': [ 'dummy_message_center.cc' ],
157         }],
158         # Include a minimal set of files required for notifications on Android.
159         ['OS=="android"', {
160           'sources/': [
161             ['include', '^notification\\.cc$'],
162             ['include', '^notifier_settings\\.cc$'],
163           ],
164         }],
165       ],
166     },  # target_name: message_center
167     {
168       # GN version: //ui/message_center:test_support
169       'target_name': 'message_center_test_support',
170       'type': 'static_library',
171       'dependencies': [
172         '../../base/base.gyp:base',
173         '../../base/base.gyp:test_support_base',
174         '../../skia/skia.gyp:skia',
175         '../base/ui_base.gyp:ui_base',
176         '../gfx/gfx.gyp:gfx',
177         '../gfx/gfx.gyp:gfx_geometry',
178         'message_center',
179       ],
180       'sources': [
181         # Note: sources list duplicated in GN build.
182         'fake_message_center.cc',
183         'fake_message_center.h',
184         'fake_message_center_tray_delegate.cc',
185         'fake_message_center_tray_delegate.h',
186         'fake_notifier_settings_provider.cc',
187         'fake_notifier_settings_provider.h',
188       ],
189     },  # target_name: message_center_test_support
190     {
191       # GN version: //ui/message_center:message_center_unittests
192       'target_name': 'message_center_unittests',
193       'type': 'executable',
194       'dependencies': [
195         '../../base/base.gyp:base',
196         '../../base/base.gyp:test_support_base',
197         '../../skia/skia.gyp:skia',
198         '../../testing/gtest.gyp:gtest',
199         '../../url/url.gyp:url_lib',
200         '../base/ui_base.gyp:ui_base',
201         '../gfx/gfx.gyp:gfx',
202         '../gfx/gfx.gyp:gfx_geometry',
203         '../resources/ui_resources.gyp:ui_resources',
204         '../resources/ui_resources.gyp:ui_test_pak',
205         'message_center',
206         'message_center_test_support',
207       ],
208       'sources': [
209         # Note: file list duplicated in GN build.
210         'cocoa/notification_controller_unittest.mm',
211         'cocoa/popup_collection_unittest.mm',
212         'cocoa/popup_controller_unittest.mm',
213         'cocoa/settings_controller_unittest.mm',
214         'cocoa/status_item_view_unittest.mm',
215         'cocoa/tray_controller_unittest.mm',
216         'cocoa/tray_view_controller_unittest.mm',
217         'message_center_impl_unittest.cc',
218         'message_center_tray_unittest.cc',
219         'notification_delegate_unittest.cc',
220         'notification_list_unittest.cc',
221         'test/run_all_unittests.cc',
222       ],
223       'conditions': [
224         ['OS=="mac"', {
225           'dependencies': [
226             '../gfx/gfx.gyp:gfx_test_support',
227           ],
228         }],
229         ['toolkit_views==1 and OS!="mac"', {
230           'dependencies': [
231             # Compositor is needed by message_center_view_unittest.cc
232             # and for the fonts used by bounded_label_unittest.cc.
233             '../compositor/compositor.gyp:compositor',
234             '../views/views.gyp:views',
235             '../views/views.gyp:views_test_support',
236           ],
237           'sources': [
238             'views/bounded_label_unittest.cc',
239             'views/message_center_view_unittest.cc',
240             'views/message_popup_collection_unittest.cc',
241             'views/notification_view_unittest.cc',
242             'views/notifier_settings_view_unittest.cc',
243           ],
244         }],
245         ['notifications==0', {  # Android and iOS.
246           'sources/': [
247             # Exclude everything except main().
248             ['exclude', '\\.(cc|mm)$'],
249             ['include', '^test/run_all_unittests\\.cc$'],
250           ],
251         }],
252         # See http://crbug.com/162998#c4 for why this is needed.
253         ['OS=="linux" and use_allocator!="none"', {
254           'dependencies': [
255             '../../base/allocator/allocator.gyp:allocator',
256           ],
257         }],
258       ],
259     },  # target_name: message_center_unittests
260   ],
261   'conditions': [
262     ['test_isolation_mode != "noop"', {
263       'targets': [
264         {
265           'target_name': 'message_center_unittests_run',
266           'type': 'none',
267           'dependencies': [
268             'message_center_unittests',
269           ],
270           'includes': [
271             '../../build/isolate.gypi',
272           ],
273           'sources': [
274             'message_center_unittests.isolate',
275           ],
276           'conditions': [
277             ['use_x11 == 1', {
278               'dependencies': [
279                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
280               ],
281             }],
282           ],
283         },
284       ],
285     }],
286   ],