1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-19 04:11:46 +02:00

Use new lastfm5/ include dir for Qt5

This commit is contained in:
Dominik Schmidt
2015-02-06 22:49:43 +01:00
parent 778b8ee180
commit d928fc5d1d
7 changed files with 33 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ endif()
# Include dir
find_path(LIBLASTFM_INCLUDE_DIR
# Track.h doesn't exist in liblastfm-0.3.1, was called Track back then
NAMES lastfm/Track.h
NAMES lastfm${LASTFM_LIB_SUFFIX}/Track.h
PATHS ${KDE4_INCLUDE_DIR}
)

View File

@@ -29,10 +29,17 @@
#include "utils/Closure.h"
#include "utils/NetworkAccessManager.h"
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
#include <lastfm5/ws.h>
#include <lastfm5/User.h>
#include <lastfm5/XmlQuery.h>
#include <lastfm5/Track.h>
#else
#include <lastfm/ws.h>
#include <lastfm/User.h>
#include <lastfm/XmlQuery.h>
#include <lastfm/Track.h>
#endif
using namespace Tomahawk::Accounts;

View File

@@ -34,8 +34,13 @@
#include "TomahawkSettings.h"
#include "utils/NetworkAccessManager.h"
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
#include <lastfm5/ws.h>
#include <lastfm5/XmlQuery.h>
#else
#include <lastfm/ws.h>
#include <lastfm/XmlQuery.h>
#endif
using namespace Tomahawk::Accounts;
using namespace Tomahawk::InfoSystem;

View File

@@ -24,9 +24,15 @@
#include "infosystem/InfoSystemWorker.h"
#include "DllMacro.h"
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
#include <lastfm5/Track.h>
#include <lastfm5/Audioscrobbler.h>
#include <lastfm5/ScrobblePoint.h>
#else
#include <lastfm/Track.h>
#include <lastfm/Audioscrobbler.h>
#include <lastfm/ScrobblePoint.h>
#endif
#include <QObject>

View File

@@ -32,7 +32,11 @@
#include "Track.h"
#ifdef LIBLASTFM_FOUND
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
#include <lastfm5/ws.h>
#else
#include <lastfm/ws.h>
#endif
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)

View File

@@ -20,10 +20,15 @@
#ifndef TOMAHAWK_SCROBBLER_H
#define TOMAHAWK_SCROBBLER_H
#include "lastfm/ScrobblePoint.h"
#include "Result.h"
#include "infosystem/InfoSystem.h"
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
#include <lastfm5/ScrobblePoint.h>
#else
#include <lastfm/ScrobblePoint.h>
#endif
#include <QObject>
/**

View File

@@ -64,7 +64,11 @@ namespace Tomahawk
}
#ifdef LIBLASTFM_FOUND
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
#include <lastfm5/NetworkAccessManager.h>
#else
#include <lastfm/NetworkAccessManager.h>
#endif
#include "Scrobbler.h"
#endif