Skip to content

gio, gmodule, gthread: compile windows resources only in shared build

This is a small fix for static builds on Windows. When linking static libraries, multiple resources is an error unless handled in a special way.

glib and gobject already conditionally include resources only when building a shared library, this patch just makes it so that we use the same behaviour on gio, gmodule, and gthread.

Pinging people listed as Windows codeowners: @lrn @creiter @fanc999 @pwithnall @sdroege @nirbheek @lb90

Thanks!

Merge request reports