aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/styles/styles.pro
blob: 76972e8754678a543ab32e9164e1f8c800287677 (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
45
46
TEMPLATE = lib
TARGET = qtvirtualkeyboardstylesplugin
INSTALL_PATH = $$[QT_INSTALL_QML]/QtQuick/Enterprise/VirtualKeyboard/Styles
QT += qml quick
CONFIG += plugin

target.path = $$INSTALL_PATH
INSTALLS += target

qtquickcompiler {
    TARGETPATH = QtQuick/Enterprise/VirtualKeyboard/Styles
    DEFINES += COMPILING_QML
    DEFINES += STYLES_IMPORT_PATH=\\\"qrc:/\\\"
} else {
    DEFINES += STYLES_IMPORT_PATH=\\\"file://$$INSTALL_PATH/\\\"
}

SOURCES += \
    styles_plugin.cpp

HEADERS += \
    styles_plugin.h

QML_FILES += \
    qmldir \
    KeyboardStyle.qml \
    KeyPanel.qml \
    KeyIcon.qml \
    SelectionListItem.qml

qtquickcompiler {
    # generate qrc file, this should work out-of-box with later releases of qtquickcompiler
    include(../generateresource.prf)
    RESOURCES += $$generate_resource(styles.qrc, $$QML_FILES)
}

OTHER_FILES += \
    plugins.qmltypes

qtquickcompiler {
    other.files = $$OTHER_FILES qmldir
} else {
    other.files = $$OTHER_FILES $$QML_FILES
}
other.path = $$INSTALL_PATH
INSTALLS += other