make use of COPIES

Change-Id: I7106026af6096871368a9e05df94c907e39cdde1
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Oswald Buddenhagen 2016-04-22 20:40:33 +02:00
parent 1aef7fe39e
commit 38baf18df4
1 changed files with 6 additions and 15 deletions

21
pkg.pri
View File

@ -36,14 +36,9 @@ DESTDIR = $$shadowed($$PWD)/bin
INSTALLS += copyqmlinfra_install INSTALLS += copyqmlinfra_install
# put all our demos/examples and supporting files into $BUILD_DIR/bin # put all our demos/examples and supporting files into $BUILD_DIR/bin
target_dir = $$DESTDIR/$$resource_dir/qml copyqmlinfra.files = $$QML_INFRA_FILES
# create extra qmake compiler to copy files across during build step copyqmlinfra.path = $$DESTDIR/$$resource_dir/qml
copyqmlinfra.input = QML_INFRA_FILES COPIES += copyqmlinfra
copyqmlinfra.output = $$target_dir/${QMAKE_FILE_IN_BASE}${QMAKE_FILE_EXT}
copyqmlinfra.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
copyqmlinfra.CONFIG += no_link no_clean
copyqmlinfra.variable_out = POST_TARGETDEPS
QMAKE_EXTRA_COMPILERS += copyqmlinfra
} }
!isEmpty(QML_MESHES_FILES) { !isEmpty(QML_MESHES_FILES) {
@ -53,11 +48,7 @@ DESTDIR = $$shadowed($$PWD)/bin
copyqmlmeshes_install.path = $$target.path/$$resource_dir/qml/meshes copyqmlmeshes_install.path = $$target.path/$$resource_dir/qml/meshes
INSTALLS += copyqmlmeshes_install INSTALLS += copyqmlmeshes_install
target_dir = $$DESTDIR/$$resource_dir/qml/meshes copyqmlmeshes.files = $$QML_MESHES_FILES
copyqmlmeshes.input = QML_MESHES_FILES copyqmlmeshes.path = $$DESTDIR/$$resource_dir/qml/meshes
copyqmlmeshes.output = $$target_dir/${QMAKE_FILE_IN_BASE}${QMAKE_FILE_EXT} COPIES += copyqmlmeshes
copyqmlmeshes.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
copyqmlmeshes.CONFIG += no_link no_clean
copyqmlmeshes.variable_out = POST_TARGETDEPS
QMAKE_EXTRA_COMPILERS += copyqmlmeshes
} }