1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 19:37:09 +02:00

Make generic infoplugins real plugins

This commit is contained in:
Dominik Schmidt
2012-05-14 04:19:46 +02:00
parent 9c995270cf
commit 380ff0d23d
18 changed files with 28 additions and 17 deletions

View File

@@ -1 +1,20 @@
ADD_SUBDIRECTORY( echonest )
add_subdirectory(echonest)
list(APPEND simple_plugins
Charts
NewReleases
spotify
hypem
MusixMatch
musicbrainz
Rovi
)
foreach(simple_plugin ${simple_plugins})
add_tomahawk_plugin(${simple_plugin}
TYPE infoplugin EXPORT_MACRO INFOPLUGINDLLEXPORT_PRO
SOURCES "${simple_plugin}Plugin.cpp"
LINK_LIBRARIES ${TOMAHAWK_LIBRARIES}
)
endforeach()

View File

@@ -254,14 +254,6 @@ set( libSources
infosystem/InfoSystemCache.cpp infosystem/InfoSystemCache.cpp
infosystem/InfoSystemWorker.cpp infosystem/InfoSystemWorker.cpp
infosystem/infoplugins/generic/ChartsPlugin.cpp
infosystem/infoplugins/generic/NewReleasesPlugin.cpp
infosystem/infoplugins/generic/spotifyPlugin.cpp
infosystem/infoplugins/generic/hypemPlugin.cpp
infosystem/infoplugins/generic/MusixMatchPlugin.cpp
infosystem/infoplugins/generic/musicbrainzPlugin.cpp
infosystem/infoplugins/generic/RoviPlugin.cpp
network/BufferIoDevice.cpp network/BufferIoDevice.cpp
network/MsgProcessor.cpp network/MsgProcessor.cpp
network/StreamConnection.cpp network/StreamConnection.cpp

View File

@@ -88,13 +88,13 @@ InfoSystemWorker::init( Tomahawk::InfoSystem::InfoSystemCache* cache )
loadInfoPlugins( findInfoPlugins() ); loadInfoPlugins( findInfoPlugins() );
#ifndef ENABLE_HEADLESS #ifndef ENABLE_HEADLESS
addInfoPlugin( InfoPluginPtr( new MusixMatchPlugin() ) ); // addInfoPlugin( InfoPluginPtr( new MusixMatchPlugin() ) );
addInfoPlugin( InfoPluginPtr( new MusicBrainzPlugin() ) ); // addInfoPlugin( InfoPluginPtr( new MusicBrainzPlugin() ) );
addInfoPlugin( InfoPluginPtr( new ChartsPlugin() ) ); // addInfoPlugin( InfoPluginPtr( new ChartsPlugin() ) );
addInfoPlugin( InfoPluginPtr( new NewReleasesPlugin() ) ); // addInfoPlugin( InfoPluginPtr( new NewReleasesPlugin() ) );
addInfoPlugin( InfoPluginPtr( new RoviPlugin() ) ); // addInfoPlugin( InfoPluginPtr( new RoviPlugin() ) );
addInfoPlugin( InfoPluginPtr( new SpotifyPlugin() ) ); // addInfoPlugin( InfoPluginPtr( new SpotifyPlugin() ) );
addInfoPlugin( InfoPluginPtr( new hypemPlugin() ) ); // addInfoPlugin( InfoPluginPtr( new hypemPlugin() ) );
#endif #endif
#ifdef Q_WS_MAC #ifdef Q_WS_MAC