qt-openzwave/qt-ozwdaemon/qt-ozwdaemon.pro

174 lines
5.4 KiB
Prolog
Raw Permalink Normal View History

QT -= gui
QT += remoteobjects
2019-07-01 17:39:13 +08:00
TARGET = ../ozwdaemon
2019-07-01 17:11:28 +08:00
2019-12-03 18:34:12 +08:00
VERSION = 0.1.0
2019-12-31 17:18:48 +08:00
CONFIG += c++11 console link_pkgconfig silent force_debug_info
CONFIG -= app_bundle
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
2019-12-03 18:34:12 +08:00
DEFINES += QT_DEPRECATED_WARNINGS QT_MESSAGELOGCONTEXT APP_VERSION=$$VERSION
qtHaveModule(mqtt) {
2019-11-10 01:32:10 +08:00
PKGCONFIG += RapidJSON
QT += mqtt
DEFINES += HAVE_MQTT
SOURCES += mqttpublisher.cpp \
2019-11-13 16:50:46 +08:00
mqttNodes.cpp \
mqttValues.cpp \
mqttAssociations.cpp \
2019-11-10 01:32:10 +08:00
qtrj.cpp \
mqttcommands/mqttcommands.cpp \
mqttcommands/ping.cpp \
mqttcommands/open.cpp \
2019-11-12 20:08:50 +08:00
mqttcommands/close.cpp \
mqttcommands/refreshnodeinfo.cpp \
mqttcommands/requestNodeState.cpp \
mqttcommands/requestNodeDynamic.cpp \
mqttcommands/requestConfigParam.cpp \
mqttcommands/requestAllConfigParam.cpp \
mqttcommands/softResetController.cpp \
mqttcommands/hardResetController.cpp \
mqttcommands/cancelControllerCommand.cpp \
mqttcommands/testNetworkNode.cpp \
mqttcommands/testNetwork.cpp \
mqttcommands/healNetworkNode.cpp \
mqttcommands/healNetwork.cpp \
mqttcommands/addNode.cpp \
mqttcommands/removeNode.cpp \
mqttcommands/removeFailedNode.cpp \
mqttcommands/hasNodeFailed.cpp \
mqttcommands/requestNodeNeighborUpdate.cpp \
mqttcommands/assignReturnRoute.cpp \
mqttcommands/deleteAllReturnRoute.cpp \
mqttcommands/sendNodeInformation.cpp \
mqttcommands/replaceFailedNode.cpp \
mqttcommands/requestNetworkUpdate.cpp \
mqttcommands/IsNodeFailed.cpp \
mqttcommands/checkLatestConfigFileRevision.cpp \
mqttcommands/checkLatestMFSRevision.cpp \
mqttcommands/downloadLatestConfigFileRevision.cpp \
2019-11-06 17:19:44 +08:00
mqttcommands/downloadLatestMFSRevision.cpp \
mqttcommands/setValue.cpp \
mqttcommands/setPollInterval.cpp \
mqttcommands/getPollINterval.cpp \
mqttcommands/syncroniseNodeNeighbors.cpp \
mqttcommands/refreshValue.cpp \
mqttcommands/addAssociation.cpp \
mqttcommands/removeAssociation.cpp \
mqttcommands/enablePoll.cpp \
mqttcommands/disablePoll.cpp
HEADERS += mqttpublisher.h \
2019-11-10 01:32:10 +08:00
qtrj.h \
2019-11-13 16:50:46 +08:00
mqttNodes.h \
mqttValues.h \
mqttAssociations.h \
2019-11-06 17:19:44 +08:00
mqttcommands/mqttcommands.h \
mqttcommands/ping.h \
mqttcommands/open.h \
2019-11-12 20:08:50 +08:00
mqttcommands/close.h \
mqttcommands/refreshnodeinfo.h \
mqttcommands/requestNodeState.h \
mqttcommands/requestNodeDynamic.h \
mqttcommands/requestConfigParam.h \
mqttcommands/requestAllConfigParam.h \
mqttcommands/softResetController.h \
mqttcommands/hardResetController.h \
mqttcommands/cancelControllerCommand.h \
mqttcommands/testNetworkNode.h \
mqttcommands/testNetwork.h \
mqttcommands/healNetworkNode.h \
mqttcommands/healNetwork.h \
mqttcommands/addNode.h \
mqttcommands/removeNode.h \
mqttcommands/removeFailedNode.h \
mqttcommands/hasNodeFailed.h \
mqttcommands/requestNodeNeighborUpdate.h \
2019-11-06 17:19:44 +08:00
mqttcommands/assignReturnRoute.h \
mqttcommands/deleteAllReturnRoute.h \
mqttcommands/sendNodeInformation.h \
mqttcommands/replaceFailedNode.h \
mqttcommands/requestNetworkUpdate.h \
mqttcommands/IsNodeFailed.h \
mqttcommands/checkLatestConfigFileRevision.h \
mqttcommands/CheckLatestMFSRevision.h \
mqttcommands/downloadLatestConfigFileRevision.h \
2019-11-06 17:19:44 +08:00
mqttcommands/downloadLatestMFSRevision.h \
mqttcommands/setValue.h \
mqttcommands/setPollInterval.h \
mqttcommands/getPollInterval.h\
mqttcommands/syncroniseNodeNeighbors.h \
mqttcommands/refreshValue.h \
mqttcommands/addAssociation.h \
mqttcommands/removeAssociation.h \
mqttcommands/enablePoll.h \
mqttcommands/disablePoll.h
} else {
warning("MQTT Qt Module Not Found. Not Building MQTT Client Capabilities")
}
SOURCES += main.cpp \
qtozwdaemon.cpp
HEADERS += \
2019-11-03 16:09:19 +08:00
qtozwdaemon.h \
2019-08-23 16:53:31 +08:00
include(../qt-openzwave.pri)
INCLUDEPATH += ../qt-openzwave/include/
2019-12-31 17:18:48 +08:00
BreakPad {
exists( $$top_srcdir/../breakpad/src/src/client/linux/libbreakpad_client.a) {
INCLUDEPATH += $$top_srcdir/../breakpad/src/src/
SOURCES += $$top_srcdir/../breakpad/src/src/common/linux/http_upload.cc
LIBS += $$top_srcdir/../breakpad/src/src/client/linux/libbreakpad_client.a -ldl
DEFINES += BP_LINUX
message("Building with BreakPad");
} else {
error("Can't find BreakPad Library");
}
}
2019-08-23 16:53:31 +08:00
unix {
# Default rules for deployment.
target.path = /usr/local/bin
INSTALLS += target
2019-12-31 17:18:48 +08:00
PKGCONFIG += libunwind libcurl
2019-10-28 20:59:04 +08:00
LIBS += -lresolv -L../qt-openzwave/ -lqt-openzwave -L../qt-openzwavedatabase/ -lqt-openzwavedatabase
INCLUDEPATH += ../qt-openzwavedatabase/include/
2019-12-31 17:18:48 +08:00
QMAKE_CXXFLAGS += -g
QMAKE_CFLAGS += -g
QMAKE_LFLAGS += -rdynamic
2020-01-06 14:45:41 +08:00
QMAKE_STRIP = echo
2019-08-23 16:53:31 +08:00
}
win32 {
LIBS += -lDnsapi -L../qt-openzwave/$$BUILDTYPE/ -lqt-openzwave1
}
2019-06-07 17:38:00 +08:00
macx {
ICON = res/ozw_logo.icns
QMAKE_POST_LINK=$$top_srcdir/updaterpath.sh $(TARGET)
2019-06-07 17:38:00 +08:00
}
2019-06-07 18:34:00 +08:00
2019-12-31 17:18:48 +08:00
QMAKE_CFLAGS_RELEASE -= -O
QMAKE_CFLAGS_RELEASE -= -O1
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE -= -O
QMAKE_CXXFLAGS_RELEASE -= -O1
QMAKE_CXXFLAGS_RELEASE -= -O2