forked from jbagg/QtZeroConf
Q_DECL_IMPORT was being triggered when QZeroConf was build statically into another project
This commit is contained in:
@ -21,6 +21,10 @@ QZeroConf can be built directly into your project if your project is [LGPL3](htt
|
||||
|
||||
include(qtzeroconf/qtzeroconf.pri)
|
||||
|
||||
4. Add QZEROCONF_STATIC define in your projects .pro file
|
||||
|
||||
DEFINES= QZEROCONF_STATIC
|
||||
|
||||
#### Compiling as a dynamic library
|
||||
|
||||
1. Clone or download QZeroConf. If you download, unzip.
|
||||
|
@ -2,5 +2,6 @@ QT+= core gui widgets network
|
||||
TARGET = test_app
|
||||
HEADERS= window.h
|
||||
SOURCES= main.cpp window.cpp
|
||||
DEFINES= QZEROCONF_STATIC
|
||||
|
||||
include(../qtzeroconf.pri)
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include <QMap>
|
||||
#include <QtCore/QtGlobal>
|
||||
|
||||
#ifndef QT_STATIC
|
||||
#if (!defined(QT_STATIC) && !defined(QZEROCONF_STATIC))
|
||||
# ifdef QT_BUILD_ZEROCONF_LIB
|
||||
# define Q_ZEROCONF_EXPORT Q_DECL_EXPORT
|
||||
# else
|
||||
|
Reference in New Issue
Block a user