forked from dresden-elektronik/deconz-rest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
de_web.pro
152 lines (128 loc) · 3.71 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
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 \
-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
}
}
win32:LIBS += -L../.. -ldeCONZ1
unix:LIBS += -L../.. -ldeCONZ
win32:CONFIG += dll
unix:!macx {
LIBS += -lcrypt
}
TEMPLATE = lib
CONFIG += plugin \
+= debug_and_release \
+= c++11
QT += network
INCLUDEPATH += ../.. \
../../common
GIT_COMMIT = $$system("git rev-list HEAD --max-count=1")
# 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.00\\\"
DEFINES += GW_API_VERSION=\\\"1.0.6\\\"
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_MIN_RPI_FW_VERSION=0x26190500
# 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
unix:contains(QMAKE_HOST.arch, armv6l) {
DEFINES += GW_DEFAULT_NAME=\\\"RaspBee-GW\\\"
}
else {
DEFINES += GW_DEFAULT_NAME=\\\"deCONZ-GW\\\"
}
QMAKE_CXXFLAGS += -Wno-attributes
HEADERS = bindings.h \
connectivity.h \
colorspace.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 \
sqlite3.h \
resource.h \
resourcelinks.h \
rest_node_base.h \
rule.h \
scene.h \
sensor.h \
websocket_server.h
SOURCES = authentification.cpp \
atmel_wsndemo_sensor.cpp \
bindings.cpp \
change_channel.cpp \
connectivity.cpp \
colorspace.cpp \
database.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 \
sqlite3.c \
resource.cpp \
resourcelinks.cpp \
rest_configuration.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 \
rule.cpp \
upnp.cpp \
permitJoin.cpp \
scene.cpp \
sensor.cpp \
reset_device.cpp \
rest_userparameter.cpp \
zcl_tasks.cpp \
websocket_server.cpp
win32:DESTDIR = ../../debug/plugins # TODO adjust
unix:DESTDIR = ..
FORMS += \
de_web_widget.ui