mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-03-15 19:41:24 +00:00
Start work on building on Windows with DLL's
This commit is contained in:
parent
dbd13ea3bb
commit
2a185b54de
11 changed files with 27 additions and 1 deletions
|
@ -34,3 +34,14 @@ unix {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
win32 {
|
||||
exists( $$top_srcdir/../open-zwave/cpp/src/) {
|
||||
message("Found OZW in $$absolute_path($$top_srcdir/../open-zwave/cpp/src)")
|
||||
OZW_LIB_PATH = $$absolute_path($$top_srcdir/../open-zwave/)
|
||||
INCLUDEPATH += $$absolute_path($$top_srcdir/../open-zwave/cpp/src/)/
|
||||
LIBS += -L$$absolute_path($$top_srcdir/../open-zwave/cpp/build/windows/vs2010/ReleaseDLL) -lopenzwave
|
||||
} else {
|
||||
error("Can't Find a copy of OpenZwave")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
# define QTOPENZWAVESHARED_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
# define QTOPENZWAVESHARED_EXPORT Q_DECL_IMPORT
|
||||
# define OPENZWAVE_USEDLL
|
||||
#endif
|
||||
|
||||
#endif // QTOPENZWAVE_GLOBAL_H
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "qt-openzwave_global.h"
|
||||
#include <QLoggingCategory>
|
||||
|
||||
#ifndef QTOZW_LOGGING_H
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#ifndef QTOZWASSOCIATIONMODEL_P_H
|
||||
#define QTOZWASSOCIATIONMODEL_P_H
|
||||
|
||||
#include "qt-openzwave_global.h"
|
||||
#include <QObject>
|
||||
#include "qt-openzwave/qtozwassociationmodel.h"
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#ifndef QTOZW_LOG_P_H
|
||||
#define QTOZW_LOG_P_H
|
||||
#include "qt-openzwave_global.h"
|
||||
#include "qt-openzwave/qtozwlog.h"
|
||||
#include <platform/Log.h>
|
||||
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#ifndef QTOZWMANAGER_P_H
|
||||
#define QTOZWMANAGER_P_H
|
||||
|
||||
#include "qt-openzwave_global.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
#include "qtozw_logging.h"
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#ifndef QTOZWNODEMODEL_P_H
|
||||
#define QTOZWNODEMODEL_P_H
|
||||
|
||||
#include "qt-openzwave_global.h"
|
||||
|
||||
#include <QObject>
|
||||
#include "qt-openzwave/qtozwnodemodel.h"
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#ifndef QTOZWNOTIFICATION_H
|
||||
#define QTOZWNOTIFICATION_H
|
||||
|
||||
#include "qt-openzwave_global.h"
|
||||
|
||||
#include <QObject>
|
||||
#include "Notification.h"
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#ifndef QTOZWOPTIONS_P_H
|
||||
#define QTOZWOPTIONS_P_H
|
||||
|
||||
#include "qt-openzwave_global.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
#include <Options.h>
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#ifndef QTOZWVALUEIDMODEL_P_H
|
||||
#define QTOZWVALUEIDMODEL_P_H
|
||||
|
||||
#include "qt-openzwave_global.h"
|
||||
|
||||
#include <QObject>
|
||||
#include "qt-openzwave/qtozwvalueidmodel.h"
|
||||
|
||||
|
|
|
@ -24,8 +24,9 @@
|
|||
// along with OpenZWave. If not, see <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <QDebug>
|
||||
#include <QAbstractItemModel>
|
||||
#include <QAbstractItemModelReplica>
|
||||
|
|
Loading…
Add table
Reference in a new issue