2010-03-19 13:52:16 +01:00
|
|
|
TEMPLATE = lib
|
2019-08-27 16:38:03 +02:00
|
|
|
TARGET = %{ProjectName}
|
2012-11-19 13:31:50 +01:00
|
|
|
QT += qml quick
|
2016-09-02 15:48:16 +02:00
|
|
|
CONFIG += plugin c++11
|
2010-03-19 13:52:16 +01:00
|
|
|
|
|
|
|
|
TARGET = $$qtLibraryTarget($$TARGET)
|
2019-08-27 16:38:03 +02:00
|
|
|
uri = %{Uri}
|
2010-03-19 13:52:16 +01:00
|
|
|
|
|
|
|
|
# Input
|
2019-08-27 16:38:03 +02:00
|
|
|
SOURCES += \\
|
|
|
|
|
%{PluginSrc} \\
|
|
|
|
|
%{ObjectSrc}
|
2010-03-19 13:52:16 +01:00
|
|
|
|
2019-08-27 16:38:03 +02:00
|
|
|
HEADERS += \\
|
|
|
|
|
%{PluginHdr} \\
|
|
|
|
|
%{ObjectHdr}
|
2010-09-28 11:55:30 +02:00
|
|
|
|
2014-08-06 15:07:33 +02:00
|
|
|
DISTFILES = qmldir
|
2010-09-28 12:49:48 +02:00
|
|
|
|
2010-11-08 15:14:39 +01:00
|
|
|
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
|
|
|
|
|
copy_qmldir.target = $$OUT_PWD/qmldir
|
|
|
|
|
copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
|
2019-08-27 16:38:03 +02:00
|
|
|
copy_qmldir.commands = $(COPY_FILE) "$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)" "$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)"
|
2010-11-08 15:14:39 +01:00
|
|
|
QMAKE_EXTRA_TARGETS += copy_qmldir
|
|
|
|
|
PRE_TARGETDEPS += $$copy_qmldir.target
|
|
|
|
|
}
|
2011-02-10 15:16:55 +01:00
|
|
|
|
|
|
|
|
qmldir.files = qmldir
|
2012-08-22 13:27:25 +02:00
|
|
|
unix {
|
2013-04-30 15:50:53 +02:00
|
|
|
installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
|
2011-02-10 15:16:55 +01:00
|
|
|
qmldir.path = $$installPath
|
|
|
|
|
target.path = $$installPath
|
|
|
|
|
INSTALLS += target qmldir
|
|
|
|
|
}
|