From a91d5dbb2aa1296649073fae77ce457028866a81 Mon Sep 17 00:00:00 2001 From: "jiangj@opera.com" Date: Mon, 7 Jul 2014 19:57:30 +0000 Subject: Fix component build linking with notifications=0 We will get the following errors if not: 2> Creating library ..\..\build\Debug\lib\message_center.lib and object ..\..\build\Debug\lib\message_center.exp 2>dummy_message_center.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall message_center::NotificationDelegate::HasClickedListener(void)" (?HasClickedListener@NotificationDelegate@message_center@@UAE_NXZ) 2>dummy_message_center.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall message_center::NotificationDelegate::ButtonClick(int)" (?ButtonClick@NotificationDelegate@message_center@@UAEXH@Z) Same fix for OS==android. Done by Przemek Kudla Review URL: https://codereview.chromium.org/369243002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281574 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/message_center/message_center.gyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/message_center') diff --git a/ui/message_center/message_center.gyp b/ui/message_center/message_center.gyp index 26751e9..0a19578 100644 --- a/ui/message_center/message_center.gyp +++ b/ui/message_center/message_center.gyp @@ -140,6 +140,7 @@ ['exclude', '\\.(cc|mm)$'], ['include', '^dummy_message_center\\.cc$'], ['include', '^message_center_switches\\.cc$'], + ['include', '^notification_delegate\\.cc$'], ], }, { # notifications==1 'sources!': [ 'dummy_message_center.cc' ], @@ -148,7 +149,6 @@ ['OS=="android"', { 'sources/': [ ['include', '^notification\\.cc$'], - ['include', '^notification_delegate\\.cc$'], ['include', '^notifier_settings\\.cc$'], ], }], -- cgit v1.1