This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
forked from mzanetti/guh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguh.pro
63 lines (50 loc) · 1.63 KB
/
guh.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
include(guh.pri)
TEMPLATE=subdirs
SUBDIRS += libguh server plugins
server.depends = libguh plugins
plugins.depends = libguh
tests.depends = libguh
doc.depends = libguh server
# Note: some how extraimages in qdocconf did not the trick
doc.commands = cd $$top_srcdir/doc; qdoc config.qdocconf; cp images/logo.png html/images/; \
cp favicons/* html/; cp -r $$top_srcdir/doc/html $$top_builddir/
licensecheck.commands = $$top_srcdir/tests/auto/checklicenseheaders.sh $$top_srcdir
test.depends = licensecheck
test.commands = LD_LIBRARY_PATH=$$top_builddir/libguh:$$top_builddir/tests/libguh-core make check
QMAKE_EXTRA_TARGETS += licensecheck doc test
# Inform about guh build
message(============================================)
message(Qt version: $$[QT_VERSION])
message("Building guh version $${GUH_VERSION_STRING}")
message("JSON-RPC API version $${JSON_PROTOCOL_VERSION}")
message("REST API version $${REST_API_VERSION}")
# Build coverage
coverage {
message("Building coverage.")
}
# Build tests
!disabletesting {
message("Building guh with tests")
SUBDIRS += tests
DEFINES += TESTING_ENABLED
} else {
message("Building guh without tests")
}
# Bluetooth LE support
contains(DEFINES, BLUETOOTH_LE) {
message("Bluetooth LE enabled.")
} else {
message("Bluetooth LE disabled (Qt $${QT_VERSION} < 5.4.0).")
}
# Websocket support
contains(DEFINES, WEBSOCKET){
message("Building guh with websocket.")
} else {
message("Building guh without websocket.")
}
# GPIO RF 433 MHz support
contains(DEFINES, GPIO433){
message("Radio 433 for GPIO's enabled")
} else {
message("Radio 433 for GPIO's disabled")
}