-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqthread.pro
63 lines (44 loc) · 1.53 KB
/
qthread.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
QT -= gui
QT += network
CONFIG += c++11
CONFIG += staticlib
CONFIG += create_prl
TEMPLATE = lib
SOURCES += src/qthread.cpp
SOURCES += src/diagnostics.cpp
SOURCES += src/icmpv6.cpp
SOURCES += src/network.cpp
HEADERS += include/qthread.hpp
OPENTHREADBASE = /usr/local/src/openthread
OPENTHREADOUT = $$OPENTHREADBASE/output
OPENTHREADLIB = $$OPENTHREADOUT/x86_64-unknown-linux-gnu/lib
OPENTHREADINC = $$OPENTHREADOUT/include
INCLUDEPATH += ./include
INCLUDEPATH += $$OPENTHREADINC
QMAKE_LFLAGS += -Wl,--start-group
DEFINES += OPENTHREAD_MULTIPLE_INSTANCE
PRE_TARGETDEPS += $$OPENTHREADLIB/libopenthread-posix.a
#OpenThreads libraries path
LIBS += -L$$OPENTHREADLIB
#OpenThreads Thread Stack implementation of the Full Thread Device (FTD)
LIBS += -lopenthread-ftd
#MbedTLS SSL library with CryptoCell support for ECC operations
LIBS += -lmbedcrypto
#Posix OpenThreads platform implementation library
LIBS += -lopenthread-posix
#OpenThreads platform util which contains the flash manager library
LIBS += -lopenthread-platform-utils
#(Optional) OpenThreads diagnostic module library
LIBS += -lopenthread-diag
for(var, $$list($$member(LIBS, 1, -1))) {
OPENTHREADINSTALL += $$absolute_path($$replace(var, -l, lib).a, $$OPENTHREADLIB)
}
LOGFILE = openthread.log
COMMITID = $$quote($$system(git -C $$OPENTHREADBASE log -1 --oneline))
write_file($$OUT_PWD/$$LOGFILE, COMMITID)
unix:target.path = /usr/local/lib/qthread
INSTALLS += target
unix:doc.path = /usr/local/lib/qthread
unix:doc.files = $$LOGFILE
INSTALLS += doc
include($$PWD/qthread_release.pro)