summaryrefslogtreecommitdiffstats
path: root/libcommuni/src/imports/qml2/qml2.pro
blob: 7a39b94355a7dda4d044de8cd8e1688221aa91ca (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
######################################################################
# Communi
######################################################################

TARGET = communiplugin
QT = core network qml
TARGETPATH = Communi
DESTDIR = ../../../qml/$$TARGETPATH

SOURCES += plugin.cpp
OTHER_FILES += qmldir plugins.qmltypes

isEmpty(IRC_INSTALL_QML):IRC_INSTALL_QML = $$[QT_INSTALL_QML]

!no_install_qml {
    target.path = $$IRC_INSTALL_QML/$$TARGETPATH
    INSTALLS += target

    other_files.files = $$OTHER_FILES
    other_files.path = $$IRC_INSTALL_QML/$$TARGETPATH
    INSTALLS += other_files
}

for(other_file, OTHER_FILES) {
    ARGUMENTS = $${PWD}$${QMAKE_DIR_SEP}$$other_file $$DESTDIR
    !isEmpty(QMAKE_POST_LINK):QMAKE_POST_LINK += &&
    QMAKE_POST_LINK += $$QMAKE_COPY $$replace(ARGUMENTS, /, $$QMAKE_DIR_SEP)
}

include(../imports.pri)