-
Notifications
You must be signed in to change notification settings - Fork 25
/
nymea-plugins.pro
131 lines (121 loc) · 3.49 KB
/
nymea-plugins.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
TEMPLATE = subdirs
PLUGIN_DIRS = \
anel \
aqi \
avahimonitor \
awattar \
bimmerconnected \
bluos \
bose \
bosswerk \
coinmarketcap \
commandlauncher \
datetime \
daylightsensor \
denon \
doorbird \
dht \
dweetio \
dynatrace \
easee \
elgato \
espsomfyrts \
eq-3 \
espuino \
evbox \
everest \
fastcom \
flowercare \
fronius \
garadget \
goecharger \
gpio \
i2cdevices \
httpcommander \
homeconnect \
keba \
kodi \
lgsmarttv \
lifx \
logilink \
mecelectronics \
meross \
mailnotification \
mqttclient \
mystrom \
neatobotvac \
nanoleaf \
netatmo \
networkdetector \
notifyevents \
nuki \
mcp3008 \
onewire \
openuv \
openweathermap \
osdomotics \
philipshue \
powerfox \
pushbullet \
pushnotifications \
reversessh \
senic \
serialportcommander \
sgready \
shelly \
simpleheatpump \
solarlog \
somfytahoma \
sonos \
spothinta \
sunposition \
systemmonitor \
tado \
tasmota \
tcpcommander \
telegram \
tempo \
texasinstruments \
tmate \
tplink \
tuya \
udpcommander \
unifi \
usbrelay \
usbrly82 \
wakeonlan \
wemo \
ws2812fx \
message(============================================)
message("Qt version:" $$[QT_VERSION])
plugininfo.depends = FORCE
for (entry, PLUGIN_DIRS):plugininfo.commands += test -d $${entry} || mkdir -p $${entry}; cd $${entry} && qmake -o Makefile $$PWD/$${entry}/$${entry}.pro && cd ..;
for (entry, PLUGIN_DIRS):plugininfo.commands += make -C $${entry} plugininfo.h;
QMAKE_EXTRA_TARGETS += plugininfo
# Translations:
# make lupdate to update .ts files
lupdate.depends = FORCE plugininfo
for (entry, PLUGIN_DIRS):lupdate.commands += make -C $${entry} lupdate;
QMAKE_EXTRA_TARGETS += lupdate
# make lrelease to build .qm from .ts
lrelease.depends = FORCE
for (entry, PLUGIN_DIRS):lrelease.commands += lrelease $$files($$PWD/$${entry}/translations/*.ts, true);
QMAKE_EXTRA_TARGETS += lrelease
# For Qt-Creator's code model: Add CPATH to INCLUDEPATH explicitly
INCLUDEPATH += $$(CPATH)
message("Usage: qmake [srcdir] [WITH_PLUGINS=\"...\"] [WITHOUT_PLUGINS=\"...\"]")
isEmpty(WITH_PLUGINS) {
PLUGINS = $${PLUGIN_DIRS}
} else {
PLUGINS = $${WITH_PLUGINS}
}
PLUGINS-=$${WITHOUT_PLUGINS}
message("Building plugins:")
for(plugin, PLUGINS) {
exists($${plugin}) {
SUBDIRS*= $${plugin}
message("- $${plugin}")
} else {
error("Invalid plugin \"$${plugin}\".")
}
}