blob: b17ab54596bcc0c34f068aaea70fdb43834b4deb (
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
|
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
#####################################################################
## QtQuickVirtualKeyboardHunspellPlugin Plugin:
#####################################################################
qt_internal_add_qml_module(HunspellInputMethod
URI "QtQuick.VirtualKeyboard.Plugins.Hunspell"
VERSION "${PROJECT_VERSION}"
PAST_MAJOR_VERSIONS 2
PLUGIN_TARGET qtvkbhunspellplugin
NO_PLUGIN_OPTIONAL
DEPENDENCIES
QtQuick.VirtualKeyboard/auto
SOURCES
hunspellinputmethod.cpp hunspellinputmethod_p.cpp hunspellinputmethod_p.h
hunspellinputmethod_p_p.h
hunspellworker.cpp hunspellworker_p.h
hunspellwordlist.cpp hunspellwordlist_p.h
qhunspellinputmethod_global.h
DEFINES
QHUNSPELLINPUTMETHOD_LIBRARY
QT_ASCII_CAST_WARNINGS
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_FROM_BYTEARRAY
QT_NO_CAST_TO_ASCII
LIBRARIES
Qt::Core
Qt::Gui
PUBLIC_LIBRARIES
Qt::VirtualKeyboardPrivate
)
qt_internal_extend_target(HunspellInputMethod CONDITION QT_FEATURE_system_hunspell
LIBRARIES
Hunspell::Hunspell
)
qt_internal_extend_target(HunspellInputMethod CONDITION NOT QT_FEATURE_system_hunspell AND QT_FEATURE_3rdparty_hunspell
LIBRARIES
Qt::BundledHunspell
)
if(QT_FEATURE_3rdparty_hunspell)
qt_copy_or_install(
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/hunspell/data/"
DESTINATION "${VKB_INSTALL_DATA}/hunspell"
FILES_MATCHING
PATTERN "*.dic"
PATTERN "*.aff"
)
endif()
|