forked from ebaauw/deconz-xbee-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xbee.pro
executable file
·72 lines (53 loc) · 1.35 KB
/
xbee.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
TARGET = xbee_plugin
# common configuration for deCONZ plugins
TARGET = $$qtLibraryTarget($$TARGET)
DEFINES += DECONZ_DLLSPEC=Q_DECL_IMPORT
unix:contains(QMAKE_HOST.arch, armv6l) {
DEFINES += ARCH_ARM ARCH_ARMV6
}
unix:contains(QMAKE_HOST.arch, armv7l) {
DEFINES += ARCH_ARM ARCH_ARMV7
}
QMAKE_CXXFLAGS += -Wno-attributes \
-Wall
CONFIG(debug, debug|release) {
LIBS += -L../../debug
}
CONFIG(release, debug|release) {
LIBS += -L../../release
}
greaterThan(QT_MAJOR_VERSION, 4) {
QT += core gui widgets serialport
greaterThan(QT_MINOR_VERSION, 2) {
DEFINES += USE_WEBSOCKETS
QT += websockets
}
}
QMAKE_SPEC_T = $$[QMAKE_SPEC]
contains(QMAKE_SPEC_T,.*linux.*) {
CONFIG += link_pkgconfig
packagesExist(sqlite3) {
DEFINES += HAS_SQLITE3
PKGCONFIG += sqlite3
}
}
unix:LIBS += -L../.. -ldeCONZ
unix:!macx {
LIBS += -lcrypt
}
TEMPLATE = lib
CONFIG += plugin \
+= debug_and_release \
+= c++11
INCLUDEPATH += ../.. \
../../common
HEADERS = xbee_plugin.h \
xbee_plugin_private.h \
xbee_widget.h
SOURCES = xbee_plugin.cpp \
xbee_plugin_private.cpp \
xbee_widget.cpp
win32:DESTDIR = ../../debug/plugins # TODO adjust
unix:DESTDIR = ..
FORMS += \
xbee_widget.ui