summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/InstallMSYS2.cmake
diff options
context:
space:
mode:
authorJan Winkler <enceladus@posteo.de>2019-06-13 13:51:39 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-06-18 17:50:20 +0000
commit0b5a03d7ea9cfaf93ca38a2a71fd190c241bcb26 (patch)
treea7690f3ea0ab6d40334f1e95b82526b76eb50b6d /CMakeScripts/InstallMSYS2.cmake
parentAttem to fix theming in AppImage. Part 2 (diff)
downloadinkscape-0b5a03d7ea9cfaf93ca38a2a71fd190c241bcb26.tar.gz
inkscape-0b5a03d7ea9cfaf93ca38a2a71fd190c241bcb26.zip
CMake/MSYS2: Add PyGObject to distribution
Allows extension authors to use gtk stack in Python via GObject introspection See https://gitlab.com/inkscape/extensions/issues/85
Diffstat (limited to '')
-rw-r--r--CMakeScripts/InstallMSYS2.cmake19
1 files changed, 18 insertions, 1 deletions
diff --git a/CMakeScripts/InstallMSYS2.cmake b/CMakeScripts/InstallMSYS2.cmake
index ba3ec6309..4466a85a0 100644
--- a/CMakeScripts/InstallMSYS2.cmake
+++ b/CMakeScripts/InstallMSYS2.cmake
@@ -51,6 +51,7 @@ if(WIN32)
${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
@@ -203,6 +204,22 @@ if(WIN32)
PATTERN "*.dll"
PATTERN "*.cache")
+ # Typelibs for gtk, pango, cairo -> can be used in Python extensions
+ # ToDo: Automate the creation of this collection!
+ install (FILES
+ ${MINGW_LIB}/girepository-1.0/Atk-1.0.typelib
+ ${MINGW_LIB}/girepository-1.0/cairo-1.0.typelib
+ ${MINGW_LIB}/girepository-1.0/Gdk-3.0.typelib
+ ${MINGW_LIB}/girepository-1.0/GdkPixbuf-2.0.typelib
+ ${MINGW_LIB}/girepository-1.0/Gio-2.0.typelib
+ ${MINGW_LIB}/girepository-1.0/GLib-2.0.typelib
+ ${MINGW_LIB}/girepository-1.0/GModule-2.0.typelib
+ ${MINGW_LIB}/girepository-1.0/GObject-2.0.typelib
+ ${MINGW_LIB}/girepository-1.0/Gtk-3.0.typelib
+ ${MINGW_LIB}/girepository-1.0/Pango-1.0.typelib
+ ${MINGW_LIB}/girepository-1.0/PangoCairo-1.0.typelib
+ DESTINATION lib/girepository-1.0)
+
# Aspell dictionaries
install(DIRECTORY ${MINGW_LIB}/aspell-0.60
DESTINATION lib)
@@ -252,7 +269,7 @@ if(WIN32)
set(site_packages "lib/python3.7/site-packages")
# Python packages installed via pacman
- set(packages "python3-lxml" "python3-numpy" "python3-pillow" "python3-six")
+ set(packages "python3-lxml" "python3-numpy" "python3-pillow" "python3-six" "python3-cairo" "python3-gobject")
foreach(package ${packages})
list_files_pacman(${package} paths)
install_list(FILES ${paths}