mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-23 09:19:41 +01:00
* Don't compile lastfm parts if liblastfm wasn't found.
This commit is contained in:
parent
0278f82c2a
commit
420720ae52
@ -640,8 +640,10 @@ TomahawkApp::spotifyApiCheckFinished()
|
||||
void
|
||||
TomahawkApp::accountManagerReady()
|
||||
{
|
||||
#ifdef LIBLASTFM_FOUND
|
||||
Tomahawk::Accounts::LastFmAccountFactory* lastfmFactory = new Tomahawk::Accounts::LastFmAccountFactory();
|
||||
m_accountManager.data()->addAccountFactory( lastfmFactory );
|
||||
#endif
|
||||
|
||||
Tomahawk::Accounts::SpotifyAccountFactory* spotifyFactory = new Tomahawk::Accounts::SpotifyAccountFactory;
|
||||
m_accountManager.data()->addAccountFactory( spotifyFactory );
|
||||
|
@ -207,10 +207,6 @@ list(APPEND libSources
|
||||
accounts/spotify/SpotifyPlaylistUpdater.cpp
|
||||
accounts/spotify/SpotifyInfoPlugin.cpp
|
||||
|
||||
accounts/lastfm/LastFmAccount.cpp
|
||||
accounts/lastfm/LastFmConfig.cpp
|
||||
accounts/lastfm/LastFmInfoPlugin.cpp
|
||||
|
||||
sip/SipPlugin.cpp
|
||||
sip/SipInfo.cpp
|
||||
sip/PeerInfo.cpp
|
||||
@ -321,6 +317,14 @@ list(APPEND libSources
|
||||
thirdparty/kdsingleapplicationguard/kdlockedsharedmemorypointer.cpp
|
||||
)
|
||||
|
||||
IF(LIBLASTFM_FOUND)
|
||||
set( libSources ${libSources}
|
||||
accounts/lastfm/LastFmAccount.cpp
|
||||
accounts/lastfm/LastFmConfig.cpp
|
||||
accounts/lastfm/LastFmInfoPlugin.cpp
|
||||
)
|
||||
ENDIF(LIBLASTFM_FOUND)
|
||||
|
||||
set( libUI ${libUI}
|
||||
widgets/PlaylistTypeSelectorDialog.ui
|
||||
widgets/NewPlaylistWidget.ui
|
||||
|
Loading…
x
Reference in New Issue
Block a user