if(WIN32) install(FILES NEWS.md README.md DESTINATION .) # mingw-w64 dlls # (use msys2checkdeps.py to list required libraries / check for missing or unused libraries) file(GLOB MINGW_LIBS ${MINGW_BIN}/LIBEAY32.dll ${MINGW_BIN}/SSLEAY32.dll ${MINGW_BIN}/imagequant.dll ${MINGW_BIN}/libLerc.dll ${MINGW_BIN}/libaom.dll ${MINGW_BIN}/libaspell-[0-9]*.dll ${MINGW_BIN}/libatk-1.0-[0-9]*.dll ${MINGW_BIN}/libatkmm-1.6-[0-9]*.dll ${MINGW_BIN}/libboost_filesystem-mt.dll ${MINGW_BIN}/libbrotlicommon.dll ${MINGW_BIN}/libbrotlidec.dll ${MINGW_BIN}/libbz2-[0-9]*.dll ${MINGW_BIN}/libcairo-[0-9]*.dll ${MINGW_BIN}/libcairo-gobject-[0-9]*.dll ${MINGW_BIN}/libcairomm-1.0-[0-9]*.dll ${MINGW_BIN}/libcdr-0.[0-9]*.dll ${MINGW_BIN}/libcrypto-1_[0-9]*.dll ${MINGW_BIN}/libcurl-[0-9]*.dll ${MINGW_BIN}/libdatrie-[0-9]*.dll ${MINGW_BIN}/libdav1d.dll ${MINGW_BIN}/libde265-[0-9]*.dll ${MINGW_BIN}/libdeflate.dll ${MINGW_BIN}/libdouble-conversion.dll ${MINGW_BIN}/libenchant-[0-9]*.dll ${MINGW_BIN}/libepoxy-[0-9]*.dll ${MINGW_BIN}/libexpat-[0-9]*.dll ${MINGW_BIN}/libexslt-[0-9]*.dll ${MINGW_BIN}/libffi-[0-9]*.dll ${MINGW_BIN}/libfftw3-[0-9]*.dll ${MINGW_BIN}/libfontconfig-[0-9]*.dll ${MINGW_BIN}/libfreetype-[0-9]*.dll ${MINGW_BIN}/libfribidi-[0-9]*.dll ${MINGW_BIN}/libgc-[0-9]*.dll ${MINGW_BIN}/libgdk-3-[0-9]*.dll ${MINGW_BIN}/libgdk_pixbuf-2.0-[0-9]*.dll ${MINGW_BIN}/libgdkmm-3.0-[0-9]*.dll ${MINGW_BIN}/libgfortran-[0-9]*.dll ${MINGW_BIN}/libgio-2.0-[0-9]*.dll ${MINGW_BIN}/libgiomm-2.4-[0-9]*.dll ${MINGW_BIN}/libgirepository-1.0-[0-9].dll ${MINGW_BIN}/libglib-2.0-[0-9]*.dll ${MINGW_BIN}/libglibmm-2.4-[0-9]*.dll ${MINGW_BIN}/libgmodule-2.0-[0-9]*.dll ${MINGW_BIN}/libgobject-2.0-[0-9]*.dll ${MINGW_BIN}/libgomp-[0-9]*.dll ${MINGW_BIN}/libgraphite[0-9]*.dll ${MINGW_BIN}/libgsl-[0-9]*.dll ${MINGW_BIN}/libgslcblas-[0-9]*.dll ${MINGW_BIN}/libgspell-1-[0-9]*.dll ${MINGW_BIN}/libgtk-3-[0-9]*.dll ${MINGW_BIN}/libgtkmm-3.0-[0-9]*.dll ${MINGW_BIN}/libharfbuzz-[0-9]*.dll ${MINGW_BIN}/libheif.dll ${MINGW_BIN}/libiconv-[0-9]*.dll ${MINGW_BIN}/libicudt[0-9]*.dll ${MINGW_BIN}/libicuin[0-9]*.dll ${MINGW_BIN}/libicuuc[0-9]*.dll ${MINGW_BIN}/libidn2-[0-9]*.dll ${MINGW_BIN}/libintl-[0-9]*.dll ${MINGW_BIN}/libjbig-[0-9]*.dll ${MINGW_BIN}/libjpeg-[0-9]*.dll ${MINGW_BIN}/liblcms2-[0-9]*.dll ${MINGW_BIN}/liblqr-1-[0-9]*.dll ${MINGW_BIN}/liblzma-[0-9]*.dll ${MINGW_BIN}/libmpdec-[0-9]*.dll ${MINGW_BIN}/libncursesw6.dll ${MINGW_BIN}/libnghttp2-[0-9]*.dll ${MINGW_BIN}/libnspr[0-9]*.dll ${MINGW_BIN}/libopenblas.dll ${MINGW_BIN}/libopenjp2-[0-9]*.dll ${MINGW_BIN}/libpanelw6.dll ${MINGW_BIN}/libpango-1.0-[0-9]*.dll ${MINGW_BIN}/libpangocairo-1.0-[0-9]*.dll ${MINGW_BIN}/libpangoft2-1.0-[0-9]*.dll ${MINGW_BIN}/libpangomm-1.4-[0-9]*.dll ${MINGW_BIN}/libpangowin32-1.0-[0-9]*.dll ${MINGW_BIN}/libpcre2-8-[0-9]*.dll ${MINGW_BIN}/libpixman-1-[0-9]*.dll ${MINGW_BIN}/libplc[0-9]*.dll ${MINGW_BIN}/libplds[0-9]*.dll ${MINGW_BIN}/libpng16-[0-9]*.dll ${MINGW_BIN}/libpoppler-[0-9]*.dll ${MINGW_BIN}/libpoppler-glib-[0-9]*.dll ${MINGW_BIN}/libpotrace-[0-9]*.dll ${MINGW_BIN}/libpsl-[0-9]*.dll ${MINGW_BIN}/libquadmath-[0-9]*.dll ${MINGW_BIN}/libraqm-[0-9]*.dll ${MINGW_BIN}/librevenge-0.[0-9]*.dll ${MINGW_BIN}/librevenge-stream-0.[0-9]*.dll ${MINGW_BIN}/librsvg-2-[0-9]*.dll ${MINGW_BIN}/libsigc-2.0-[0-9]*.dll ${MINGW_BIN}/libsoup-2.4-[0-9]*.dll ${MINGW_BIN}/libsqlite3-[0-9]*.dll ${MINGW_BIN}/libssh2-[0-9]*.dll ${MINGW_BIN}/libssl-1_[0-9]*.dll ${MINGW_BIN}/libstdc++-[0-9]*.dll ${MINGW_BIN}/libtermcap-[0-9]*.dll ${MINGW_BIN}/libthai-[0-9]*.dll ${MINGW_BIN}/libtiff-[0-9]*.dll ${MINGW_BIN}/libunistring-[0-9]*.dll ${MINGW_BIN}/libvisio-0.[0-9]*.dll ${MINGW_BIN}/libwebp-[0-9]*.dll ${MINGW_BIN}/libwebpdemux-[0-9]*.dll ${MINGW_BIN}/libwebpmux-[0-9]*.dll ${MINGW_BIN}/libwinpthread-[0-9]*.dll ${MINGW_BIN}/libwmf-0-2-[0-9]*.dll ${MINGW_BIN}/libwmflite-0-2-[0-9]*.dll ${MINGW_BIN}/libwpd-0.[0-9]*.dll ${MINGW_BIN}/libwpg-0.[0-9]*.dll ${MINGW_BIN}/libxml2-[0-9]*.dll ${MINGW_BIN}/libxslt-[0-9]*.dll ${MINGW_BIN}/libx265.dll ${MINGW_BIN}/libzstd.dll ${MINGW_BIN}/nss[0-9]*.dll ${MINGW_BIN}/nssutil[0-9]*.dll ${MINGW_BIN}/rav1e.dll ${MINGW_BIN}/smime[0-9]*.dll ${MINGW_BIN}/tcl[0-9]*.dll ${MINGW_BIN}/tk[0-9]*.dll ${MINGW_BIN}/zlib1.dll) INSTALL(FILES ${MINGW_LIBS} DESTINATION bin) # There are differences for 64-Bit and 32-Bit build environments. if(HAVE_MINGW64) install(FILES ${MINGW_BIN}/libgcc_s_seh-1.dll DESTINATION bin) else() install(FILES ${MINGW_BIN}/libgcc_s_dw2-1.dll DESTINATION bin) endif() # Install graphics-magick dlls if(WITH_GRAPHICS_MAGICK) install (DIRECTORY ${MINGW_LIB}/GraphicsMagick-1.3.38 DESTINATION lib FILES_MATCHING PATTERN "*.dll" PATTERN "*.la" PATTERN "filters" EXCLUDE) file(GLOB MAGICK_LIBS ${MINGW_BIN}/libGraphicsMagick[+-]*.dll ${MINGW_BIN}/libjasper.dll ${MINGW_BIN}/libjxl.dll ${MINGW_BIN}/libjxl_threads.dll ${MINGW_BIN}/libltdl-[0-9]*.dll ${MINGW_BIN}/libhwy.dll ${MINGW_BIN}/libbrotlienc.dll) install(FILES ${MAGICK_LIBS} DESTINATION bin) endif() if(WITH_IMAGE_MAGICK) file(GLOB MAGICK_LIBS ${MINGW_BIN}/libMagick*.dll) install(FILES ${MAGICK_LIBS} DESTINATION bin) endif() # Install hicolor/index.theme to avoid bug 1635207 install(FILES ${MINGW_PATH}/share/icons/hicolor/index.theme DESTINATION share/icons/hicolor) install(DIRECTORY ${MINGW_PATH}/share/icons/Adwaita DESTINATION share/icons) install(CODE "execute_process(COMMAND gtk-update-icon-cache \${CMAKE_INSTALL_PREFIX}/share/icons/Adwaita)") # translations for libraries (we usually shouldn't need many) get_inkscape_languages() foreach(language_code ${INKSCAPE_LANGUAGE_CODES}) string(MAKE_C_IDENTIFIER "${language_code}" language_code_escaped) install(DIRECTORY ${MINGW_PATH}/share/locale/${language_code} DESTINATION share/locale COMPONENT translations.${language_code_escaped} FILES_MATCHING PATTERN "*glib20.mo" PATTERN "*gtk30.mo" PATTERN "*gspell-1.mo") endforeach() install(DIRECTORY ${MINGW_PATH}/share/poppler DESTINATION share) install(DIRECTORY ${MINGW_PATH}/share/glib-2.0/schemas DESTINATION share/glib-2.0) # fontconfig install(DIRECTORY ${MINGW_PATH}/etc/fonts DESTINATION etc PATTERN "fonts.conf" EXCLUDE) install(FILES ${MINGW_PATH}/share/fontconfig/conf.avail/70-no-bitmaps.conf DESTINATION etc/fonts/conf.d) # adjust fonts.conf # - add "%localappdata%\Microsoft\Windows\Fonts" as font dir # which is the default path for fonts installed per-user in Windows 10 (version 1809) # - store font cache in non-temporary directory in "%localappdata%\fontconfig\cache" set(fontdir_default "\\t^