-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqtmgmt-includes.pri
More file actions
35 lines (27 loc) · 897 Bytes
/
qtmgmt-includes.pri
File metadata and controls
35 lines (27 loc) · 897 Bytes
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
# qtmgmt global include qmake project settings
# By default all components are built for Github qtmgmt releases
# Build for x86_64 and arm64 on mac
QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64
DEFINES += SKIPPLUGIN_LOGGER
DEFINES += PLUGIN_MCUMGR_TRANSPORT_UART
qtHaveModule(bluetooth) {
# Requires qtconnectivity
DEFINES += PLUGIN_MCUMGR_TRANSPORT_BLUETOOTH
}
qtHaveModule(network) {
# Requires qtnetwork
DEFINES += PLUGIN_MCUMGR_TRANSPORT_UDP
qtHaveModule(mqtt) {
# Requires qtnetwork and qtmqtt
DEFINES += PLUGIN_MCUMGR_TRANSPORT_LORAWAN
}
}
contains(DEFINES, PLUGIN_MCUMGR_TRANSPORT_BLUETOOTH) {
ADDITIONAL_MODULES += "bluetooth"
}
contains(DEFINES, PLUGIN_MCUMGR_TRANSPORT_UDP) | contains(DEFINES, PLUGIN_MCUMGR_TRANSPORT_LORAWAN) {
ADDITIONAL_MODULES += "network"
}
contains(DEFINES, PLUGIN_MCUMGR_TRANSPORT_LORAWAN) {
ADDITIONAL_MODULES += "mqtt"
}