forked from qt-creator/qt-creator
Change-Id: I0e59219adeb5b3aa08a99da7c0bb657d793ba2e1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
35 lines
822 B
Prolog
35 lines
822 B
Prolog
TEMPLATE = lib
|
|
TARGET = %{ProjectName}
|
|
QT += qml quick
|
|
CONFIG += plugin c++11
|
|
|
|
TARGET = $$qtLibraryTarget($$TARGET)
|
|
uri = %{Uri}
|
|
|
|
# Input
|
|
SOURCES += \\
|
|
%{PluginSrc} \\
|
|
%{ObjectSrc}
|
|
|
|
HEADERS += \\
|
|
%{PluginHdr} \\
|
|
%{ObjectHdr}
|
|
|
|
DISTFILES = qmldir
|
|
|
|
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
|
|
copy_qmldir.target = $$OUT_PWD/qmldir
|
|
copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
|
|
copy_qmldir.commands = $(COPY_FILE) "$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)" "$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)"
|
|
QMAKE_EXTRA_TARGETS += copy_qmldir
|
|
PRE_TARGETDEPS += $$copy_qmldir.target
|
|
}
|
|
|
|
qmldir.files = qmldir
|
|
unix {
|
|
installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
|
|
qmldir.path = $$installPath
|
|
target.path = $$installPath
|
|
INSTALLS += target qmldir
|
|
}
|