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