aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/debugger/qquick2/myplugin/myplugin.pro
blob: 5b8c5d1510477753926a9326c561445b31c60845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
TEMPLATE = lib
TARGET = myplugin
QT += qml
CONFIG += qt plugin

TARGET = $$qtLibraryTarget($$TARGET)
uri = qquick1

# Input
SOURCES += \
    myplugin.cpp \
    mytype.cpp

HEADERS += \
    myplugin.h \
    mytype.h

OTHER_FILES = 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
}