copy other .qml .js files during build time
authorCharles Yin <charles.yin@nokia.com>
Mon, 30 May 2011 03:50:46 +0000 (13:50 +1000)
committerCharles Yin <charles.yin@nokia.com>
Mon, 30 May 2011 03:51:11 +0000 (13:51 +1000)
Change-Id: I08db54c7cd5d2ae7bbad28440cc36f6332a190c9

src/imports/testlib/testlib.pro

index cc29d53..bfeea0f 100644 (file)
@@ -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