OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
| 11 # GN version: //ui/message_center |
11 'target_name': 'message_center', | 12 'target_name': 'message_center', |
12 'type': '<(component)', | 13 'type': '<(component)', |
13 'dependencies': [ | 14 'dependencies': [ |
14 '../../base/base.gyp:base', | 15 '../../base/base.gyp:base', |
15 '../../base/base.gyp:base_i18n', | 16 '../../base/base.gyp:base_i18n', |
16 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | 17 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', |
17 '../../skia/skia.gyp:skia', | 18 '../../skia/skia.gyp:skia', |
18 '../../url/url.gyp:url_lib', | 19 '../../url/url.gyp:url_lib', |
19 '../base/ui_base.gyp:ui_base', | 20 '../base/ui_base.gyp:ui_base', |
20 '../gfx/gfx.gyp:gfx', | 21 '../gfx/gfx.gyp:gfx', |
21 '../gfx/gfx.gyp:gfx_geometry', | 22 '../gfx/gfx.gyp:gfx_geometry', |
22 '../resources/ui_resources.gyp:ui_resources', | 23 '../resources/ui_resources.gyp:ui_resources', |
23 '../strings/ui_strings.gyp:ui_strings', | 24 '../strings/ui_strings.gyp:ui_strings', |
24 ], | 25 ], |
25 'defines': [ | 26 'defines': [ |
26 'MESSAGE_CENTER_IMPLEMENTATION', | 27 'MESSAGE_CENTER_IMPLEMENTATION', |
27 ], | 28 ], |
28 'sources': [ | 29 'sources': [ |
| 30 # Note: file list duplicated in GN build. |
29 'cocoa/notification_controller.h', | 31 'cocoa/notification_controller.h', |
30 'cocoa/notification_controller.mm', | 32 'cocoa/notification_controller.mm', |
31 'cocoa/opaque_views.h', | 33 'cocoa/opaque_views.h', |
32 'cocoa/opaque_views.mm', | 34 'cocoa/opaque_views.mm', |
33 'cocoa/popup_collection.h', | 35 'cocoa/popup_collection.h', |
34 'cocoa/popup_collection.mm', | 36 'cocoa/popup_collection.mm', |
35 'cocoa/popup_controller.h', | 37 'cocoa/popup_controller.h', |
36 'cocoa/popup_controller.mm', | 38 'cocoa/popup_controller.mm', |
37 'cocoa/settings_controller.h', | 39 'cocoa/settings_controller.h', |
38 'cocoa/settings_controller.mm', | 40 'cocoa/settings_controller.mm', |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 'sources/': [ | 127 'sources/': [ |
126 ['exclude', 'views/'], | 128 ['exclude', 'views/'], |
127 ], | 129 ], |
128 }], | 130 }], |
129 ['use_ash==0', { | 131 ['use_ash==0', { |
130 'sources!': [ | 132 'sources!': [ |
131 'views/message_bubble_base.cc', | 133 'views/message_bubble_base.cc', |
132 'views/message_bubble_base.h', | 134 'views/message_bubble_base.h', |
133 'views/message_center_bubble.cc', | 135 'views/message_center_bubble.cc', |
134 'views/message_center_bubble.h', | 136 'views/message_center_bubble.h', |
135 'views/message_popup_bubble.cc', | |
136 'views/message_popup_bubble.h', | |
137 ], | 137 ], |
138 }], | 138 }], |
139 # iOS disables notifications altogether, Android implements its own | 139 # iOS disables notifications altogether, Android implements its own |
140 # notification UI manager instead of deferring to the message center. | 140 # notification UI manager instead of deferring to the message center. |
141 ['notifications==0 or OS=="android"', { | 141 ['notifications==0 or OS=="android"', { |
142 'sources/': [ | 142 'sources/': [ |
143 # Exclude everything except dummy impl. | 143 # Exclude everything except dummy impl. |
144 ['exclude', '\\.(cc|mm)$'], | 144 ['exclude', '\\.(cc|mm)$'], |
145 ['include', '^dummy_message_center\\.cc$'], | 145 ['include', '^dummy_message_center\\.cc$'], |
146 ['include', '^message_center_switches\\.cc$'], | |
147 ['include', '^notification_delegate\\.cc$'], | 146 ['include', '^notification_delegate\\.cc$'], |
148 ], | 147 ], |
149 }, { # notifications==1 | 148 }, { # notifications==1 |
150 'sources!': [ 'dummy_message_center.cc' ], | 149 'sources!': [ 'dummy_message_center.cc' ], |
151 }], | 150 }], |
152 # Include a minimal set of files required for notifications on Android. | 151 # Include a minimal set of files required for notifications on Android. |
153 ['OS=="android"', { | 152 ['OS=="android"', { |
154 'sources/': [ | 153 'sources/': [ |
155 ['include', '^notification\\.cc$'], | 154 ['include', '^notification\\.cc$'], |
156 ['include', '^notifier_settings\\.cc$'], | 155 ['include', '^notifier_settings\\.cc$'], |
157 ], | 156 ], |
158 }], | 157 }], |
159 ], | 158 ], |
160 }, # target_name: message_center | 159 }, # target_name: message_center |
161 { | 160 { |
| 161 # GN version: //ui/message_center:test_support |
162 'target_name': 'message_center_test_support', | 162 'target_name': 'message_center_test_support', |
163 'type': 'static_library', | 163 'type': 'static_library', |
164 'dependencies': [ | 164 'dependencies': [ |
165 '../../base/base.gyp:base', | 165 '../../base/base.gyp:base', |
166 '../../base/base.gyp:test_support_base', | 166 '../../base/base.gyp:test_support_base', |
167 '../../skia/skia.gyp:skia', | 167 '../../skia/skia.gyp:skia', |
168 '../base/ui_base.gyp:ui_base', | 168 '../base/ui_base.gyp:ui_base', |
169 '../gfx/gfx.gyp:gfx', | 169 '../gfx/gfx.gyp:gfx', |
170 '../gfx/gfx.gyp:gfx_geometry', | 170 '../gfx/gfx.gyp:gfx_geometry', |
171 'message_center', | 171 'message_center', |
172 ], | 172 ], |
173 'sources': [ | 173 'sources': [ |
| 174 # Note: sources list duplicated in GN build. |
174 'fake_message_center.h', | 175 'fake_message_center.h', |
175 'fake_message_center.cc', | 176 'fake_message_center.cc', |
176 'fake_message_center_tray_delegate.h', | 177 'fake_message_center_tray_delegate.h', |
177 'fake_message_center_tray_delegate.cc', | 178 'fake_message_center_tray_delegate.cc', |
178 'fake_notifier_settings_provider.h', | 179 'fake_notifier_settings_provider.h', |
179 'fake_notifier_settings_provider.cc', | 180 'fake_notifier_settings_provider.cc', |
180 ], | 181 ], |
181 }, # target_name: message_center_test_support | 182 }, # target_name: message_center_test_support |
182 { | 183 { |
| 184 # GN version: //ui/message_center:message_center_unittests |
183 'target_name': 'message_center_unittests', | 185 'target_name': 'message_center_unittests', |
184 'type': 'executable', | 186 'type': 'executable', |
185 'dependencies': [ | 187 'dependencies': [ |
186 '../../base/base.gyp:base', | 188 '../../base/base.gyp:base', |
187 '../../base/base.gyp:test_support_base', | 189 '../../base/base.gyp:test_support_base', |
188 '../../skia/skia.gyp:skia', | 190 '../../skia/skia.gyp:skia', |
189 '../../testing/gtest.gyp:gtest', | 191 '../../testing/gtest.gyp:gtest', |
190 '../../url/url.gyp:url_lib', | 192 '../../url/url.gyp:url_lib', |
191 '../base/ui_base.gyp:ui_base', | 193 '../base/ui_base.gyp:ui_base', |
192 '../gfx/gfx.gyp:gfx', | 194 '../gfx/gfx.gyp:gfx', |
193 '../gfx/gfx.gyp:gfx_geometry', | 195 '../gfx/gfx.gyp:gfx_geometry', |
194 '../resources/ui_resources.gyp:ui_resources', | 196 '../resources/ui_resources.gyp:ui_resources', |
195 '../resources/ui_resources.gyp:ui_test_pak', | 197 '../resources/ui_resources.gyp:ui_test_pak', |
196 'message_center', | 198 'message_center', |
197 'message_center_test_support', | 199 'message_center_test_support', |
198 ], | 200 ], |
199 'sources': [ | 201 'sources': [ |
| 202 # Note: file list duplicated in GN build. |
200 'cocoa/notification_controller_unittest.mm', | 203 'cocoa/notification_controller_unittest.mm', |
201 'cocoa/popup_collection_unittest.mm', | 204 'cocoa/popup_collection_unittest.mm', |
202 'cocoa/popup_controller_unittest.mm', | 205 'cocoa/popup_controller_unittest.mm', |
203 'cocoa/settings_controller_unittest.mm', | 206 'cocoa/settings_controller_unittest.mm', |
204 'cocoa/status_item_view_unittest.mm', | 207 'cocoa/status_item_view_unittest.mm', |
205 'cocoa/tray_controller_unittest.mm', | 208 'cocoa/tray_controller_unittest.mm', |
206 'cocoa/tray_view_controller_unittest.mm', | 209 'cocoa/tray_view_controller_unittest.mm', |
207 'message_center_tray_unittest.cc', | 210 'message_center_tray_unittest.cc', |
208 'message_center_impl_unittest.cc', | 211 'message_center_impl_unittest.cc', |
209 'notification_delegate_unittest.cc', | 212 'notification_delegate_unittest.cc', |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 # See http://crbug.com/162998#c4 for why this is needed. | 245 # See http://crbug.com/162998#c4 for why this is needed. |
243 ['OS=="linux" and use_allocator!="none"', { | 246 ['OS=="linux" and use_allocator!="none"', { |
244 'dependencies': [ | 247 'dependencies': [ |
245 '../../base/allocator/allocator.gyp:allocator', | 248 '../../base/allocator/allocator.gyp:allocator', |
246 ], | 249 ], |
247 }], | 250 }], |
248 ], | 251 ], |
249 }, # target_name: message_center_unittests | 252 }, # target_name: message_center_unittests |
250 ], | 253 ], |
251 } | 254 } |
OLD | NEW |