CQtDeployer/CQtDeployer.pro
Mozi ff9690b115 feat: leave an empty test target if WITHOUT_TESTS
Patch for 165b30e464e0e678689dbe398b6abb6761621c9d .

If we are on Android, add WITHOUT_TESTS to CONFIG.
If CONFIG contains WITHOUT_TESTS, "make test" should not perform any
  operation.
2021-02-09 12:41:24 +08:00

58 lines
1.5 KiB
Prolog

#
# Copyright (C) 2018-2021 QuasarApp.
# Distributed under the lgplv3 software license, see the accompanying
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
#
TEMPLATE = subdirs
CONFIG += ordered
lessThan(QT_MAJOR_VERSION, 6):lessThan(QT_MINOR_VERSION, 12) {
warning("Tests are only enabled on Qt 5.12.0 or later version. You are using $$[QT_VERSION].")
DEFINES += WITHOUT_TESTS
}
android: DEFINES += WITHOUT_TESTS
!android {
SUBDIRS += QuasarAppLib \
Pe \
zip \
Deploy \
CQtDeployer \
UnitTests \
tests/TestOnlyC \
tests/TestQtWidgets \
tests/TestQMLWidgets
unix:SUBDIRS += tests/quicknanobrowser
unix:SUBDIRS += tests/webui
contains(DEFINES, WITHOUT_TESTS) {
SUBDIRS -= UnitTests \
tests/TestOnlyC \
tests/TestQtWidgets \
tests/TestQMLWidgets \
tests/quicknanobrowser \
tests/webui
}
CQtDeployer.depends=QuasarAppLib
CQtDeployer.depends=Deploy
QuasarAppLib.file = $$PWD/QuasarAppLib/QuasarApp.pro
Pe.file = $$PWD/pe/pe-parser-library/pe-parser-library.pro
include('$$PWD/QIFData/installerCQtDeployer.pri')
DISTFILES += \
snap/snapcraft.yaml \
snap/gui/cqtdeployer.desktop \
README.md \
}
include($$PWD/test.pri)