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', |
20 '../ui.gyp:ui', | 21 '../ui.gyp:ui', |
21 '../ui.gyp:ui_resources', | 22 '../ui.gyp:ui_resources', |
22 ], | 23 ], |
23 'defines': [ | 24 'defines': [ |
24 'MESSAGE_CENTER_IMPLEMENTATION', | 25 'MESSAGE_CENTER_IMPLEMENTATION', |
25 ], | 26 ], |
26 'sources': [ | 27 'sources': [ |
27 'cocoa/notification_controller.h', | 28 'cocoa/notification_controller.h', |
28 'cocoa/notification_controller.mm', | 29 'cocoa/notification_controller.mm', |
29 'cocoa/popup_collection.h', | 30 'cocoa/popup_collection.h', |
30 'cocoa/popup_collection.mm', | 31 'cocoa/popup_collection.mm', |
31 'cocoa/popup_controller.h', | 32 'cocoa/popup_controller.h', |
32 'cocoa/popup_controller.mm', | 33 '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 }], | |
115 ], | 100 ], |
116 }, # target_name: message_center | 101 }, # target_name: message_center |
117 { | 102 { |
118 'target_name': 'message_center_unittests', | 103 'target_name': 'message_center_unittests', |
119 'type': 'executable', | 104 'type': 'executable', |
120 'dependencies': [ | 105 'dependencies': [ |
121 '../../base/base.gyp:base', | 106 '../../base/base.gyp:base', |
122 '../../base/base.gyp:test_support_base', | 107 '../../base/base.gyp:test_support_base', |
123 '../../skia/skia.gyp:skia', | 108 '../../skia/skia.gyp:skia', |
124 '../../testing/gtest.gyp:gtest', | 109 '../../testing/gtest.gyp:gtest', |
(...skipping 25 matching lines...) Expand all Loading... |
150 '../compositor/compositor.gyp:compositor_test_support', | 135 '../compositor/compositor.gyp:compositor_test_support', |
151 '../views/views.gyp:views', | 136 '../views/views.gyp:views', |
152 '../views/views.gyp:views_test_support', | 137 '../views/views.gyp:views_test_support', |
153 ], | 138 ], |
154 'sources': [ | 139 'sources': [ |
155 'views/bounded_label_unittest.cc', | 140 'views/bounded_label_unittest.cc', |
156 'views/message_center_view_unittest.cc', | 141 'views/message_center_view_unittest.cc', |
157 'views/message_popup_collection_unittest.cc', | 142 'views/message_popup_collection_unittest.cc', |
158 ], | 143 ], |
159 }], | 144 }], |
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 }], | |
167 ], | 145 ], |
168 }, # target_name: message_center_unittests | 146 }, # target_name: message_center_unittests |
169 ], | 147 ], |
170 } | 148 } |
OLD | NEW |