mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 04:51:53 +02:00
Merge branch 'win'
This commit is contained in:
commit
39e2393b07
@ -28,7 +28,6 @@ SET( TOMAHAWK_INC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../include/" )
|
||||
|
||||
SET( tomahawkSources ${tomahawkSources}
|
||||
sip/SipHandler.cpp
|
||||
sip/twitter/tomahawkoauthtwitter.cpp
|
||||
|
||||
infosystem/infosystem.cpp
|
||||
infosystem/infoplugins/echonestplugin.cpp
|
||||
@ -71,7 +70,6 @@ SET( tomahawkHeaders ${tomahawkHeaders}
|
||||
"${TOMAHAWK_INC_DIR}/tomahawk/infosystem.h"
|
||||
|
||||
sip/SipHandler.h
|
||||
sip/twitter/tomahawkoauthtwitter.h
|
||||
|
||||
infosystem/infoplugins/echonestplugin.h
|
||||
infosystem/infoplugins/musixmatchplugin.h
|
||||
|
@ -8,12 +8,18 @@ ADD_DEFINITIONS( -static-libgcc )
|
||||
SET( OS_SPECIFIC_LINK_LIBRARIES
|
||||
${OS_SPECIFIC_LINK_LIBRARIES}
|
||||
|
||||
#internal deps
|
||||
sip_twitter
|
||||
${CMAKE_BINARY_DIR}/src/libtomahawk/libtomahawklib.dll
|
||||
|
||||
# normal deps
|
||||
${LIBLASTFM_LIBRARY}
|
||||
${GLOOX_LIBS}
|
||||
|
||||
# third party shipped with tomahawk
|
||||
${CMAKE_BINARY_DIR}/src/libtomahawk/libtomahawklib.dll
|
||||
${CMAKE_BINARY_DIR}/thirdparty/qtweetlib/libtomahawk_qtweetlib.dll
|
||||
|
||||
# fix them, they should be in ${CMAKE_BINARY_DIR} as well
|
||||
${CMAKE_SOURCE_DIR}/rtaudio/librtaudio.dll
|
||||
${CMAKE_SOURCE_DIR}/qxt/qxtweb-standalone/libqxtweb-standalone.dll
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
class MusicScanner;
|
||||
class QThread;
|
||||
|
||||
class DLLEXPORT ScanManager : public QObject
|
||||
class ScanManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
@ -13,7 +13,7 @@ set( twitterSources
|
||||
|
||||
set( twitterHeaders
|
||||
twitter.h
|
||||
tomahawkoauthtwitter.h
|
||||
tomahawkoauthtwitter.h
|
||||
)
|
||||
|
||||
include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
|
||||
@ -26,16 +26,17 @@ add_library( sip_twitter SHARED ${twitterSources} ${twitterMoc} )
|
||||
|
||||
IF( WIN32 )
|
||||
SET( OS_SPECIFIC_LINK_LIBRARIES
|
||||
${OS_SPECIFIC_LINK_LIBRARIES}
|
||||
"winmm.dll"
|
||||
${OS_SPECIFIC_LINK_LIBRARIES}
|
||||
"winmm.dll"
|
||||
"iphlpapi.a"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../build/src/libtomahawk/libtomahawklib.dll"
|
||||
"${CMAKE_BINARY_DIR}/thirdparty/qtweetlib/libtomahawk_qtweetlib.dll"
|
||||
"${CMAKE_BINARY_DIR}/src/libtomahawk/libtomahawklib.dll"
|
||||
)
|
||||
ENDIF( WIN32 )
|
||||
|
||||
target_link_libraries( sip_twitter
|
||||
${QT_LIBRARIES}
|
||||
${OS_SPECIFIC_LINK_LIBRARIES}
|
||||
${QT_LIBRARIES}
|
||||
${OS_SPECIFIC_LINK_LIBRARIES}
|
||||
)
|
||||
|
||||
IF( APPLE )
|
||||
|
1
thirdparty/qtweetlib/CMakeLists.txt
vendored
1
thirdparty/qtweetlib/CMakeLists.txt
vendored
@ -12,6 +12,7 @@ add_definitions( -DQT_SHARED )
|
||||
|
||||
if(WIN32)
|
||||
set(PLATFORM_SPECIFIC_LIBS "ws2_32.dll" "advapi32.dll" )
|
||||
add_definitions( -DQTWEETLIB_MAKEDLL )
|
||||
endif(WIN32)
|
||||
|
||||
set(TOMAHAWK_QTWEETLIB_SOURCES
|
||||
|
7
thirdparty/qtweetlib/qtweetlib/src/oauth.h
vendored
7
thirdparty/qtweetlib/qtweetlib/src/oauth.h
vendored
@ -40,8 +40,11 @@ class QTWEETLIBSHARED_EXPORT OAuth : public QObject
|
||||
public:
|
||||
OAuth(QObject *parent = 0);
|
||||
OAuth(const QByteArray& consumerKey, const QByteArray& consumerSecret, QObject *parent = 0);
|
||||
|
||||
enum HttpMethod {GET, POST, PUT, DELETE};
|
||||
#undef GET
|
||||
#undef POST
|
||||
#undef PUT
|
||||
#undef DELETE
|
||||
enum HttpMethod {GET, POST, PUT, DELETE};
|
||||
|
||||
void parseTokens(const QByteArray& response);
|
||||
QByteArray generateAuthorizationHeader(const QUrl& url, HttpMethod method);
|
||||
|
Loading…
x
Reference in New Issue
Block a user