Skip to content

girepository: Fix static build under Windows

Kleis Auke Wolthuizen requested to merge kleisauke/glib:girepository-static into main

Properly define GI_STATIC_COMPILATION when static build is enabled.
Use library() instead of shared_library() to allow selecting static builds.

Note: this also helps WebAssembly, which currently lacks support for shared libraries.

Merge request reports