mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-21 16:31:58 +02:00
Remove unused qtweetlib_export.h, move our custom tomahawkoauthtwitter
to the tomahawk_qtweetlib library where it belongs. Probably broke Windows again. Sorry domme :-)
This commit is contained in:
parent
0953dc93db
commit
9059dd4782
@ -125,6 +125,7 @@ INCLUDE_DIRECTORIES(
|
||||
../rtaudio
|
||||
../qxt/qxtweb-standalone/qxtweb
|
||||
../thirdparty/qtweetlib/qtweetlib/src
|
||||
../thirdparty/qtweetlib/tomahawk-custom
|
||||
|
||||
/usr/include/taglib
|
||||
/usr/local/include/taglib
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "musicscanner.h"
|
||||
#include "tomahawksettings.h"
|
||||
#include "sip/SipHandler.h"
|
||||
#include "sip/twitter/tomahawkoauthtwitter.h"
|
||||
#include "tomahawkoauthtwitter.h"
|
||||
#include <database/database.h>
|
||||
#include "scanmanager.h"
|
||||
|
||||
|
@ -8,17 +8,16 @@ add_definitions( -DSIPDLLEXPORT_PRO )
|
||||
|
||||
set( twitterSources
|
||||
twitter.cpp
|
||||
tomahawkoauthtwitter.cpp
|
||||
)
|
||||
|
||||
set( twitterHeaders
|
||||
twitter.h
|
||||
tomahawkoauthtwitter.h
|
||||
)
|
||||
|
||||
include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ..
|
||||
${QT_INCLUDE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/thirdparty/qtweetlib/src
|
||||
${CMAKE_SOURCE_DIR}/thirdparty/qtweetlib/qtweetlib/src
|
||||
${CMAKE_SOURCE_DIR}/thirdparty/qtweetlib/tomahawk-custom
|
||||
)
|
||||
|
||||
qt4_wrap_cpp( twitterMoc ${twitterHeaders} )
|
||||
|
6
thirdparty/qtweetlib/CMakeLists.txt
vendored
6
thirdparty/qtweetlib/CMakeLists.txt
vendored
@ -83,6 +83,8 @@ set(TOMAHAWK_QTWEETLIB_SOURCES
|
||||
qtweetlib/src/qtweetentityurl.cpp
|
||||
qtweetlib/src/qtweetentityhashtag.cpp
|
||||
qtweetlib/src/qtweetentityusermentions.cpp
|
||||
|
||||
tomahawk-custom/tomahawkoauthtwitter.cpp
|
||||
)
|
||||
|
||||
set(TOMAHAWK_QTWEETLIB_HEADERS
|
||||
@ -154,6 +156,8 @@ set(TOMAHAWK_QTWEETLIB_HEADERS
|
||||
qtweetlib/src/qtweetentityurl.h
|
||||
qtweetlib/src/qtweetentityhashtag.h
|
||||
qtweetlib/src/qtweetentityusermentions.h
|
||||
|
||||
tomahawk-custom/tomahawkoauthtwitter.h
|
||||
)
|
||||
|
||||
include_directories(
|
||||
@ -172,7 +176,7 @@ target_link_libraries(tomahawk_qtweetlib
|
||||
qjson
|
||||
)
|
||||
|
||||
SET_TARGET_PROPERTIES( tomahawk_qtweetlib PROPERTIES DEFINE_SYMBOL MAKE_QTWEETLIB_LIB )
|
||||
#SET_TARGET_PROPERTIES( tomahawk_qtweetlib PROPERTIES DEFINE_SYMBOL MAKE_QTWEETLIB_LIB )
|
||||
|
||||
INCLUDE( ${CMAKE_CURRENT_SOURCE_DIR}/twitter-api-keys )
|
||||
|
||||
|
18
thirdparty/qtweetlib/qtweetlib_export.h
vendored
18
thirdparty/qtweetlib/qtweetlib_export.h
vendored
@ -1,18 +0,0 @@
|
||||
#ifndef QTWEETLIB_EXPORT_H
|
||||
#define QTWEETLIB_EXPORT_H
|
||||
|
||||
#include <QtCore/QtGlobal>
|
||||
|
||||
#ifdef Q_WS_WIN
|
||||
# define QTWEETLIB_MAKEDLL
|
||||
# if defined(MAKE_QTWEETLIB_LIB)
|
||||
# define QTWEETLIB_EXPORT Q_DECL_EXPORT
|
||||
# else
|
||||
# define QTWEETLIB_EXPORT Q_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define QTWEETLIB_EXPORT Q_DECL_EXPORT
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
#include <oauthtwitter.h>
|
||||
|
||||
#include "../sipdllmacro.h"
|
||||
#include "qtweetlib_global.h"
|
||||
|
||||
class SIPDLLEXPORT TomahawkOAuthTwitter : public OAuthTwitter
|
||||
class QTWEETLIBSHARED_EXPORT TomahawkOAuthTwitter : public OAuthTwitter
|
||||
{
|
||||
Q_OBJECT
|
||||
|
Loading…
x
Reference in New Issue
Block a user