-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
test.pri
37 lines (25 loc) · 932 Bytes
/
test.pri
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
#
# Copyright (C) 2018-2020 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.
#
unix:exec = $$PWD/tests/build/release/Qt-SecretTest
win32:exec = $$PWD/tests/build/release/Qt-SecretTest.exe
QT_DIR = $$[QT_HOST_BINS]
win32:QMAKE_BIN = $$QT_DIR/qmake.exe
contains(QMAKE_HOST.os, Linux):{
DEPLOYER=cqtdeployer
QMAKE_BIN = $$QT_DIR/qmake
} else {
DEPLOYER=$$(cqtdeployer)
}
!android:deployTest.commands = $$DEPLOYER -bin $$exec clear -qmake $$QMAKE_BIN -targetDir $$PWD/deployTests -libDir $$PWD -recursiveDepth 5
unix:!android:testRSA.commands = $$PWD/deployTests/Qt-SecretTest.sh
win32:testRSA.commands = $$PWD/deployTests/Qt-SecretTest.exe
test.depends += deployTest
test.depends += testRSA
QMAKE_EXTRA_TARGETS += \
deployTest \
testRSA \
test