1TEMPLATE = lib
2TARGET = myplugin
3QT += declarative
4CONFIG += qt plugin
5
6TARGET = $$qtLibraryTarget($$TARGET)
7uri = qquick1
8
9# Input
10SOURCES += \
11    myplugin.cpp \
12    mytype.cpp
13
14HEADERS += \
15    myplugin.h \
16    mytype.h
17
18DISTFILES = qmldir
19
20!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
21    copy_qmldir.target = $$OUT_PWD/qmldir
22    copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
23    copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
24    QMAKE_EXTRA_TARGETS += copy_qmldir
25    PRE_TARGETDEPS += $$copy_qmldir.target
26}
27