| 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 { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 ['use_ash==0', { | 125 ['use_ash==0', { |
| 126 'sources!': [ | 126 'sources!': [ |
| 127 'views/message_bubble_base.cc', | 127 'views/message_bubble_base.cc', |
| 128 'views/message_bubble_base.h', | 128 'views/message_bubble_base.h', |
| 129 'views/message_center_bubble.cc', | 129 'views/message_center_bubble.cc', |
| 130 'views/message_center_bubble.h', | 130 'views/message_center_bubble.h', |
| 131 'views/message_popup_bubble.cc', | 131 'views/message_popup_bubble.cc', |
| 132 'views/message_popup_bubble.h', | 132 'views/message_popup_bubble.h', |
| 133 ], | 133 ], |
| 134 }], | 134 }], |
| 135 ['notifications==0', { # Android and iOS. | 135 # iOS disables notifications altogether, Android implements its own |
| 136 # notification UI manager instead of deferring to the message center. |
| 137 ['notifications==0 or OS=="android"', { |
| 136 'sources/': [ | 138 'sources/': [ |
| 137 # Exclude everything except dummy impl. | 139 # Exclude everything except dummy impl. |
| 138 ['exclude', '\\.(cc|mm)$'], | 140 ['exclude', '\\.(cc|mm)$'], |
| 139 ['include', '^dummy_message_center\\.cc$'], | 141 ['include', '^dummy_message_center\\.cc$'], |
| 140 ['include', '^message_center_switches\\.cc$'], | 142 ['include', '^message_center_switches\\.cc$'], |
| 141 ], | 143 ], |
| 142 }, { # notifications==1 | 144 }, { # notifications==1 |
| 143 'sources!': [ 'dummy_message_center.cc' ], | 145 'sources!': [ 'dummy_message_center.cc' ], |
| 144 }], | 146 }], |
| 147 # Include a minimal set of files required for notifications on Android. |
| 148 ['OS=="android"', { |
| 149 'sources/': [ |
| 150 ['include', '^notification\\.cc$'], |
| 151 ['include', '^notification_delegate\\.cc$'], |
| 152 ['include', '^notifier_settings\\.cc$'], |
| 153 ], |
| 154 }], |
| 145 ], | 155 ], |
| 146 }, # target_name: message_center | 156 }, # target_name: message_center |
| 147 { | 157 { |
| 148 'target_name': 'message_center_test_support', | 158 'target_name': 'message_center_test_support', |
| 149 'type': 'static_library', | 159 'type': 'static_library', |
| 150 'dependencies': [ | 160 'dependencies': [ |
| 151 '../../base/base.gyp:base', | 161 '../../base/base.gyp:base', |
| 152 '../../base/base.gyp:test_support_base', | 162 '../../base/base.gyp:test_support_base', |
| 153 '../../skia/skia.gyp:skia', | 163 '../../skia/skia.gyp:skia', |
| 154 '../base/ui_base.gyp:ui_base', | 164 '../base/ui_base.gyp:ui_base', |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 | 238 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554 |
| 229 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tc
malloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', { | 239 ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tc
malloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', { |
| 230 'dependencies': [ | 240 'dependencies': [ |
| 231 '../../base/allocator/allocator.gyp:allocator', | 241 '../../base/allocator/allocator.gyp:allocator', |
| 232 ], | 242 ], |
| 233 }], | 243 }], |
| 234 ], | 244 ], |
| 235 }, # target_name: message_center_unittests | 245 }, # target_name: message_center_unittests |
| 236 ], | 246 ], |
| 237 } | 247 } |
| OLD | NEW |