From 82c77e64c6496f7be8d209ebae936b6126142968 Mon Sep 17 00:00:00 2001
From: Dominik Schmidt <dev@dominik-schmidt.de>
Date: Sun, 12 Feb 2012 19:59:33 +0100
Subject: [PATCH] Fix windows

---
 src/accounts/twitter/CMakeLists.txt            | 2 +-
 src/accounts/twitter/twitteraccount.h          | 2 +-
 src/accounts/twitter/twitterconfigwidget.h     | 4 ++--
 src/accounts/xmpp/CMakeLists.txt               | 2 +-
 src/accounts/xmpp/googlewrapper/CMakeLists.txt | 2 +-
 src/accounts/xmpp/xmppaccount.h                | 2 +-
 src/accounts/xmpp/xmppconfigwidget.h           | 4 ++--
 src/accounts/zeroconf/CMakeLists.txt           | 4 ++--
 src/accounts/zeroconf/tomahawkzeroconf.h       | 5 +++--
 9 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/accounts/twitter/CMakeLists.txt b/src/accounts/twitter/CMakeLists.txt
index 253bd4e03..3ad17a72a 100644
--- a/src/accounts/twitter/CMakeLists.txt
+++ b/src/accounts/twitter/CMakeLists.txt
@@ -32,7 +32,7 @@ include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
 qt4_wrap_cpp( twitterAccountMoc ${twitterAccountHeaders} )
 qt4_wrap_ui( twitterAccountUI_H ${twitterAccountUI} )
 qt4_add_resources( RC_SRCS "resources.qrc" )
-add_library( tomahawk_account_twitter SHARED ${twitterAccountUI_H} ${twitterAccountSources} ${twitterAccountMoc} ${RC_SRCS} )
+add_library( tomahawk_account_twitter MODULE ${twitterAccountUI_H} ${twitterAccountSources} ${twitterAccountMoc} ${RC_SRCS} )
 
 IF( WIN32 )
 SET( OS_SPECIFIC_LINK_LIBRARIES
diff --git a/src/accounts/twitter/twitteraccount.h b/src/accounts/twitter/twitteraccount.h
index e4c706ce2..a1a1c2629 100644
--- a/src/accounts/twitter/twitteraccount.h
+++ b/src/accounts/twitter/twitteraccount.h
@@ -52,7 +52,7 @@ public:
     Account* createAccount( const QString& pluginId = QString() );
 };
 
