From 339955e8bdcfade2c6d8eb2c2742c8a4615a47e3 Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Mon, 30 May 2011 13:50:46 +1000 Subject: copy other .qml .js files during build time Change-Id: I08db54c7cd5d2ae7bbad28440cc36f6332a190c9 --- src/imports/testlib/testlib.pro | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'src/imports') 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 -- cgit v1.2.3