mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-27 18:24:33 +00:00
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.
58 lines
1.5 KiB
Prolog
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)
|
|
|