1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

Make linux infoplugins real plugins

This commit is contained in:
Dominik Schmidt 2012-05-14 04:37:05 +02:00
parent 380ff0d23d
commit f33d446f7f
16 changed files with 8 additions and 33 deletions

View File

@ -80,7 +80,7 @@ macro(add_tomahawk_plugin)
endif()
# add link targets
target_link_libraries(${TOMAHAWK_LIBRARIES})
target_link_libraries(${target} tomahawklib)
if(PLUGIN_LINK_LIBRARIES)
target_link_libraries(${target} ${PLUGIN_LINK_LIBRARIES})
endif()

View File

@ -1 +1,5 @@
ADD_SUBDIRECTORY( generic )
add_subdirectory( generic )
if(UNIX AND NOT APPLE)
add_subdirectory( linux )
endif()

View File

@ -340,19 +340,6 @@ IF(LIBATTICA_FOUND)
ENDIF(LIBATTICA_FOUND)
IF( UNIX AND NOT APPLE )
LIST(APPEND libGuiSources
infosystem/infoplugins/unix/MprisPluginRootAdaptor.cpp
infosystem/infoplugins/unix/MprisPluginPlayerAdaptor.cpp
infosystem/infoplugins/unix/MprisPlugin.cpp
infosystem/infoplugins/unix/FdoNotifyPlugin.cpp
infosystem/infoplugins/unix/ImageConverter.cpp )
LIST(APPEND libGuiHeaders
infosystem/infoplugins/unix/MprisPluginRootAdaptor.h
infosystem/infoplugins/unix/MprisPluginPlayerAdaptor.h
infosystem/infoplugins/unix/MprisPlugin.h
infosystem/infoplugins/unix/FdoNotifyPlugin.h )
IF( BUILD_GUI AND X11_FOUND )
INCLUDE_DIRECTORIES( ${THIRDPARTY_DIR}/libqnetwm )
SET( libSources ${libSources} ${THIRDPARTY_DIR}/libqnetwm/libqnetwm/netwm.cpp )

View File

@ -42,8 +42,8 @@
#include "infoplugins/mac/AdiumPlugin.h"
#endif
#ifdef Q_WS_X11
#include "infoplugins/unix/FdoNotifyPlugin.h"
#include "infoplugins/unix/MprisPlugin.h"
#include "infoplugins/linux/FdoNotifyPlugin.h"
#include "infoplugins/linux/MprisPlugin.h"
#endif
#include "infoplugins/generic/RoviPlugin.h"
@ -87,25 +87,9 @@ InfoSystemWorker::init( Tomahawk::InfoSystem::InfoSystemCache* cache )
loadInfoPlugins( findInfoPlugins() );
#ifndef ENABLE_HEADLESS
// addInfoPlugin( InfoPluginPtr( new MusixMatchPlugin() ) );
// addInfoPlugin( InfoPluginPtr( new MusicBrainzPlugin() ) );
// addInfoPlugin( InfoPluginPtr( new ChartsPlugin() ) );
// addInfoPlugin( InfoPluginPtr( new NewReleasesPlugin() ) );
// addInfoPlugin( InfoPluginPtr( new RoviPlugin() ) );
// addInfoPlugin( InfoPluginPtr( new SpotifyPlugin() ) );
// addInfoPlugin( InfoPluginPtr( new hypemPlugin() ) );
#endif
#ifdef Q_WS_MAC
addInfoPlugin( InfoPluginPtr( new AdiumPlugin() ) );
#endif
#ifndef ENABLE_HEADLESS
#ifdef Q_WS_X11
addInfoPlugin( InfoPluginPtr( new FdoNotifyPlugin() ) );
addInfoPlugin( InfoPluginPtr( new MprisPlugin() ) );
#endif
#endif
}