Skip to content

Commit bbe28fd

Browse files
committed
Create qt.conf file to test the compiled plugin
1 parent c10d253 commit bbe28fd

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.qmake.conf

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
top_srcdir=$$PWD
2+
top_builddir=$$shadowed($$PWD)

tests/qt.conf.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Paths]
2+
Plugins = $$top_builddir/qsqlcipher/plugins

tests/tests.pro

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@ TEMPLATE = app
33
TARGET = qsqlcipher_test
44
unix: CONFIG += testcase
55
win32: {
6-
CONFIG += build_all
6+
CONFIG += build_all
7+
QMAKE_SUBSTITUTES += qt_conf
8+
qt_conf.input = qt.conf.in
9+
build_pass: CONFIG(debug, debug|release) {
10+
qt_conf.output = debug/qt.conf
11+
}
12+
else: build_pass {
13+
qt_conf.output = release/qt.conf
14+
}
15+
} else {
16+
QMAKE_SUBSTITUTES += qt.conf.in
717
}
8-
INCLUDEPATH += .
918

1019
# The following define makes your compiler warn you if you use any
1120
# feature of Qt which has been marked as deprecated (the exact warnings

0 commit comments

Comments
 (0)