From ece9cc31854c0eab7b3073fd9ee1e109bf283f92 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sun, 23 Jul 2017 20:37:44 +0200 Subject: cmake/MSYS2: install only required library translations Exclude translations for which Inkscape does not provide a transltation --- CMakeScripts/InstallMSYS2.cmake | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'CMakeScripts/InstallMSYS2.cmake') diff --git a/CMakeScripts/InstallMSYS2.cmake b/CMakeScripts/InstallMSYS2.cmake index 3bad4b839..5ad3b9d3e 100644 --- a/CMakeScripts/InstallMSYS2.cmake +++ b/CMakeScripts/InstallMSYS2.cmake @@ -143,12 +143,16 @@ if(WIN32) DESTINATION share/icons) # translations for libraries (we usually shouldn't need many) - install(DIRECTORY ${MINGW_PATH}/share/locale - DESTINATION share - FILES_MATCHING - PATTERN "*glib20.mo" - PATTERN "*gtk30.mo" - PATTERN "*gtkspell3.mo") + file(GLOB inkscape_translations RELATIVE ${CMAKE_SOURCE_DIR}/po/ ${CMAKE_SOURCE_DIR}/po/*.po) + foreach(translation ${inkscape_translations}) + get_filename_component(translation ${translation} NAME_WE) + install(DIRECTORY ${MINGW_PATH}/share/locale/${translation} + DESTINATION share/locale + FILES_MATCHING + PATTERN "*glib20.mo" + PATTERN "*gtk30.mo" + PATTERN "*gtkspell3.mo") + endforeach() install(DIRECTORY ${MINGW_PATH}/share/poppler DESTINATION share) -- cgit v1.2.3