1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +02:00

libechonest is suffixed by 5 for Qt5

This commit is contained in:
Uwe L. Korn
2014-05-03 00:48:49 +01:00
parent e517e46981
commit 4c2e396fbe
11 changed files with 61 additions and 20 deletions

View File

@@ -6,9 +6,14 @@
# ECHONEST_FOUND, whether libechonest was found # ECHONEST_FOUND, whether libechonest was found
FIND_PACKAGE(PkgConfig QUIET) FIND_PACKAGE(PkgConfig QUIET)
PKG_CHECK_MODULES(PC_ECHONEST QUIET libechonest)
FIND_PATH(ECHONEST_INCLUDE_DIR NAMES echonest/Track.h if( TOMAHAWK_QT5 )
set(LIBECHONEST_SUFFIX "5")
endif()
PKG_CHECK_MODULES(PC_ECHONEST QUIET libechonest${LIBECHONEST_SUFFIX})
FIND_PATH(ECHONEST_INCLUDE_DIR NAMES echonest${LIBECHONEST_SUFFIX}/Track.h
HINTS HINTS
${PC_ECHONEST_INCLUDEDIR} ${PC_ECHONEST_INCLUDEDIR}
${PC_ECHONEST_INCLUDE_DIRS} ${PC_ECHONEST_INCLUDE_DIRS}
@@ -16,7 +21,7 @@ FIND_PATH(ECHONEST_INCLUDE_DIR NAMES echonest/Track.h
${KDE4_INCLUDE_DIR} ${KDE4_INCLUDE_DIR}
) )
FIND_LIBRARY(ECHONEST_LIBRARIES NAMES echonest FIND_LIBRARY(ECHONEST_LIBRARIES NAMES echonest${LIBECHONEST_SUFFIX}
HINTS HINTS
${PC_ECHONEST_LIBDIR} ${PC_ECHONEST_LIBDIR}
${PC_ECHONEST_LIBRARY_DIRS} ${PC_ECHONEST_LIBRARY_DIRS}

View File

@@ -23,7 +23,12 @@
#include "utils/Logger.h" #include "utils/Logger.h"
#include "utils/NetworkAccessManager.h" #include "utils/NetworkAccessManager.h"
#include <echonest/ArtistTypes.h> #if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <echonest/ArtistTypes.h>
#else
#include <echonest5/ArtistTypes.h>
#endif
#include <QNetworkConfiguration> #include <QNetworkConfiguration>

View File

@@ -24,7 +24,12 @@
#include "infosystem/InfoSystem.h" #include "infosystem/InfoSystem.h"
#include "infosystem/InfoSystemWorker.h" #include "infosystem/InfoSystemWorker.h"
#include "echonest/Artist.h"
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <echonest/Artist.h>
#else
#include <echonest5/Artist.h>
#endif
#include <QObject> #include <QObject>

View File

@@ -18,9 +18,6 @@
#include "EchonestCatalogSynchronizer.h" #include "EchonestCatalogSynchronizer.h"
#include <echonest/CatalogUpdateEntry.h>
#include <echonest/Config.h>
#include "collection/Collection.h" #include "collection/Collection.h"
#include "database/Database.h" #include "database/Database.h"
#include "database/DatabaseImpl.h" #include "database/DatabaseImpl.h"
@@ -35,8 +32,13 @@
#include "TomahawkSettings.h" #include "TomahawkSettings.h"
#include "Track.h" #include "Track.h"
#include <echonest/CatalogUpdateEntry.h> #if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <echonest/Config.h> #include <echonest/CatalogUpdateEntry.h>
#include <echonest/Config.h>
#else
#include <echonest5/CatalogUpdateEntry.h>
#include <echonest5/Config.h>
#endif
using namespace Tomahawk; using namespace Tomahawk;

View File

@@ -23,7 +23,11 @@
#include "Query.h" #include "Query.h"
#include "database/DatabaseCommand_TrackAttributes.h" #include "database/DatabaseCommand_TrackAttributes.h"
#include <echonest/Catalog.h> #if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <echonest/Catalog.h>
#else
#include <echonest5/Catalog.h>
#endif
#include <QObject> #include <QObject>
#include <QQueue> #include <QQueue>

View File

@@ -25,7 +25,6 @@
#include "audio/AudioEngine.h" #include "audio/AudioEngine.h"
#include "database/LocalCollection.h" #include "database/LocalCollection.h"
#include "echonest/Playlist.h"
#include "playlist/dynamic/GeneratorInterface.h" #include "playlist/dynamic/GeneratorInterface.h"
#include "playlist/PlaylistTemplate.h" #include "playlist/PlaylistTemplate.h"
#include "playlist/PlaylistView.h" #include "playlist/PlaylistView.h"
@@ -53,6 +52,12 @@
#include <QApplication> #include <QApplication>
#include <QClipboard> #include <QClipboard>
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <echonest/Playlist.h>
#else
#include <echonest5/Playlist.h>
#endif
GlobalActionManager* GlobalActionManager::s_instance = 0; GlobalActionManager* GlobalActionManager::s_instance = 0;

View File

@@ -25,8 +25,6 @@
#include "utils/Logger.h" #include "utils/Logger.h"
#include "SourceList.h" #include "SourceList.h"
#include <echonest/Playlist.h>
#include <QComboBox> #include <QComboBox>
#include <QLineEdit> #include <QLineEdit>
#include <QLabel> #include <QLabel>

View File

@@ -21,11 +21,15 @@
#include "playlist/dynamic/DynamicControl.h" #include "playlist/dynamic/DynamicControl.h"
#include <echonest/Playlist.h>
#include <QTimer> #include <QTimer>
#include <QPointer> #include <QPointer>
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <echonest/Playlist.h>
#else
#include <echonest5/Playlist.h>
#endif
namespace Tomahawk namespace Tomahawk
{ {

View File

@@ -20,7 +20,6 @@
#define ECHONEST_GENERATOR_H #define ECHONEST_GENERATOR_H
#include <stdexcept> #include <stdexcept>
#include <echonest/Playlist.h>
#include "playlist/dynamic/GeneratorInterface.h" #include "playlist/dynamic/GeneratorInterface.h"
#include "playlist/dynamic/GeneratorFactory.h" #include "playlist/dynamic/GeneratorFactory.h"
@@ -29,6 +28,12 @@
#include "DllMacro.h" #include "DllMacro.h"
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <echonest/Playlist.h>
#else
#include <echonest5/Playlist.h>
#endif
namespace Tomahawk namespace Tomahawk
{ {

View File

@@ -24,7 +24,11 @@
#include "utils/TomahawkUtils.h" #include "utils/TomahawkUtils.h"
#include "utils/Logger.h" #include "utils/Logger.h"
#include <echonest/Playlist.h> #if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <echonest/Playlist.h>
#else
#include <echonest5/Playlist.h>
#endif
#include <QPaintEvent> #include <QPaintEvent>
#include <QHBoxLayout> #include <QHBoxLayout>

View File

@@ -21,8 +21,6 @@
#include <QMimeData> #include <QMimeData>
#include <echonest/Playlist.h>
#include "DropJob.h" #include "DropJob.h"
#include "TomahawkApp.h" #include "TomahawkApp.h"
#include "ViewManager.h" #include "ViewManager.h"
@@ -36,6 +34,12 @@
#include "utils/ImageRegistry.h" #include "utils/ImageRegistry.h"
#include "utils/Logger.h" #include "utils/Logger.h"
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <echonest/Playlist.h>
#else
#include <echonest5/Playlist.h>
#endif
using namespace Tomahawk; using namespace Tomahawk;