aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/shared
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-05-17 14:38:33 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-24 09:42:42 +0200
commit9539b88b7c36efb582f225fb1207db4fc27d3f49 (patch)
tree97f122b4f99ed29647d057165fdac68a17d03360 /tests/auto/shared
parent2a5d05dd3c9d42794d6863425598b8a838ebfb63 (diff)
Make qqmlmoduleplugin tests pass in shadow builds.
The plugin binary and qml files for a module need to be in the same directory. This was solved for source builds because the files were already located in the import path, but with shadow builds the files were split between the build and source trees. To solve this we copy the files to the import path when doing a build. So no files are copied on top of themselves all mixed module files have been relocated to their module source directory. Change-Id: I238af998a0f766e67ed6d0023e5ab4c2a4ea67af Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Diffstat (limited to 'tests/auto/shared')
-rw-r--r--tests/auto/shared/imports.pri7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/shared/imports.pri b/tests/auto/shared/imports.pri
new file mode 100644
index 0000000000..20e9bcb371
--- /dev/null
+++ b/tests/auto/shared/imports.pri
@@ -0,0 +1,7 @@
+
+copyimportfiles.input = IMPORT_FILES
+copyimportfiles.output = $$DESTDIR/${QMAKE_FILE_IN_BASE}${QMAKE_FILE_EXT}
+copyimportfiles.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
+copyimportfiles.CONFIG += no_link_no_clean
+copyimportfiles.variable_out = PRE_TARGETDEPS
+QMAKE_EXTRA_COMPILERS += copyimportfiles