-
Notifications
You must be signed in to change notification settings - Fork 0
/
de_web.pro
190 lines (161 loc) · 4.74 KB
/
de_web.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
TARGET = de_rest_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 \
-Wno-psabi \
-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 \
-= qtquickcompiler
QT += network
INCLUDEPATH += ../.. \
../../common
# TAG is specified by auto build system
# this is needed since non head versions which are checkedout and build
# will have a revision different to HEAD
GIT_TAG=$$TAG
isEmpty(GIT_TAG) {
GIT_TAG=HEAD # default
}
GIT_COMMIT = $$system("git rev-list $$GIT_TAG --max-count=1")
GIT_COMMIT_DATE = $$system("git show -s --format=%ct $$GIT_TAG")
# Version Major.Minor.Build
# Important: don't change the format of this line since it's parsed by scripts!
DEFINES += GW_SW_VERSION=\\\"2.05.77\\\"
DEFINES += GW_SW_DATE=$$GIT_COMMIT_DATE
DEFINES += GW_API_VERSION=\\\"1.16.0\\\"
DEFINES += GIT_COMMMIT=\\\"$$GIT_COMMIT\\\"
# Minimum version of the RaspBee firmware
# which shall be used in order to support all features for this software release (case sensitive)
DEFINES += GW_AUTO_UPDATE_AVR_FW_VERSION=0x260b0500
DEFINES += GW_AUTO_UPDATE_R21_FW_VERSION=0x26420700
DEFINES += GW_MIN_AVR_FW_VERSION=0x26350500
DEFINES += GW_MIN_R21_FW_VERSION=0x26490700
# Minimum version of the deRFusb23E0X firmware
# which shall be used in order to support all features for this software release
DEFINES += GW_MIN_DERFUSB23E0X_FW_VERSION=0x22030300
DEFINES += GW_DEFAULT_NAME=\\\"Phoscon-GW\\\"
HEADERS = bindings.h \
connectivity.h \
colorspace.h \
daylight.h \
de_web_plugin.h \
de_web_plugin_private.h \
de_web_widget.h \
event.h \
gateway.h \
gateway_scanner.h \
group.h \
group_info.h \
json.h \
light_node.h \
poll_manager.h \
resource.h \
resourcelinks.h \
rest_devices.h \
rest_node_base.h \
rule.h \
scene.h \
sensor.h \
websocket_server.h
SOURCES = authorisation.cpp \
bindings.cpp \
change_channel.cpp \
connectivity.cpp \
colorspace.cpp \
database.cpp \
daylight.cpp \
device_setup.cpp \
discovery.cpp \
de_web_plugin.cpp \
de_web_widget.cpp \
de_otau.cpp \
event.cpp \
event_queue.cpp \
firmware_update.cpp \
gateway.cpp \
gateway_scanner.cpp \
group.cpp \
group_info.cpp \
gw_uuid.cpp \
ias_zone.cpp \
json.cpp \
light_node.cpp \
poll_manager.cpp \
resource.cpp \
resourcelinks.cpp \
rest_configuration.cpp \
rest_devices.cpp \
rest_gateways.cpp \
rest_groups.cpp \
rest_lights.cpp \
rest_node_base.cpp \
rest_resourcelinks.cpp \
rest_rules.cpp \
rest_sensors.cpp \
rest_schedules.cpp \
rest_touchlink.cpp \
rest_scenes.cpp \
rest_info.cpp \
rest_capabilities.cpp \
rule.cpp \
upnp.cpp \
permitJoin.cpp \
scene.cpp \
sensor.cpp \
thermostat.cpp \
time.cpp \
basic.cpp \
reset_device.cpp \
rest_userparameter.cpp \
zcl_tasks.cpp \
window_covering.cpp \
appliances.cpp \
websocket_server.cpp
win32 {
LIBS += \
-L../.. \
-L$${PWD}/../../../lib/sqlite-dll-win32-x86-3240000 \
-ldeCONZ1 \
-lsqlite3
INCLUDEPATH += $${PWD}/../../../lib/sqlite-amalgamation-3240000
CONFIG += dll
}
win32:DESTDIR = ../../debug/plugins # TODO adjust
unix:DESTDIR = ..
FORMS += \
de_web_widget.ui