OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 component("message_center") { | 9 component("message_center") { |
10 deps = [ | 10 deps = [ |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 configs += [ | 26 configs += [ |
27 "//build/config:precompiled_headers", | 27 "//build/config:precompiled_headers", |
28 | 28 |
29 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 29 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
30 "//build/config/compiler:no_size_t_to_int_warning", | 30 "//build/config/compiler:no_size_t_to_int_warning", |
31 ] | 31 ] |
32 | 32 |
33 defines = [ "MESSAGE_CENTER_IMPLEMENTATION" ] | 33 defines = [ "MESSAGE_CENTER_IMPLEMENTATION" ] |
34 | 34 |
35 if (enable_notifications && !is_android) { | 35 if (enable_notifications && (!is_android || use_aura)) { |
36 sources = [ | 36 sources = [ |
37 "cocoa/notification_controller.h", | 37 "cocoa/notification_controller.h", |
38 "cocoa/notification_controller.mm", | 38 "cocoa/notification_controller.mm", |
39 "cocoa/opaque_views.h", | 39 "cocoa/opaque_views.h", |
40 "cocoa/opaque_views.mm", | 40 "cocoa/opaque_views.mm", |
41 "cocoa/popup_collection.h", | 41 "cocoa/popup_collection.h", |
42 "cocoa/popup_collection.mm", | 42 "cocoa/popup_collection.mm", |
43 "cocoa/popup_controller.h", | 43 "cocoa/popup_controller.h", |
44 "cocoa/popup_controller.mm", | 44 "cocoa/popup_controller.mm", |
45 "cocoa/settings_controller.h", | 45 "cocoa/settings_controller.h", |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 deps += [ | 236 deps += [ |
237 # Compositor is needed by message_center_view_unittest.cc and for the | 237 # Compositor is needed by message_center_view_unittest.cc and for the |
238 # fonts used by bounded_label_unittest.cc. | 238 # fonts used by bounded_label_unittest.cc. |
239 "//ui/compositor", | 239 "//ui/compositor", |
240 "//ui/views", | 240 "//ui/views", |
241 "//ui/views:test_support", | 241 "//ui/views:test_support", |
242 ] | 242 ] |
243 } | 243 } |
244 } # enable_notifications && !is_android | 244 } # enable_notifications && !is_android |
245 } | 245 } |
OLD | NEW |