mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 20:00:13 +02:00
Make linux infoplugins real plugins
This commit is contained in:
@@ -80,7 +80,7 @@ macro(add_tomahawk_plugin)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# add link targets
|
# add link targets
|
||||||
target_link_libraries(${TOMAHAWK_LIBRARIES})
|
target_link_libraries(${target} tomahawklib)
|
||||||
if(PLUGIN_LINK_LIBRARIES)
|
if(PLUGIN_LINK_LIBRARIES)
|
||||||
target_link_libraries(${target} ${PLUGIN_LINK_LIBRARIES})
|
target_link_libraries(${target} ${PLUGIN_LINK_LIBRARIES})
|
||||||
endif()
|
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)
|
ENDIF(LIBATTICA_FOUND)
|
||||||
|
|
||||||
IF( UNIX AND NOT APPLE )
|
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 )
|
IF( BUILD_GUI AND X11_FOUND )
|
||||||
INCLUDE_DIRECTORIES( ${THIRDPARTY_DIR}/libqnetwm )
|
INCLUDE_DIRECTORIES( ${THIRDPARTY_DIR}/libqnetwm )
|
||||||
SET( libSources ${libSources} ${THIRDPARTY_DIR}/libqnetwm/libqnetwm/netwm.cpp )
|
SET( libSources ${libSources} ${THIRDPARTY_DIR}/libqnetwm/libqnetwm/netwm.cpp )
|
||||||
|
@@ -42,8 +42,8 @@
|
|||||||
#include "infoplugins/mac/AdiumPlugin.h"
|
#include "infoplugins/mac/AdiumPlugin.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q_WS_X11
|
#ifdef Q_WS_X11
|
||||||
#include "infoplugins/unix/FdoNotifyPlugin.h"
|
#include "infoplugins/linux/FdoNotifyPlugin.h"
|
||||||
#include "infoplugins/unix/MprisPlugin.h"
|
#include "infoplugins/linux/MprisPlugin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "infoplugins/generic/RoviPlugin.h"
|
#include "infoplugins/generic/RoviPlugin.h"
|
||||||
@@ -87,25 +87,9 @@ InfoSystemWorker::init( Tomahawk::InfoSystem::InfoSystemCache* cache )
|
|||||||
|
|
||||||
loadInfoPlugins( findInfoPlugins() );
|
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
|
#ifdef Q_WS_MAC
|
||||||
addInfoPlugin( InfoPluginPtr( new AdiumPlugin() ) );
|
addInfoPlugin( InfoPluginPtr( new AdiumPlugin() ) );
|
||||||
#endif
|
#endif
|
||||||
#ifndef ENABLE_HEADLESS
|
|
||||||
#ifdef Q_WS_X11
|
|
||||||
addInfoPlugin( InfoPluginPtr( new FdoNotifyPlugin() ) );
|
|
||||||
addInfoPlugin( InfoPluginPtr( new MprisPlugin() ) );
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user