This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
forked from dresden-elektronik/deconz-rest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
de_web.pro
314 lines (278 loc) · 8.3 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
TARGET = de_rest_plugin
# common configuration for deCONZ plugins
TARGET = $$qtLibraryTarget($$TARGET)
DEFINES += DECONZ_DLLSPEC=Q_DECL_IMPORT
QMAKE_CXXFLAGS += -Wno-attributes \
-Wno-psabi \
-Wall
CONFIG(debug, debug|release) {
LIBS += -L../../debug
}
CONFIG(release, debug|release) {
LIBS += -L../../release
}
equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 15) {
DEFINES += SKIP_EMPTY_PARTS=QString::SkipEmptyParts
} else {
DEFINES += SKIP_EMPTY_PARTS=Qt::SkipEmptyParts
}
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
}
packagesExist(openssl) {
DEFINES += HAS_OPENSSL
#PKGCONFIG += openssl
}
}
macx {
DEFINES += QT_NO_DEPRECATED_WARNINGS
CONFIG+=sdk_no_version_check
LIBS += -lsqlite3
DEFINES += HAS_SQLITE3
}
unix:LIBS += -L../.. -ldeCONZ
unix:!macx {
LIBS += -lcrypt
}
TEMPLATE = lib
CONFIG += plugin \
+= debug_and_release \
+= c++14 \
-= qtquickcompiler
QT += network qml
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.13.04\\\"
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=0x26390500
DEFINES += GW_MIN_R21_FW_VERSION=0x26660700
# 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 \
air_quality.h \
alarm_system.h \
alarm_system_device_table.h \
alarm_system_event_handler.h \
aps_controller_wrapper.h \
backup.h \
button_maps.h \
connectivity.h \
colorspace.h \
crypto/random.h \
crypto/scrypt.h \
database.h \
daylight.h \
de_web_plugin.h \
de_web_plugin_private.h \
de_web_widget.h \
device.h \
device_access_fn.h \
device_compat.h \
device_ddf_init.h \
device_descriptions.h \
device_js/device_js.h \
device_js/device_js_wrappers.h \
device_tick.h \
event.h \
event_emitter.h \
fan_control.h \
gateway.h \
gateway_scanner.h \
green_power.h \
group.h \
group_info.h \
json.h \
ias_ace.h \
ias_zone.h \
light_node.h \
mfspecific_cluster_xiaoyan.h \
poll_control.h \
poll_manager.h \
product_match.h \
read_files.h \
resource.h \
resourcelinks.h \
rest_alarmsystems.h \
rest_devices.h \
rest_node_base.h \
rule.h \
scene.h \
sensor.h \
state_change.h \
simple_metering.h \
thermostat.h \
thermostat_ui_configuration.h \
tuya.h \
ui/ddf_bindingeditor.h \
ui/ddf_editor.h \
ui/ddf_itemeditor.h \
ui/ddf_itemlist.h \
ui/ddf_treeview.h \
ui/device_widget.h \
ui/text_lineedit.h \
utils/bufstring.h \
utils/stringcache.h \
utils/utils.h \
websocket_server.h \
xiaomi.h \
zcl/zcl.h \
zdp/zdp.h \
zdp/zdp_handlers.h
SOURCES = air_quality.cpp \
alarm_system.cpp \
alarm_system_device_table.cpp \
alarm_system_event_handler.cpp \
aps_controller_wrapper.cpp \
authorisation.cpp \
backup.cpp \
bindings.cpp \
button_maps.cpp \
change_channel.cpp \
connectivity.cpp \
colorspace.cpp \
crypto/random.cpp \
crypto/scrypt.cpp \
database.cpp \
daylight.cpp \
device.cpp \
device_access_fn.cpp \
device_compat.cpp \
device_ddf_init.cpp \
device_descriptions.cpp \
device_js/device_js.cpp \
device_js/device_js_wrappers.cpp \
device_setup.cpp \
device_tick.cpp \
diagnostics.cpp \
discovery.cpp \
de_web_plugin.cpp \
de_web_widget.cpp \
de_otau.cpp \
electrical_measurement.cpp \
event.cpp \
event_emitter.cpp \
event_queue.cpp \
fan_control.cpp \
firmware_update.cpp \
gateway.cpp \
gateway_scanner.cpp \
green_power.cpp \
group.cpp \
group_info.cpp \
gw_uuid.cpp \
ias_ace.cpp \
ias_zone.cpp \
identify.cpp \
json.cpp \
light_node.cpp \
mfspecific_cluster_xiaoyan.cpp \
occupancy_sensing.cpp \
poll_control.cpp \
poll_manager.cpp \
power_configuration.cpp \
product_match.cpp \
read_files.cpp \
resource.cpp \
resourcelinks.cpp \
rest_alarmsystems.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 \
state_change.cpp \
thermostat_ui_configuration.cpp \
ui/ddf_bindingeditor.cpp \
ui/ddf_editor.cpp \
ui/ddf_itemeditor.cpp \
ui/ddf_itemlist.cpp \
ui/ddf_treeview.cpp \
ui/device_widget.cpp \
ui/text_lineedit.cpp \
upnp.cpp \
permitJoin.cpp \
scene.cpp \
sensor.cpp \
simple_metering.cpp \
thermostat.cpp \
time.cpp \
tuya.cpp \
basic.cpp \
appliances.cpp \
reset_device.cpp \
rest_userparameter.cpp \
utils/bufstring.cpp \
utils/stringcache.cpp \
utils/utils.cpp \
xiaomi.cpp \
window_covering.cpp \
websocket_server.cpp \
xmas.cpp \
zcl/zcl.cpp \
zcl_tasks.cpp \
zdp/zdp.cpp \
zdp/zdp_handlers.cpp
win32 {
OPENSSL_PATH = E:/Qt/Tools/OpenSSL/Win_x86
exists($$OPENSSL_PATH) {
message(OpenSLL detected $$OPENSSL_PATH)
#LIBS += -L$$OPENSSL_PATH/bin \
# -llibcrypto-1_1 \
# -llibssl-1_1
INCLUDEPATH += $$OPENSSL_PATH/include
DEFINES += HAS_OPENSSL
}
LIBS += \
-L../.. \
-L$${PWD}/../../../lib/sqlite-dll-win32-x86-3270200 \
-ldeCONZ1 \
-lsqlite3
INCLUDEPATH += $${PWD}/../../../lib/sqlite-amalgamation-3270200
CONFIG += dll
}
win32:DESTDIR = ../../debug/plugins # TODO adjust
unix:DESTDIR = ..
FORMS += \
de_web_widget.ui \
ui/ddf_editor.ui \
ui/device_widget.ui