Skip to content

wgl: Allow building libgallium_wgl as a static library.

Rémi Bernon requested to merge rbernon/mesa:static-gallium-wgl into main

wgl: Allow building libgallium_wgl as a static library.

This is convenient when building zink as opengl32.dll, as it can then be used as a drop-in replacement for Wine builtin opengl32.dll without requiring an extra DLL alongside it.


Alternatively this could use meson both_libraries, then use get_shared_lib() / get_static_lib() based on the option but I couldn't find a good way enable build by default and install by default only for one of the flavor. If it's not an issue to build and install both shared and static libraries all the time, we could use that instead.

Merge request reports