From d3c760ca97323625ad78234ae76521096b6008ed Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 8 Apr 2017 12:41:15 +0200 Subject: cmake/MSYS2: Spell checking via gtkspell now working * the Aspell backend for Enchant was missing (now available [1]) * actually install the backend * install translations required by gtkspell Also re-enable installation of gtk3 translations after r15583 as we still need them in the context menu of native gtk inputs [1] https://github.com/Alexpux/MINGW-packages/pull/2369 (bzr r15618) --- CMakeScripts/InstallMSYS2.cmake | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'CMakeScripts') diff --git a/CMakeScripts/InstallMSYS2.cmake b/CMakeScripts/InstallMSYS2.cmake index 87867ff73..bff09cabf 100644 --- a/CMakeScripts/InstallMSYS2.cmake +++ b/CMakeScripts/InstallMSYS2.cmake @@ -167,6 +167,13 @@ if(WIN32) install(DIRECTORY ${MINGW_PATH}/share/icons/Adwaita DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons) + # translations for libraries (we usually shouldn't need many) + install(DIRECTORY ${MINGW_PATH}/share/locale + DESTINATION ${CMAKE_INSTALL_PREFIX}/share + FILES_MATCHING + PATTERN "*gtk30.mo" + PATTERN "*gtkspell3.mo") + install(DIRECTORY ${MINGW_PATH}/share/poppler DESTINATION ${CMAKE_INSTALL_PREFIX}/share) @@ -196,6 +203,11 @@ if(WIN32) install(DIRECTORY ${MINGW_LIB}/aspell-0.60 DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) + # Aspell backend for Enchant (gtkspell uses Enchant to access Aspell dictionaries) + install(FILES + ${MINGW_LIB}/enchant/libenchant_aspell.dll + DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/enchant) + # Necessary to run extensions on windows if it is not in the path if (HAVE_MINGW64) install(FILES -- cgit v1.2.3