Skip to content

GTK+ 4: Improve Windows/Visual Studio build experience

Chun-wei Fan requested to merge wip/fanc999/meson.msvc into master

Hi,

For GTK+ master, there are currently three issues that needs to be addressed to make things work better on Windows builds, one of which applies to all Windows builds and the other two are specific to Visual Studio builds.

The one that applies to all Windows builds is that we need to compile the version resource, so that we get the version info for the built GTK+ DLL, and also enable a more modern/better looking print dialog as we need to embed a manifest file as well.

The second one is to override _GLIB_EXTERN on Visual Studio builds when we build the code in modules/media so that the required GIO module functions can be exported on Visual Studio builds, which is required for the GIO modules to be loaded successfully.

The final one is to add a .bat version of the post install script for Visual Studio builds so that the installation of the phase can be properly done on Visual Studio builds, which does not normally have a shell script interpreter installed, but uses the standard Windows cmd.exe console for the build.

With blessings, thank you!

Edited by Chun-wei Fan

Merge request reports