aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qml/qmlextensionplugins/qmlextensionplugins.pro
blob: 40c2b396a33d9f71a274f6e4c07a2277f1cdb0e4 (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
TEMPLATE = lib
CONFIG += plugin qmltypes
QT += qml

QML_IMPORT_NAME = TimeExample
QML_IMPORT_MAJOR_VERSION = 1

DESTDIR = imports/$$QML_IMPORT_NAME
TARGET  = qmlqtimeexampleplugin

SOURCES += \
    plugin.cpp \
    timemodel.cpp

HEADERS += \
    timemodel.h

PLUGINFILES = \
    imports/$$QML_IMPORT_NAME/qmldir \
    imports/$$QML_IMPORT_NAME/center.png \
    imports/$$QML_IMPORT_NAME/clock.png \
    imports/$$QML_IMPORT_NAME/Clock.qml \
    imports/$$QML_IMPORT_NAME/hour.png \
    imports/$$QML_IMPORT_NAME/minute.png

pluginfiles.files += $$PLUGINFILES

qml.files = plugins.qml
qml.path += $$[QT_INSTALL_EXAMPLES]/qml/qmlextensionplugins
target.path += $$[QT_INSTALL_EXAMPLES]/qml/qmlextensionplugins/imports/$$QML_IMPORT_NAME
pluginfiles.path += $$[QT_INSTALL_EXAMPLES]/qml/qmlextensionplugins/imports/$$QML_IMPORT_NAME

INSTALLS += target qml pluginfiles

OTHER_FILES += $$PLUGINFILES plugins.qml

CONFIG += install_ok  # Do not cargo-cult this!