mirror of https://github.com/nymea/nymea.git
Rename testlib folder to libnymea-tests
Fix multiple imports of QT libs by replacing "+=" with "*="pull/706/head
parent
d8dcff002c
commit
400fff6785
|
|
@ -77,7 +77,7 @@ INSTALLS += translations
|
|||
QMAKE_EXTRA_TARGETS += lupdate lrelease
|
||||
|
||||
test.depends += lrelease
|
||||
test.commands = LD_LIBRARY_PATH=$$top_builddir/libnymea-core:$$top_builddir/libnymea:$$top_builddir/tests/testlib make check TESTRUNNER=\"dbus-test-runner --bus-type=both --task\"
|
||||
test.commands = LD_LIBRARY_PATH=$$top_builddir/libnymea-core:$$top_builddir/libnymea:$$top_builddir/tests/libnymea-tests make check TESTRUNNER=\"dbus-test-runner --bus-type=both --task\"
|
||||
QMAKE_EXTRA_TARGETS += test
|
||||
|
||||
# Show doc files in project tree
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
QT += dbus testlib network sql websockets
|
||||
CONFIG += testcase
|
||||
CONFIG += link_pkgconfig
|
||||
QT *= dbus testlib network sql websockets
|
||||
CONFIG *= testcase
|
||||
CONFIG *= link_pkgconfig
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 5) {
|
||||
qtHaveModule(serialbus) {
|
||||
|
|
@ -32,17 +32,17 @@ PKGCONFIG += nymea-zigbee nymea-networkmanager nymea-mqtt
|
|||
|
||||
INCLUDEPATH += $$top_srcdir/libnymea \
|
||||
$$top_srcdir/libnymea-core \
|
||||
$$top_srcdir/tests/testlib/ \
|
||||
$$top_srcdir/tests/libnymea-tests/ \
|
||||
$$top_builddir
|
||||
|
||||
LIBS += -L$$top_builddir/libnymea/ -lnymea \
|
||||
-L$$top_builddir/libnymea-core/ -lnymea-core \
|
||||
-L$$top_builddir/tests/testlib/ -lnymea-tests \
|
||||
-L$$top_builddir/tests/libnymea-tests/ -lnymea-tests \
|
||||
-L$$top_builddir/plugins/mock/ \
|
||||
-lssl -lcrypto -lnymea-remoteproxyclient
|
||||
|
||||
target.path = $$[QT_INSTALL_PREFIX]/share/tests/nymea/
|
||||
INSTALLS += target
|
||||
|
||||
test.commands = LD_LIBRARY_PATH=../../../libnymea:../../../libnymea-core/:../../testlib/ make check TESTRUNNER=\"dbus-test-runner --bus-type=both --task\"
|
||||
test.commands = LD_LIBRARY_PATH=../../../libnymea:../../../libnymea-core/:../../libnymea-tests/ make check TESTRUNNER=\"dbus-test-runner --bus-type=both --task\"
|
||||
QMAKE_EXTRA_TARGETS += test
|
||||
|
|
|
|||
|
|
@ -3,22 +3,22 @@ TARGET = nymea-tests
|
|||
|
||||
include(../../nymea.pri)
|
||||
|
||||
QT += testlib dbus network sql websockets
|
||||
QT *= dbus network sql websockets testlib
|
||||
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += nymea-zigbee
|
||||
CONFIG *= link_pkgconfig
|
||||
PKGCONFIG *= nymea-zigbee
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 5) {
|
||||
qtHaveModule(serialbus) {
|
||||
message("Building with QtSerialBus support.")
|
||||
QT += serialbus
|
||||
DEFINES += WITH_QTSERIALBUS
|
||||
QT *= serialbus
|
||||
DEFINES *= WITH_QTSERIALBUS
|
||||
} else {
|
||||
message("QtSerialBus package not found. Building without QtSerialBus support.")
|
||||
}
|
||||
|
||||
# Separate module in Qt6
|
||||
QT += concurrent
|
||||
QT *= concurrent
|
||||
} else {
|
||||
packagesExist(Qt5SerialBus) {
|
||||
message("Building with QtSerialBus support.")
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS = testlib auto tools/simplepushbuttonhandler
|
||||
auto.depends += testlib
|
||||
SUBDIRS = libnymea-tests auto tools/simplepushbuttonhandler
|
||||
auto.depends += libnymea-tests
|
||||
|
|
|
|||
Loading…
Reference in New Issue