blob: c20f1185639ba5b92eb9a113537da609ec5f5cc0 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
include(src.pri)
TEMPLATE = lib
TARGET = qwebchannel
TARGETPATH = Qt/labs/WebChannel
QT += qml quick
CONFIG += qt plugin
TARGET = $$qtLibraryTarget($$TARGET)
# Input
SOURCES += qwebchannel_plugin.cpp
HEADERS += qwebchannel_plugin.h
RESOURCES += \
resources.qrc
OTHER_FILES = qmldir \
webchannel.js \
qobject.js \
MetaObjectPublisher.qml \
WebChannel.qml
target.path = $$[QT_INSTALL_QML]/$$TARGETPATH
# extra files that need to be deployed to $$TARGETPATH
DEPLOY_FILES = \
qmldir \
MetaObjectPublisher.qml \
WebChannel.qml
for(FILE, DEPLOY_FILES): qmldir.files += $$PWD/$$FILE
qmldir.path += $$[QT_INSTALL_QML]/$$TARGETPATH
INSTALLS += target qmldir
# ensure that plugin is put into the correct folder structure
DESTDIR = $$TARGETPATH
# copy files in order to run tests without calling make install first
for(FILE, DEPLOY_FILES) {
PRE_TARGETDEPS += $$PWD/$$FILE
QMAKE_POST_LINK += $$quote($$QMAKE_COPY \"$$PWD/$$FILE\" $$OUT_PWD/$$TARGETPATH$$escape_expand(\n\t))
}
|