Remove unnecessary DLLs from Windows builds

This saves 21 MiB of MSYS2 libraries, without any adverse effects.

The MSYS2 build remains bloated, due to the Adwaita icon theme.
This commit is contained in:
2021-10-23 18:09:18 +02:00
parent 03ebaddff5
commit cbdb1cfaa6
2 changed files with 40 additions and 2 deletions

View File

@@ -244,8 +244,7 @@ elseif (WITH_GUI)
install (DIRECTORY
${WIN32_DEPENDS_PATH}/bin/
DESTINATION .
FILES_MATCHING PATTERN "*.dll"
PATTERN "libgettext*" EXCLUDE)
FILES_MATCHING PATTERN "*.dll")
install (DIRECTORY
${WIN32_DEPENDS_PATH}/etc/
DESTINATION etc)
@@ -263,6 +262,8 @@ elseif (WITH_GUI)
install (FILES
${WIN32_DEPENDS_PATH}/share/icons/hicolor/index.theme
DESTINATION share/icons/hicolor)
install (SCRIPT cmake/Win32Cleanup.cmake)
endif ()
# Do some unit tests