Index: ui/message_center/message_center.gyp |
diff --git a/ui/message_center/message_center.gyp b/ui/message_center/message_center.gyp |
index 2b84ad8f4bbf358a338214952c8a1e3e86f62185..ebf18e9102c3775a7cf0518dddfd426f493e9c9a 100644 |
--- a/ui/message_center/message_center.gyp |
+++ b/ui/message_center/message_center.gyp |
@@ -17,7 +17,6 @@ |
'../../build/temp_gyp/googleurl.gyp:googleurl', |
'../../skia/skia.gyp:skia', |
'../base/strings/ui_strings.gyp:ui_strings', |
- '../compositor/compositor.gyp:compositor', |
'../ui.gyp:ui', |
'../ui.gyp:ui_resources', |
], |
@@ -31,6 +30,7 @@ |
'cocoa/popup_collection.mm', |
'cocoa/popup_controller.h', |
'cocoa/popup_controller.mm', |
+ 'dummy_message_center.cc', |
'message_center.cc', |
'message_center.h', |
'message_center_constants.cc', |
@@ -97,6 +97,21 @@ |
'../../third_party/GTM', |
], |
}], |
+ ['OS!="ios"', { |
+ 'dependencies': [ |
+ '../compositor/compositor.gyp:compositor', |
+ ], |
+ }], |
+ ['notifications==0', { # Android and iOS. |
+ 'sources/': [ |
+ # Exclude everything except dummy impl. |
+ ['exclude', '\\.(cc|mm)$'], |
+ ['include', '^dummy_message_center\\.cc$'], |
+ ['include', '^message_center_switches\\.cc$'], |
+ ], |
+ }, { # notifications==1 |
+ 'sources!': [ 'dummy_message_center.cc' ], |
+ }], |
], |
}, # target_name: message_center |
{ |
@@ -142,6 +157,13 @@ |
'views/message_popup_collection_unittest.cc', |
], |
}], |
+ ['notifications==0', { # Android and iOS. |
+ 'sources/': [ |
+ # Exclude everything except main(). |
+ ['exclude', '\\.(cc|mm)$'], |
+ ['include', '^test/run_all_unittests\\.cc$'], |
+ ], |
+ }], |
], |
}, # target_name: message_center_unittests |
], |