| 1 |
QT += widgets gui dbus |
| 2 |
|
| 3 |
CONFIG += c++11 link_pkgconfig |
| 4 |
PKGCONFIG += \ |
| 5 |
gtest \ |
| 6 |
gtest_main \ |
| 7 |
gmock \ |
| 8 |
gmock_main \ |
| 9 |
libsystemd \ |
| 10 |
dbus-1 |
| 11 |
|
| 12 |
QMAKE_LFLAGS +=-fprofile-arcs -ftest-coverage |
| 13 |
QMAKE_CXXFLAGS += --coverage -fno-inline -fno-access-control -fno-exceptions |
| 14 |
QMAKE_CFLAGS += --coverage -fno-inline -fno-access-control -fno-exceptions |
| 15 |
|
| 16 |
LIBS += -lgcov -lkyconf |
| 17 |
|
| 18 |
# The following define makes your compiler emit warnings if you use |
| 19 |
# any Qt feature that has been marked deprecated (the exact warnings |
| 20 |
# depend on your compiler). Please consult the documentation of the |
| 21 |
# deprecated API in order to know how to port your code away from it. |
| 22 |
DEFINES += QT_DEPRECATED_WARNINGS |
| 23 |
|
| 24 |
# You can also make your code fail to compile if it uses deprecated APIs. |
| 25 |
# In order to do so, uncomment the following line. |
| 26 |
# You can also select to disable deprecated APIs only up to a certain version of Qt. |
| 27 |
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 |
| 28 |
|
| 29 |
INCLUDEPATH += \ |
| 30 |
../../utils \ |
| 31 |
../../config \ |
| 32 |
../../log |
| 33 |
|
| 34 |
SOURCES += \ |
| 35 |
kylog-gtest.cpp \ |
| 36 |
../../log/core.c \ |
| 37 |
../../log/format.c \ |
| 38 |
../../log/klog_dump.c \ |
| 39 |
../../log/klog_mqueue.c \ |
| 40 |
../../log/libkylog.c \ |
| 41 |
../../log/write.c \ |
| 42 |
../../log/writeFile.c \ |
| 43 |
|
| 44 |
HEADERS += \ |
| 45 |
|
| 46 |
# Default rules for deployment. |
| 47 |
headers.files = $${HEADERS} |
| 48 |
headers.path = /usr/include/kysdk/desktop/ |
| 49 |
target.path = $$[QT_INSTALL_LIBS] |
| 50 |
INSTALLS += target headers |
| 51 |
|