2012-02-29 00:15:01 +00:00
|
|
|
# This file is an interim measure until deployment becomes more clear for
|
|
|
|
|
# the Qt5 SDK and Qt3D. Read this file in conjunction with the logic in
|
|
|
|
|
# qmlres.cpp. Once Qt5 is stable and deployment is clear this will be
|
|
|
|
|
# removed. Also check the README file.
|
|
|
|
|
|
2012-04-23 18:38:41 +00:00
|
|
|
# package the binary wrapper that launches the QML
|
2012-07-13 13:15:59 +00:00
|
|
|
testcase|qmltestcase: \
|
|
|
|
|
target.path = $$[QT_INSTALL_TESTS]/$$TARGET
|
|
|
|
|
else: \
|
|
|
|
|
target.path = $$[QT_INSTALL_EXAMPLES]/qt3d
|
2012-04-23 18:38:41 +00:00
|
|
|
INSTALLS += target
|
2012-02-29 00:15:01 +00:00
|
|
|
|
2012-04-23 18:38:41 +00:00
|
|
|
macx: \
|
|
|
|
|
resource_dir = $${TARGET}.app/Contents/Resources
|
|
|
|
|
else: \
|
|
|
|
|
resource_dir = resources/$$CATEGORY/$${TARGET}
|
2011-07-05 22:49:41 +00:00
|
|
|
|
2012-04-23 18:38:41 +00:00
|
|
|
DESTDIR = $$shadowed($$PWD)/bin
|
2011-07-18 06:44:46 +00:00
|
|
|
|
2012-02-29 00:15:01 +00:00
|
|
|
# The QML_INFRA_FILES and QML_MESHES_FILES are both about QML based
|
|
|
|
|
# applications, so we'll install them into QT_INSTALL_DATA instead of
|
|
|
|
|
# QT_INSTALL_BINS
|
|
|
|
|
# QML_INFRA_FILES is used by our quick3d demos and examples to indicate files
|
|
|
|
|
# that are part of the application and should be installed (e.g. qml files,
|
|
|
|
|
# images, meshes etc).
|
|
|
|
|
# This conditional serves two purposes:
|
|
|
|
|
# 1) Set up a qmake extra compiler to copy relevant QML files at build time
|
|
|
|
|
# to allow for a normal "change, make, test" developement cycle
|
|
|
|
|
# 2) Set up appropriate install paths on the same files to use "make install"
|
|
|
|
|
# for building packages
|
2011-12-21 04:45:00 +00:00
|
|
|
!isEmpty(QML_INFRA_FILES) {
|
2012-02-29 00:15:01 +00:00
|
|
|
|
2011-12-21 04:45:00 +00:00
|
|
|
# rules to copy files from the *base level* of $$PWD/qml into the right place
|
2012-04-23 18:38:41 +00:00
|
|
|
copyqmlinfra_install.files = $$QML_INFRA_FILES
|
|
|
|
|
copyqmlinfra_install.path = $$target.path/$$resource_dir/qml
|
|
|
|
|
INSTALLS += copyqmlinfra_install
|
|
|
|
|
|
|
|
|
|
# put all our demos/examples and supporting files into $BUILD_DIR/bin
|
2016-04-22 18:40:33 +00:00
|
|
|
copyqmlinfra.files = $$QML_INFRA_FILES
|
|
|
|
|
copyqmlinfra.path = $$DESTDIR/$$resource_dir/qml
|
|
|
|
|
COPIES += copyqmlinfra
|
2011-07-18 06:44:46 +00:00
|
|
|
}
|
|
|
|
|
|
2011-12-21 04:45:00 +00:00
|
|
|
!isEmpty(QML_MESHES_FILES) {
|
2012-04-23 18:38:41 +00:00
|
|
|
|
2011-12-21 04:45:00 +00:00
|
|
|
# rules to copy files from the *base level* of $$PWD/qml/meshes into the right place
|
2012-04-23 18:38:41 +00:00
|
|
|
copyqmlmeshes_install.files = $$QML_MESHES_FILES
|
|
|
|
|
copyqmlmeshes_install.path = $$target.path/$$resource_dir/qml/meshes
|
|
|
|
|
INSTALLS += copyqmlmeshes_install
|
|
|
|
|
|
2016-04-22 18:40:33 +00:00
|
|
|
copyqmlmeshes.files = $$QML_MESHES_FILES
|
|
|
|
|
copyqmlmeshes.path = $$DESTDIR/$$resource_dir/qml/meshes
|
|
|
|
|
COPIES += copyqmlmeshes
|
2011-07-05 22:49:41 +00:00
|
|
|
}
|