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.
11 'target_name': 'message_center',
12 'type': '<(component)',
14 '../../base/base.gyp:base',
15 '../../base/base.gyp:base_i18n',
16 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17 '../../skia/skia.gyp:skia',
18 '../../url/url.gyp:url_lib',
19 '../base/strings/ui_strings.gyp:ui_strings',
21 '../gfx/gfx.gyp:gfx_geometry',
22 '../resources/ui_resources.gyp:ui_resources',
26 'MESSAGE_CENTER_IMPLEMENTATION',
29 'cocoa/notification_controller.h',
30 'cocoa/notification_controller.mm',
31 'cocoa/popup_collection.h',
32 'cocoa/popup_collection.mm',
33 'cocoa/popup_controller.h',
34 'cocoa/popup_controller.mm',
35 'cocoa/settings_controller.h',
36 'cocoa/settings_controller.mm',
37 'cocoa/settings_entry_view.h',
38 'cocoa/settings_entry_view.mm',
39 'cocoa/status_item_view.h',
40 'cocoa/status_item_view.mm',
41 'cocoa/tray_controller.h',
42 'cocoa/tray_controller.mm',
43 'cocoa/tray_view_controller.h',
44 'cocoa/tray_view_controller.mm',
45 'dummy_message_center.cc',
48 'message_center_export.h',
49 'notification_delegate.cc',
50 'notification_delegate.h',
51 'message_center_impl.cc',
52 'message_center_impl.h',
53 'message_center_observer.h',
54 'message_center_style.cc',
55 'message_center_style.h',
56 'message_center_switches.cc',
57 'message_center_switches.h',
58 'message_center_tray.cc',
59 'message_center_tray.h',
60 'message_center_tray_delegate.h',
61 'message_center_types.h',
62 'message_center_util.cc',
63 'message_center_util.h',
66 'notification_blocker.cc',
67 'notification_blocker.h',
68 'notification_list.cc',
69 'notification_list.h',
70 'notification_types.cc',
71 'notification_types.h',
72 'notifier_settings.cc',
73 'notifier_settings.h',
74 'views/bounded_label.cc',
75 'views/bounded_label.h',
76 'views/bounded_scroll_view.cc',
77 'views/bounded_scroll_view.h',
79 'views/message_bubble_base.cc',
80 'views/message_bubble_base.h',
81 'views/message_center_controller.h',
82 'views/message_center_bubble.cc',
83 'views/message_center_bubble.h',
84 'views/message_center_button_bar.cc',
85 'views/message_center_button_bar.h',
86 'views/message_center_view.cc',
87 'views/message_center_view.h',
88 'views/message_popup_collection.cc',
89 'views/message_popup_collection.h',
90 'views/message_view.cc',
91 'views/message_view.h',
92 'views/message_view_context_menu_controller.cc',
93 'views/message_view_context_menu_controller.h',
94 'views/notifier_settings_view.cc',
95 'views/notifier_settings_view.h',
96 'views/notification_button.cc',
97 'views/notification_button.h',
98 'views/notification_view.cc',
99 'views/notification_view.h',
100 'views/padded_button.cc',
101 'views/padded_button.h',
102 'views/proportional_image_view.cc',
103 'views/proportional_image_view.h',
104 'views/toast_contents_view.cc',
105 'views/toast_contents_view.h',
107 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
108 'msvs_disabled_warnings': [ 4267, ],
110 # This condition is for Windows 8 Metro mode support. We need to
111 # specify a particular desktop during widget creation in that case.
112 # This is done using the desktop aura native widget framework.
113 ['use_ash==1 and OS=="win"', {
115 '../aura/aura.gyp:aura',
118 ['toolkit_views==1', {
120 '../events/events.gyp:events',
121 '../views/views.gyp:views',
122 '../compositor/compositor.gyp:compositor',
126 ['exclude', 'views/'],
131 'views/message_bubble_base.cc',
132 'views/message_bubble_base.h',
133 'views/message_center_bubble.cc',
134 'views/message_center_bubble.h',
135 'views/message_popup_bubble.cc',
136 'views/message_popup_bubble.h',
139 ['notifications==0', { # Android and iOS.
141 # Exclude everything except dummy impl.
142 ['exclude', '\\.(cc|mm)$'],
143 ['include', '^dummy_message_center\\.cc$'],
144 ['include', '^message_center_switches\\.cc$'],
146 }, { # notifications==1
147 'sources!': [ 'dummy_message_center.cc' ],
150 }, # target_name: message_center
152 'target_name': 'message_center_test_support',
153 'type': 'static_library',
155 '../../base/base.gyp:base',
156 '../../base/base.gyp:test_support_base',
157 '../../skia/skia.gyp:skia',
158 '../gfx/gfx.gyp:gfx',
159 '../gfx/gfx.gyp:gfx_geometry',
164 'fake_message_center.h',
165 'fake_message_center.cc',
166 'fake_notifier_settings_provider.h',
167 'fake_notifier_settings_provider.cc',
169 }, # target_name: message_center_test_support
171 'target_name': 'message_center_unittests',
172 'type': 'executable',
174 '../../base/base.gyp:base',
175 '../../base/base.gyp:test_support_base',
176 '../../skia/skia.gyp:skia',
177 '../../testing/gtest.gyp:gtest',
178 '../../url/url.gyp:url_lib',
179 '../gfx/gfx.gyp:gfx',
180 '../gfx/gfx.gyp:gfx_geometry',
181 '../resources/ui_resources.gyp:ui_resources',
182 '../resources/ui_resources.gyp:ui_test_pak',
185 'message_center_test_support',
188 'cocoa/notification_controller_unittest.mm',
189 'cocoa/popup_collection_unittest.mm',
190 'cocoa/popup_controller_unittest.mm',
191 'cocoa/settings_controller_unittest.mm',
192 'cocoa/status_item_view_unittest.mm',
193 'cocoa/tray_controller_unittest.mm',
194 'cocoa/tray_view_controller_unittest.mm',
195 'message_center_tray_unittest.cc',
196 'message_center_impl_unittest.cc',
197 'notification_delegate_unittest.cc',
198 'notification_list_unittest.cc',
199 'test/run_all_unittests.cc',
202 ['desktop_linux == 1 or chromeos == 1 or OS=="ios"', {
204 '../base/strings/ui_strings.gyp:ui_unittest_strings',
209 '../gfx/gfx.gyp:gfx_test_support',
212 ['toolkit_views==1', {
214 # Compositor is needed by message_center_view_unittest.cc
215 # and for the fonts used by bounded_label_unittest.cc.
216 '../compositor/compositor.gyp:compositor',
217 '../views/views.gyp:views',
218 '../views/views.gyp:views_test_support',
221 'views/bounded_label_unittest.cc',
222 'views/bounded_scroll_view_unittest.cc',
223 'views/message_center_view_unittest.cc',
224 'views/message_popup_collection_unittest.cc',
225 'views/notifier_settings_view_unittest.cc',
228 ['notifications==0', { # Android and iOS.
230 # Exclude everything except main().
231 ['exclude', '\\.(cc|mm)$'],
232 ['include', '^test/run_all_unittests\\.cc$'],
235 # See http://crbug.com/162998#c4 for why this is needed.
236 ['OS=="linux" and linux_use_tcmalloc==1', {
238 '../../base/allocator/allocator.gyp:allocator',
242 }, # target_name: message_center_unittests