aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/styles/styles.pro
blob: 2ef8e5867befbcb2dd5204f7749520e5b8c3baa2 (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
47
48
49
50
51
52
TEMPLATE = lib
TARGET = qtvirtualkeyboardstylesplugin
android-no-sdk {
    INSTALL_PATH = /system/qml/QtQuick/Enterprise/VirtualKeyboard/Styles
} else:!isEmpty(CROSS_COMPILE) {
    INSTALL_PATH = /usr/local/Qt-$$[QT_VERSION]/qml/QtQuick/Enterprise/VirtualKeyboard/Styles
} else {
    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