2012-12-11 21:08:15 +00:00
|
|
|
#
|
|
|
|
# W A R N I N G
|
|
|
|
# -------------
|
|
|
|
#
|
|
|
|
# This file is not part of the Qt API. It exists purely as an
|
|
|
|
# implementation detail. It may change from version to version
|
|
|
|
# without notice, or even be removed.
|
|
|
|
#
|
|
|
|
# We mean it.
|
|
|
|
#
|
|
|
|
|
2012-08-06 18:39:49 +00:00
|
|
|
equals(TEMPLATE, app): TEMPLATE = aux
|
|
|
|
|
|
|
|
isEmpty(TARGETPATH): error("Must set TARGETPATH (QML import name)")
|
|
|
|
|
|
|
|
fq_qml_files = $$_PRO_FILE_PWD_/qmldir
|
|
|
|
|
|
|
|
for(qmlf, QML_FILES): fq_qml_files += $$absolute_path($$qmlf, $$_PRO_FILE_PWD_)
|
|
|
|
|
2012-10-26 13:26:34 +00:00
|
|
|
qml1_target: \
|
|
|
|
instbase = $$[QT_INSTALL_IMPORTS]
|
2012-10-15 20:23:13 +00:00
|
|
|
else: \
|
|
|
|
instbase = $$[QT_INSTALL_QML]
|
2012-10-26 13:26:34 +00:00
|
|
|
|
2012-08-06 18:39:49 +00:00
|
|
|
# Install rules
|
2012-08-06 20:27:26 +00:00
|
|
|
qmldir.base = $$_PRO_FILE_PWD_
|
2012-08-06 18:39:49 +00:00
|
|
|
qmldir.files = $$fq_qml_files
|
2012-10-26 13:26:34 +00:00
|
|
|
qmldir.path = $$instbase/$$TARGETPATH
|
2012-08-06 18:39:49 +00:00
|
|
|
INSTALLS += qmldir
|
2016-04-22 13:31:27 +00:00
|
|
|
|
|
|
|
!prefix_build: COPIES += qmldir
|