-class DLLEXPORT TwitterAccount : public Account
+class ACCOUNTDLLEXPORT TwitterAccount : public Account
 {
     Q_OBJECT
 
diff --git a/src/accounts/twitter/twitterconfigwidget.h b/src/accounts/twitter/twitterconfigwidget.h
index 7b7b87bb8..3b8048146 100644
--- a/src/accounts/twitter/twitterconfigwidget.h
+++ b/src/accounts/twitter/twitterconfigwidget.h
@@ -19,7 +19,7 @@
 #ifndef TWITTERACCOUNTCONFIGWIDGET_H
 #define TWITTERACCOUNTCONFIGWIDGET_H
 
-#include "dllmacro.h"
+#include "accounts/accountdllmacro.h"
 
 #include <QTweetLib/qtweetstatus.h>
 #include <QTweetLib/qtweetdmstatus.h>
@@ -42,7 +42,7 @@ namespace Accounts
 class TwitterAccount;
 
 
-class DLLEXPORT TwitterConfigWidget : public QWidget
+class ACCOUNTDLLEXPORT TwitterConfigWidget : public QWidget
 {
     Q_OBJECT
 
diff --git a/src/accounts/xmpp/CMakeLists.txt b/src/accounts/xmpp/CMakeLists.txt
index e5e4e29ea..ff1f5da2a 100644
--- a/src/accounts/xmpp/CMakeLists.txt
+++ b/src/accounts/xmpp/CMakeLists.txt
@@ -37,7 +37,7 @@ include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
 qt4_wrap_cpp( xmppAccountMoc ${xmppAccountHeaders} )
 qt4_wrap_ui( xmppAccountUI_H ${xmppAccountUI} )
 qt4_add_resources( RC_SRCS "resources.qrc" )
-add_library( tomahawk_account_xmpp SHARED ${xmppAccountUI_H} ${xmppAccountSources} ${xmppAccountMoc} ${RC_SRCS} )
+add_library( tomahawk_account_xmpp MODULE ${xmppAccountUI_H} ${xmppAccountSources} ${xmppAccountMoc} ${RC_SRCS} )
 
 IF( WIN32 )
 SET( OS_SPECIFIC_LINK_LIBRARIES
diff --git a/src/accounts/xmpp/googlewrapper/CMakeLists.txt b/src/accounts/xmpp/googlewrapper/CMakeLists.txt
index 62a7e6c25..a2ce9560b 100644
--- a/src/accounts/xmpp/googlewrapper/CMakeLists.txt
+++ b/src/accounts/xmpp/googlewrapper/CMakeLists.txt
@@ -25,7 +25,7 @@ add_definitions(-DGOOGLE_WRAPPER)
 qt4_add_resources( RCX_SRCS "resources.qrc" )
 
 qt4_wrap_cpp( googleMoc ${googleHeaders} )
-add_library( tomahawk_account_google SHARED ${googleSources} ${googleMoc} ${googleMoc} ${RCX_SRCS} )
+add_library( tomahawk_account_google MODULE ${googleSources} ${googleMoc} ${googleMoc} ${RCX_SRCS} )
 
 target_link_libraries( tomahawk_account_google
     ${QT_LIBRARIES}
diff --git a/src/accounts/xmpp/xmppaccount.h b/src/accounts/xmpp/xmppaccount.h
index 5692c2c20..a6c50ae20 100644
--- a/src/accounts/xmpp/xmppaccount.h
+++ b/src/accounts/xmpp/xmppaccount.h
@@ -54,7 +54,7 @@ public:
     Account* createAccount( const QString& pluginId = QString() );
 };
 
-class DLLEXPORT XmppAccount : public Account
+class ACCOUNTDLLEXPORT XmppAccount : public Account
 {
     Q_OBJECT
 
diff --git a/src/accounts/xmpp/xmppconfigwidget.h b/src/accounts/xmpp/xmppconfigwidget.h
index d88e42631..93f41f44d 100644
--- a/src/accounts/xmpp/xmppconfigwidget.h
+++ b/src/accounts/xmpp/xmppconfigwidget.h
@@ -19,7 +19,7 @@
 #ifndef JABBERACCOUNTCONFIGWIDGET_H
 #define JABBERACCOUNTCONFIGWIDGET_H
 
-#include "dllmacro.h"
+#include "accounts/accountdllmacro.h"
 
 #include <QWidget>
 
@@ -38,7 +38,7 @@ class XmppAccount;
 class GoogleWrapper;
 
 
-class DLLEXPORT XmppConfigWidget : public QWidget
+class ACCOUNTDLLEXPORT XmppConfigWidget : public QWidget
 {
     Q_OBJECT
 
diff --git a/src/accounts/zeroconf/CMakeLists.txt b/src/accounts/zeroconf/CMakeLists.txt
index 66b22965f..772a24350 100644
--- a/src/accounts/zeroconf/CMakeLists.txt
+++ b/src/accounts/zeroconf/CMakeLists.txt
@@ -4,7 +4,7 @@ include( ${QT_USE_FILE} )
 add_definitions( ${QT_DEFINITIONS} )
 add_definitions( -DQT_PLUGIN )
 add_definitions( -DQT_SHARED )
-add_definitions( -DSIPDLLEXPORT_PRO )
+add_definitions( -DACCOUNTDLLEXPORT_PRO )
 
 set( zeroconfSources
         zeroconf.cpp
@@ -24,7 +24,7 @@ include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
 qt4_wrap_ui( UI_SRCS configwidget.ui )
 qt4_add_resources( RC_SRCS "resources.qrc" )
 qt4_wrap_cpp( zeroconfMoc ${zeroconfHeaders} )
-add_library( tomahawk_account_zeroconf SHARED ${zeroconfSources} ${zeroconfMoc} ${RC_SRCS} ${UI_SRCS} )
+add_library( tomahawk_account_zeroconf MODULE ${zeroconfSources} ${zeroconfMoc} ${RC_SRCS} ${UI_SRCS} )
 
 IF( WIN32 )
 SET( OS_SPECIFIC_LINK_LIBRARIES
diff --git a/src/accounts/zeroconf/tomahawkzeroconf.h b/src/accounts/zeroconf/tomahawkzeroconf.h
index 15ef6b5c4..f54b162e3 100644
--- a/src/accounts/zeroconf/tomahawkzeroconf.h
+++ b/src/accounts/zeroconf/tomahawkzeroconf.h
@@ -30,6 +30,7 @@
 
 #include "database/database.h"
 #include "network/servent.h"
+#include "accounts/accountdllmacro.h"
 
 class Node : public QObject
 {
@@ -59,7 +60,7 @@ public slots:
             emit tomahawkHostFound( ip, port, "Unknown", nid );
         this->deleteLater();
     }
-    
+
     void resolve()
     {
         QHostInfo::lookupHost( ip, this, SLOT( resolved( QHostInfo ) ) );
@@ -72,7 +73,7 @@ private:
 };
 
 
-class TomahawkZeroconf : public QObject
+class ACCOUNTDLLEXPORT TomahawkZeroconf : public QObject
 {
 Q_OBJECT