feat: spellcheck input (#6446)
Reviewed-by: Mm2PL <mm2pl+gh@kotmisia.pl> Reviewed-by: pajlada <rasmus.karlsson@pajlada.com> Reviewed-by: fourtf <tf.four@gmail.com>
This commit is contained in:
@@ -31,6 +31,7 @@ option(CHATTERINO_LTO "Enable LTO for all targets" OFF)
|
||||
option(CHATTERINO_PLUGINS "Enable ALPHA plugin support in Chatterino" ON)
|
||||
option(CHATTERINO_USE_GDI_FONTENGINE "Use the legacy GDI fontengine instead of the new DirectWrite one on Windows (Qt 6.8.0 and later)" ON)
|
||||
option(CHATTERINO_ALLOW_PRIVATE_QT_API "Allow uses of Qt's private API - when enabling this, Chatterino must use the EXACT Qt version it was compiled against" OFF)
|
||||
option(CHATTERINO_SPELLCHECK "Enable spellchecking in Chatterino (requires Hunspell)" OFF)
|
||||
|
||||
option(CHATTERINO_SANITIZER_SUPPORT "Attempt to enable Sanitizer support on the test and app targets. Actual sanitizers can then be enabled with the SANITIZE_* options." OFF)
|
||||
mark_as_advanced(CHATTERINO_SANITIZER_SUPPORT)
|
||||
@@ -151,6 +152,16 @@ find_package(OpenSSL REQUIRED)
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
if(CHATTERINO_SPELLCHECK)
|
||||
# Find from package manager
|
||||
find_package(hunspell QUIET CONFIG)
|
||||
if(NOT hunspell_FOUND)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(hunspell REQUIRED IMPORTED_TARGET hunspell)
|
||||
add_library(hunspell::hunspell ALIAS PkgConfig::hunspell)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_library(LIBRT rt)
|
||||
|
||||
if (USE_SYSTEM_LIBCOMMUNI)
|
||||
|
||||
Reference in New Issue
Block a user