1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 07:36:48 +02:00

Don't rely on target names for export macros

This commit is contained in:
Dominik Schmidt
2016-02-23 17:20:31 +01:00
parent 99abd7434b
commit cc9f287b41
4 changed files with 4 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ tomahawk_add_library(${TOMAHAWK_PLAYDARAPI_LIBRARY_TARGET}
qtcertificateaddon qtcertificateaddon
${GNUTLS_LIBRARIES} ${GNUTLS_LIBRARIES}
EXPORT TomahawkLibraryDepends EXPORT TomahawkLibraryDepends
EXPORT_MACRO TOMAHAWK_WIDGETS_EXPORT_PRO
VERSION ${TOMAHAWK_VERSION_SHORT} VERSION ${TOMAHAWK_VERSION_SHORT}
) )

View File

@@ -23,7 +23,7 @@
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>
#ifndef TOMAHAWK_PLAYDARAPI_EXPORT #ifndef TOMAHAWK_PLAYDARAPI_EXPORT
# if defined (tomahawk_playdarapi_EXPORTS) # if defined (TOMAHAWK_WIDGETS_EXPORT_PRO)
# define TOMAHAWK_PLAYDARAPI_EXPORT Q_DECL_EXPORT # define TOMAHAWK_PLAYDARAPI_EXPORT Q_DECL_EXPORT
# else # else
# define TOMAHAWK_PLAYDARAPI_EXPORT Q_DECL_IMPORT # define TOMAHAWK_PLAYDARAPI_EXPORT Q_DECL_IMPORT

View File

@@ -13,5 +13,6 @@ tomahawk_add_library(${TOMAHAWK_WIDGETS_LIBRARY_TARGET}
SOURCES ${${TOMAHAWK_WIDGETS_LIBRARY_TARGET}_SOURCES} SOURCES ${${TOMAHAWK_WIDGETS_LIBRARY_TARGET}_SOURCES}
UI ${${TOMAHAWK_WIDGETS_LIBRARY_TARGET}_UI} UI ${${TOMAHAWK_WIDGETS_LIBRARY_TARGET}_UI}
EXPORT TomahawkLibraryDepends EXPORT TomahawkLibraryDepends
EXPORT_MACRO TOMAHAWK_WIDGETS_EXPORT_PRO
VERSION ${TOMAHAWK_VERSION_SHORT} VERSION ${TOMAHAWK_VERSION_SHORT}
) )

View File

@@ -23,7 +23,7 @@
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>
#ifndef TOMAHAWK_WIDGETS_EXPORT #ifndef TOMAHAWK_WIDGETS_EXPORT
# if defined (tomahawk_widgets_EXPORTS) # if defined (TOMAHAWK_WIDGETS_EXPORT_PRO)
# define TOMAHAWK_WIDGETS_EXPORT Q_DECL_EXPORT # define TOMAHAWK_WIDGETS_EXPORT Q_DECL_EXPORT
# else # else
# define TOMAHAWK_WIDGETS_EXPORT Q_DECL_IMPORT # define TOMAHAWK_WIDGETS_EXPORT Q_DECL_IMPORT