fixing the minimal build
This commit is contained in:
parent
6d5e004758
commit
f86b671272
@ -92,7 +92,6 @@ set(SOURCES
|
|||||||
covers/coverprovider.cpp
|
covers/coverprovider.cpp
|
||||||
covers/coverproviders.cpp
|
covers/coverproviders.cpp
|
||||||
covers/kittenloader.cpp
|
covers/kittenloader.cpp
|
||||||
covers/lastfmcoverprovider.cpp
|
|
||||||
|
|
||||||
devices/connecteddevice.cpp
|
devices/connecteddevice.cpp
|
||||||
devices/devicedatabasebackend.cpp
|
devices/devicedatabasebackend.cpp
|
||||||
@ -297,7 +296,6 @@ set(HEADERS
|
|||||||
covers/coverprovider.h
|
covers/coverprovider.h
|
||||||
covers/coverproviders.h
|
covers/coverproviders.h
|
||||||
covers/kittenloader.h
|
covers/kittenloader.h
|
||||||
covers/lastfmcoverprovider.h
|
|
||||||
|
|
||||||
devices/connecteddevice.h
|
devices/connecteddevice.h
|
||||||
devices/devicedatabasebackend.h
|
devices/devicedatabasebackend.h
|
||||||
@ -557,6 +555,7 @@ endif(ENABLE_VISUALISATIONS)
|
|||||||
# Lastfm
|
# Lastfm
|
||||||
if(HAVE_LIBLASTFM)
|
if(HAVE_LIBLASTFM)
|
||||||
list(APPEND SOURCES
|
list(APPEND SOURCES
|
||||||
|
covers/lastfmcoverprovider.cpp
|
||||||
radio/fixlastfm.cpp
|
radio/fixlastfm.cpp
|
||||||
radio/lastfmconfig.cpp
|
radio/lastfmconfig.cpp
|
||||||
radio/lastfmservice.cpp
|
radio/lastfmservice.cpp
|
||||||
@ -570,6 +569,7 @@ if(HAVE_LIBLASTFM)
|
|||||||
ui/albumcoversearcher.cpp
|
ui/albumcoversearcher.cpp
|
||||||
)
|
)
|
||||||
list(APPEND HEADERS
|
list(APPEND HEADERS
|
||||||
|
covers/lastfmcoverprovider.h
|
||||||
radio/lastfmconfig.h
|
radio/lastfmconfig.h
|
||||||
radio/lastfmservice.h
|
radio/lastfmservice.h
|
||||||
radio/lastfmstationdialog.h
|
radio/lastfmstationdialog.h
|
||||||
|
@ -17,7 +17,10 @@
|
|||||||
|
|
||||||
#include "coverprovider.h"
|
#include "coverprovider.h"
|
||||||
#include "coverproviders.h"
|
#include "coverproviders.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBLASTFM
|
||||||
# include "lastfmcoverprovider.h"
|
# include "lastfmcoverprovider.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
CoverProviders::CoverProviders()
|
CoverProviders::CoverProviders()
|
||||||
{
|
{
|
||||||
@ -26,7 +29,9 @@ CoverProviders::CoverProviders()
|
|||||||
// every built-in provider needs an explicit parent; otherwise,
|
// every built-in provider needs an explicit parent; otherwise,
|
||||||
// the default parent, namely CoverProviders::instance(), will
|
// the default parent, namely CoverProviders::instance(), will
|
||||||
// cause an infinite recursion here
|
// cause an infinite recursion here
|
||||||
|
#ifdef HAVE_LIBLASTFM
|
||||||
cover_providers_.append(new LastFmCoverProvider(this));
|
cover_providers_.append(new LastFmCoverProvider(this));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void CoverProviders::AddCoverProvider(CoverProvider* provider) {
|
void CoverProviders::AddCoverProvider(CoverProvider* provider) {
|
||||||
|
@ -24,10 +24,10 @@
|
|||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
#ifdef HAVE_LIBLASTFM
|
#ifdef HAVE_LIBLASTFM
|
||||||
class AlbumCoverFetcher;
|
|
||||||
class AlbumCoverSearcher;
|
class AlbumCoverSearcher;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
class AlbumCoverFetcher;
|
||||||
class CoverFromURLDialog;
|
class CoverFromURLDialog;
|
||||||
class LibraryBackend;
|
class LibraryBackend;
|
||||||
class QFileDialog;
|
class QFileDialog;
|
||||||
@ -117,8 +117,8 @@ private:
|
|||||||
|
|
||||||
#ifdef HAVE_LIBLASTFM
|
#ifdef HAVE_LIBLASTFM
|
||||||
AlbumCoverSearcher* cover_searcher_;
|
AlbumCoverSearcher* cover_searcher_;
|
||||||
AlbumCoverFetcher* cover_fetcher_;
|
|
||||||
#endif
|
#endif
|
||||||
|
AlbumCoverFetcher* cover_fetcher_;
|
||||||
|
|
||||||
QFileDialog* save_file_dialog_;
|
QFileDialog* save_file_dialog_;
|
||||||
CoverFromURLDialog* cover_from_url_dialog_;
|
CoverFromURLDialog* cover_from_url_dialog_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user