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:
parent
380ff0d23d
commit
f33d446f7f
@ -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()
|
||||
|
@ -1 +1,5 @@
|
||||
ADD_SUBDIRECTORY( generic )
|
||||
add_subdirectory( generic )
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
add_subdirectory( linux )
|
||||
endif()
|
||||
|
@ -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 )
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user