1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-13 07:24:15 +02:00

* Don't compile lastfm parts if liblastfm wasn't found.

This commit is contained in:
Lucas Lira Gomes
2012-07-09 16:49:34 -03:00
committed by Dominik Schmidt
parent 0278f82c2a
commit 420720ae52
2 changed files with 10 additions and 4 deletions

View File

@@ -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 );