Commit d83b0be4 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed in-source builds for custom QML extension plug-ins.

Check if the output directory is different from the source dir. If so,
do the copying magic (shadow build), otherwise skip it (in-source build).

Task-number: QTCREATORBUG-3034
Reviewed-by: Alessandro Portale
Reviewed-by: Oswald Buddenhagen
parent 66ea47e3
......@@ -16,8 +16,10 @@ HEADERS += \
OTHER_FILES = qmldir
copy_qmldir.target = $$OUT_PWD/qmldir
copy_qmldir.depends = $$PWD/qmldir
copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
QMAKE_EXTRA_TARGETS += copy_qmldir
PRE_TARGETDEPS += $$copy_qmldir.target
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
copy_qmldir.target = $$OUT_PWD/qmldir
copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
QMAKE_EXTRA_TARGETS += copy_qmldir
PRE_TARGETDEPS += $$copy_qmldir.target
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment