mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-31 09:32:03 +02:00
Make gloox an optional dependency
This commit is contained in:
@@ -33,7 +33,6 @@ SET( tomahawkSources ${tomahawkSources}
|
||||
infosystem/infoplugins/echonestplugin.cpp
|
||||
infosystem/infoplugins/musixmatchplugin.cpp
|
||||
|
||||
xmppbot/xmppbot.cpp
|
||||
web/api_v1.cpp
|
||||
|
||||
musicscanner.cpp
|
||||
@@ -74,7 +73,7 @@ SET( tomahawkHeaders ${tomahawkHeaders}
|
||||
infosystem/infoplugins/echonestplugin.h
|
||||
infosystem/infoplugins/musixmatchplugin.h
|
||||
|
||||
xmppbot/xmppbot.h
|
||||
|
||||
web/api_v1.h
|
||||
|
||||
musicscanner.h
|
||||
@@ -84,6 +83,7 @@ SET( tomahawkHeaders ${tomahawkHeaders}
|
||||
shortcuthandler.h
|
||||
)
|
||||
|
||||
|
||||
SET( tomahawkHeadersGui ${tomahawkHeadersGui}
|
||||
sourcetree/sourcesmodel.h
|
||||
sourcetree/sourcetreeitem.h
|
||||
@@ -142,6 +142,10 @@ IF( UNIX )
|
||||
INCLUDE( "CMakeLists.unix.txt" )
|
||||
ENDIF( UNIX )
|
||||
|
||||
|
||||
IF(Gloox_FOUND)
|
||||
ADD_SUBDIRECTORY( xmppbot )
|
||||
ENDIF(Gloox_FOUND)
|
||||
ADD_SUBDIRECTORY( sip )
|
||||
|
||||
kde4_add_app_icon( tomahawkSources "${CMAKE_SOURCE_DIR}/data/icons/tomahawk-icon-*.png" )
|
||||
@@ -181,7 +185,6 @@ TARGET_LINK_LIBRARIES( tomahawk
|
||||
${OS_SPECIFIC_LINK_LIBRARIES}
|
||||
${LIBECHONEST_LIBRARY}
|
||||
${LIBLASTFM_LIBRARY}
|
||||
${GLOOX_LIBRARIES}
|
||||
${QXTWEB_LIBRARIES}
|
||||
${QTWEETLIB_LIBRARIES}
|
||||
${QJSON_LIBRARIES}
|
||||
|
@@ -1,3 +1,7 @@
|
||||
ADD_SUBDIRECTORY( jabber )
|
||||
|
||||
IF(Gloox_FOUND)
|
||||
ADD_SUBDIRECTORY( jabber )
|
||||
ENDIF(Gloox_FOUND)
|
||||
|
||||
ADD_SUBDIRECTORY( twitter )
|
||||
ADD_SUBDIRECTORY( zeroconf )
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#include "playlist/dynamic/GeneratorFactory.h"
|
||||
#include "playlist/dynamic/echonest/EchonestGenerator.h"
|
||||
#include "utils/tomahawkutils.h"
|
||||
#include "xmppbot/xmppbot.h"
|
||||
#include "web/api_v1.h"
|
||||
#include "scriptresolver.h"
|
||||
#include "sourcelist.h"
|
||||
@@ -37,6 +36,11 @@
|
||||
#include <QMessageBox>
|
||||
#endif
|
||||
|
||||
// should go to a plugin actually
|
||||
#ifdef Gloox_FOUND
|
||||
#include "xmppbot/xmppbot.h"
|
||||
#endif
|
||||
|
||||
#ifdef Q_WS_MAC
|
||||
#include "mac/macshortcuthandler.h"
|
||||
#endif
|
||||
@@ -475,6 +479,7 @@ TomahawkApp::setupSIP()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
|
||||
#ifdef Gloox_FOUND
|
||||
//FIXME: jabber autoconnect is really more, now that there is sip -- should be renamed and/or split out of jabber-specific settings
|
||||
if( !arguments().contains( "--nosip" ) && TomahawkSettings::instance()->jabberAutoConnect() )
|
||||
{
|
||||
@@ -483,6 +488,7 @@ TomahawkApp::setupSIP()
|
||||
m_sipHandler->connectPlugins( true );
|
||||
// m_sipHandler->setProxy( *TomahawkUtils::proxy() );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user