1# This file is an interim measure until deployment becomes more clear for 2# the Qt5 SDK and Qt3D. Read this file in conjunction with the logic in 3# qmlres.cpp. Once Qt5 is stable and deployment is clear this will be 4# removed. Also check the README file. 5 6# package the binary wrapper that launches the QML 7testcase|qmltestcase: \ 8 target.path = $$[QT_INSTALL_TESTS]/$$TARGET 9else: \ 10 target.path = $$[QT_INSTALL_EXAMPLES]/qt3d 11INSTALLS += target 12 13macx: \ 14 resource_dir = $${TARGET}.app/Contents/Resources 15else: \ 16 resource_dir = resources/$$CATEGORY/$${TARGET} 17 18DESTDIR = $$shadowed($$PWD)/bin 19 20# The QML_INFRA_FILES and QML_MESHES_FILES are both about QML based 21# applications, so we'll install them into QT_INSTALL_DATA instead of 22# QT_INSTALL_BINS 23# QML_INFRA_FILES is used by our quick3d demos and examples to indicate files 24# that are part of the application and should be installed (e.g. qml files, 25# images, meshes etc). 26# This conditional serves two purposes: 27# 1) Set up a qmake extra compiler to copy relevant QML files at build time 28# to allow for a normal "change, make, test" developement cycle 29# 2) Set up appropriate install paths on the same files to use "make install" 30# for building packages 31!isEmpty(QML_INFRA_FILES) { 32 33 # rules to copy files from the *base level* of $$PWD/qml into the right place 34 copyqmlinfra_install.files = $$QML_INFRA_FILES 35 copyqmlinfra_install.path = $$target.path/$$resource_dir/qml 36 INSTALLS += copyqmlinfra_install 37 38 # put all our demos/examples and supporting files into $BUILD_DIR/bin 39 copyqmlinfra.files = $$QML_INFRA_FILES 40 copyqmlinfra.path = $$DESTDIR/$$resource_dir/qml 41 COPIES += copyqmlinfra 42} 43 44!isEmpty(QML_MESHES_FILES) { 45 46 # rules to copy files from the *base level* of $$PWD/qml/meshes into the right place 47 copyqmlmeshes_install.files = $$QML_MESHES_FILES 48 copyqmlmeshes_install.path = $$target.path/$$resource_dir/qml/meshes 49 INSTALLS += copyqmlmeshes_install 50 51 copyqmlmeshes.files = $$QML_MESHES_FILES 52 copyqmlmeshes.path = $$DESTDIR/$$resource_dir/qml/meshes 53 COPIES += copyqmlmeshes 54} 55