mirror of
https://github.com/jbagg/QtZeroConf.git
synced 2025-08-04 11:44:25 +02:00
Add Q_DECL_EXPORT / IMPORT
This commit is contained in:
@@ -7,6 +7,7 @@ include($$PWD/qtzeroconf.pri)
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
TARGET = $$qtLibraryTarget(QtZeroConf$$QT_LIBINFIX)
|
TARGET = $$qtLibraryTarget(QtZeroConf$$QT_LIBINFIX)
|
||||||
CONFIG += module create_prl
|
CONFIG += module create_prl
|
||||||
|
DEFINES+= QT_BUILD_ZEROCONF_LIB
|
||||||
mac:QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET
|
mac:QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET
|
||||||
|
|
||||||
target.path = $$PREFIX/lib
|
target.path = $$PREFIX/lib
|
||||||
|
13
qzeroconf.h
13
qzeroconf.h
@@ -30,6 +30,17 @@
|
|||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QHostAddress>
|
#include <QHostAddress>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
|
#include <QtCore/QtGlobal>
|
||||||
|
|
||||||
|
#ifndef QT_STATIC
|
||||||
|
# ifdef QT_BUILD_ZEROCONF_LIB
|
||||||
|
# define Q_ZEROCONF_EXPORT Q_DECL_EXPORT
|
||||||
|
# else
|
||||||
|
# define Q_ZEROCONF_EXPORT Q_DECL_IMPORT
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define Q_ZEROCONF_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
struct QZeroConfService
|
struct QZeroConfService
|
||||||
{
|
{
|
||||||
@@ -45,7 +56,7 @@ struct QZeroConfService
|
|||||||
|
|
||||||
class QZeroConfPrivate;
|
class QZeroConfPrivate;
|
||||||
|
|
||||||
class QZeroConf : public QObject
|
class Q_ZEROCONF_EXPORT QZeroConf : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user