aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lipi-toolkit/plugin/plugin.pro
blob: 3364bdd2c45087e2cac2690b67e7b4e4313e0b06 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
TARGET = qtvirtualkeyboard_lipi
CONFIG += exceptions
QT += qml virtualkeyboard-private

HEADERS += \
    lipiinputmethod_p.h \
    lipiplugin.h \
    lipisharedrecognizer_p.h \
    lipiworker_p.h
SOURCES += \
    lipiinputmethod.cpp \
    lipiplugin.cpp \
    lipisharedrecognizer.cpp \
    lipiworker.cpp
OTHER_FILES += \
    lipi.json

DEFINES += \
    QT_NO_CAST_TO_ASCII \
    QT_ASCII_CAST_WARNINGS \
    QT_NO_CAST_FROM_ASCII \
    QT_NO_CAST_FROM_BYTEARRAY

include(../../../config.pri)

INCLUDEPATH += \
    ../3rdparty/lipi-toolkit/src/include \
    ../3rdparty/lipi-toolkit/src/util/lib
LIBS += -L$$[QT_HOST_LIBS] \
    -lshaperecommon$$qtPlatformTargetSuffix() \
    -lltkcommon$$qtPlatformTargetSuffix() \
    -lltkutil$$qtPlatformTargetSuffix()
win32: LIBS += Advapi32.lib
else: QMAKE_USE += libdl
ltk_projects.files = $$PWD/../3rdparty/lipi-toolkit/projects
ltk_projects.path = $$VIRTUALKEYBOARD_INSTALL_DATA/lipi_toolkit
INSTALLS += ltk_projects
!prefix_build: COPIES += ltk_projects

!disable-hunspell {
    QT += hunspellinputmethod-private
}

LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/fallback/handwriting.qml
contains(CONFIG, lang-en(_GB)?): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_GB/handwriting.fallback
contains(CONFIG, lang-en(_US)?): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_US/handwriting.fallback
contains(CONFIG, lang-id.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/id_ID/handwriting.fallback
contains(CONFIG, lang-ms.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/ms_MY/handwriting.fallback
contains(CONFIG, lang-nl.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/nl_NL/handwriting.fallback

OTHER_FILES += \
    $$LAYOUT_FILES

!isEmpty(LAYOUT_FILES) {
    virtualkeyboard_ltk_layouts.files = $$LAYOUT_FILES
    virtualkeyboard_ltk_layouts.base = $$LAYOUTS_BASE
    virtualkeyboard_ltk_layouts.prefix = $$LAYOUTS_PREFIX
    RESOURCES += virtualkeyboard_ltk_layouts
}

win32 {
    QMAKE_TARGET_PRODUCT = "Qt Virtual Keyboard Lipi-Toolkit (Qt $$QT_VERSION)"
    QMAKE_TARGET_DESCRIPTION = "Virtual Keyboard Extension for Qt."
}

PLUGIN_TYPE = virtualkeyboard
PLUGIN_CLASS_NAME = QtVirtualKeyboardLipiPlugin
load(qt_plugin)