aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2011-05-30 13:50:46 +1000
committerCharles Yin <charles.yin@nokia.com>2011-05-30 13:51:11 +1000
commit339955e8bdcfade2c6d8eb2c2742c8a4615a47e3 (patch)
tree3d883de2aebdd07cfae1dff7432443a4e4aa14e0 /src/imports
parentb98c9a81e833395b4b568a556ff077c067197902 (diff)
copy other .qml .js files during build time
Diffstat (limited to 'src/imports')
-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