forked from nymea/nymea-remoteproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnymea-remoteproxy.pro
50 lines (38 loc) · 1.42 KB
/
nymea-remoteproxy.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
include(nymea-remoteproxy.pri)
# Define versions
SERVER_NAME=nymea-remoteproxy
API_VERSION_MAJOR=0
API_VERSION_MINOR=5
# Parse and export SERVER_VERSION
SERVER_VERSION=$$system('dpkg-parsechangelog | sed -n -e "s/^Version: //p"')
QMAKE_SUBSTITUTES += version.h.in
TEMPLATE=subdirs
SUBDIRS += server client tunnelclient libnymea-remoteproxy libnymea-remoteproxyclient
!disabletests {
SUBDIRS += tests
}
!disablemonitor {
SUBDIRS += monitor
}
server.depends = libnymea-remoteproxy
client.depends = libnymea-remoteproxyclient
tunnelclient.depends = libnymea-remoteproxyclient
tests.depends = libnymea-remoteproxy libnymea-remoteproxyclient
test.commands = LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$$top_builddir/libnymea-remoteproxy:$$top_builddir/libnymea-remoteproxyclient \
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$$top_srcdir/libnymea-remoteproxy:$$top_srcdir/libnymea-remoteproxyclient \
make check
QMAKE_EXTRA_TARGETS += test
message("----------------------------------------------------------")
message("Building nymea-remoteproxy $${SERVER_VERSION}")
message("----------------------------------------------------------")
message("JSON-RPC API version $${API_VERSION_MAJOR}.$${API_VERSION_MINOR}")
message("Qt version:" $$[QT_VERSION])
coverage {
message("Building with coverage report")
}
ccache {
message("Building with ccache support")
}
disablemonitor {
message("Building without the monitor")
}