aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/testlib/testlib.pro
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/testlib/testlib.pro')
-rw-r--r--src/imports/testlib/testlib.pro25
1 files changed, 21 insertions, 4 deletions
diff --git a/src/imports/testlib/testlib.pro b/src/imports/testlib/testlib.pro
index cc29d53f51..bfeea0fafe 100644
--- a/src/imports/testlib/testlib.pro
+++ b/src/imports/testlib/testlib.pro
@@ -2,6 +2,7 @@ TARGET = qmltestplugin
TARGETPATH = QtTest
include(../qimportbase.pri)
+
CONFIG += qt plugin
symbian {
@@ -11,6 +12,13 @@ symbian {
} else {
TARGET.CAPABILITY = All -Tcb
}
+
+ isEmpty(DESTDIR):importFiles.files = qmltestplugin$${QT_LIBINFIX}.dll qmldir
+ else:importFiles.files = $$DESTDIR/qmltestplugin$${QT_LIBINFIX}.dll qmldir
+ importFiles.path = $$QT_IMPORTS_BASE_DIR/$$TARGETPATH
+
+ DEPLOYMENT = importFiles
+
}
QT += declarative script qmltest qmltest-private
@@ -18,12 +26,21 @@ QT += declarative script qmltest qmltest-private
SOURCES += main.cpp
HEADERS +=
-qdeclarativesources.files += \
+DESTDIR = $$QT.declarative.imports/$$TARGETPATH
+
+target.path += $$[QT_INSTALL_IMPORTS]/QtTest
+OTHER_IMPORT_FILES = \
qmldir \
TestCase.qml \
SignalSpy.qml \
testlogger.js
-qdeclarativesources.path += $$[QT_INSTALL_IMPORTS]/QtTest
-target.path += $$[QT_INSTALL_IMPORTS]/QtTest
-INSTALLS += qdeclarativesources target
+otherImportFiles.files += $$OTHER_IMPORT_FILES
+
+otherImportFiles.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
+
+copy2build.input = OTHER_IMPORT_FILES
+copy2build.output = $$QT.declarative.imports/$$TARGETPATH/${QMAKE_FILE_NAME}
+
+
+INSTALLS += target otherImportFiles