| 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 'target_name': 'message_center', | 11 'target_name': 'message_center', |
| 12 'type': '<(component)', | 12 'type': '<(component)', |
| 13 'dependencies': [ | 13 'dependencies': [ |
| 14 '../../base/base.gyp:base', | 14 '../../base/base.gyp:base', |
| 15 '../../base/base.gyp:base_i18n', | 15 '../../base/base.gyp:base_i18n', |
| 16 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | 16 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', |
| 17 '../../build/temp_gyp/googleurl.gyp:googleurl', | 17 '../../build/temp_gyp/googleurl.gyp:googleurl', |
| 18 '../../skia/skia.gyp:skia', | 18 '../../skia/skia.gyp:skia', |
| 19 '../base/strings/ui_strings.gyp:ui_strings', | 19 '../base/strings/ui_strings.gyp:ui_strings', |
| 20 '../compositor/compositor.gyp:compositor', | |
| 21 '../ui.gyp:ui', | 20 '../ui.gyp:ui', |
| 22 '../ui.gyp:ui_resources', | 21 '../ui.gyp:ui_resources', |
| 23 ], | 22 ], |
| 24 'defines': [ | 23 'defines': [ |
| 25 'MESSAGE_CENTER_IMPLEMENTATION', | 24 'MESSAGE_CENTER_IMPLEMENTATION', |
| 26 ], | 25 ], |
| 27 'sources': [ | 26 'sources': [ |
| 28 'cocoa/notification_controller.h', | 27 'cocoa/notification_controller.h', |
| 29 'cocoa/notification_controller.mm', | 28 'cocoa/notification_controller.mm', |
| 30 'cocoa/popup_collection.h', | 29 'cocoa/popup_collection.h', |
| 31 'cocoa/popup_collection.mm', | 30 'cocoa/popup_collection.mm', |
| 32 'cocoa/popup_controller.h', | 31 'cocoa/popup_controller.h', |
| 33 'cocoa/popup_controller.mm', | 32 'cocoa/popup_controller.mm', |
| 33 'dummy_message_center.cc', |
| 34 'message_center.cc', | 34 'message_center.cc', |
| 35 'message_center.h', | 35 'message_center.h', |
| 36 'message_center_constants.cc', | 36 'message_center_constants.cc', |
| 37 'message_center_constants.h', | 37 'message_center_constants.h', |
| 38 'message_center_export.h', | 38 'message_center_export.h', |
| 39 'message_center_impl.cc', | 39 'message_center_impl.cc', |
| 40 'message_center_impl.h', | 40 'message_center_impl.h', |
| 41 'message_center_observer.h', | 41 'message_center_observer.h', |
| 42 'message_center_switches.cc', | 42 'message_center_switches.cc', |
| 43 'message_center_switches.h', | 43 'message_center_switches.h', |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 ], | 90 ], |
| 91 }], | 91 }], |
| 92 ['OS=="mac"', { | 92 ['OS=="mac"', { |
| 93 'dependencies': [ | 93 'dependencies': [ |
| 94 '../ui.gyp:ui_cocoa_third_party_toolkits', | 94 '../ui.gyp:ui_cocoa_third_party_toolkits', |
| 95 ], | 95 ], |
| 96 'include_dirs': [ | 96 'include_dirs': [ |
| 97 '../../third_party/GTM', | 97 '../../third_party/GTM', |
| 98 ], | 98 ], |
| 99 }], | 99 }], |
| 100 ['OS!="ios"', { |
| 101 'dependencies': [ |
| 102 '../compositor/compositor.gyp:compositor', |
| 103 ], |
| 104 }], |
| 105 ['notifications==0', { # Android and iOS. |
| 106 'sources/': [ |
| 107 # Exclude everything except dummy impl. |
| 108 ['exclude', '\\.(cc|mm)$'], |
| 109 ['include', '^dummy_message_center\\.cc$'], |
| 110 ['include', '^message_center_switches\\.cc$'], |
| 111 ], |
| 112 }, { # notifications==1 |
| 113 'sources!': [ 'dummy_message_center.cc' ], |
| 114 }], |
| 100 ], | 115 ], |
| 101 }, # target_name: message_center | 116 }, # target_name: message_center |
| 102 { | 117 { |
| 103 'target_name': 'message_center_unittests', | 118 'target_name': 'message_center_unittests', |
| 104 'type': 'executable', | 119 'type': 'executable', |
| 105 'dependencies': [ | 120 'dependencies': [ |
| 106 '../../base/base.gyp:base', | 121 '../../base/base.gyp:base', |
| 107 '../../base/base.gyp:test_support_base', | 122 '../../base/base.gyp:test_support_base', |
| 108 '../../skia/skia.gyp:skia', | 123 '../../skia/skia.gyp:skia', |
| 109 '../../testing/gtest.gyp:gtest', | 124 '../../testing/gtest.gyp:gtest', |
| (...skipping 25 matching lines...) Expand all Loading... |
| 135 '../compositor/compositor.gyp:compositor_test_support', | 150 '../compositor/compositor.gyp:compositor_test_support', |
| 136 '../views/views.gyp:views', | 151 '../views/views.gyp:views', |
| 137 '../views/views.gyp:views_test_support', | 152 '../views/views.gyp:views_test_support', |
| 138 ], | 153 ], |
| 139 'sources': [ | 154 'sources': [ |
| 140 'views/bounded_label_unittest.cc', | 155 'views/bounded_label_unittest.cc', |
| 141 'views/message_center_view_unittest.cc', | 156 'views/message_center_view_unittest.cc', |
| 142 'views/message_popup_collection_unittest.cc', | 157 'views/message_popup_collection_unittest.cc', |
| 143 ], | 158 ], |
| 144 }], | 159 }], |
| 160 ['notifications==0', { # Android and iOS. |
| 161 'sources/': [ |
| 162 # Exclude everything except main(). |
| 163 ['exclude', '\\.(cc|mm)$'], |
| 164 ['include', '^test/run_all_unittests\\.cc$'], |
| 165 ], |
| 166 }], |
| 145 ], | 167 ], |
| 146 }, # target_name: message_center_unittests | 168 }, # target_name: message_center_unittests |
| 147 ], | 169 ], |
| 148 } | 170 } |
| OLD | NEW |