wgl: Remove opengl32.mingw.def.
authorJose Fonseca <jfonseca@vmware.com>
Wed, 12 May 2021 12:29:45 +0000 (13:29 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 13 May 2021 13:18:16 +0000 (13:18 +0000)
commit6bb7d3bbc058e28d7131f738a7874996498ba090
tree0ce9f8c8906f2d734277fb8adf37a70914056d66
parent4791738d1d0b0debdc86b51e402757350026621f
wgl: Remove opengl32.mingw.def.

MinGW DEF parsing is even more broken than before, and 32-bits import
libs are broken regardless one uses opengl32.mingw.def or opengl32.def.

This change removes opengl32.mingw.def and addresses the issue differently:

- link opengl32.dll with --enable-stdcall-fixup

- use the systems opengl32 import lib (libopengl32.a/opengl32.lib)
  instead of our own

This change also gets test_wgl built with MinGW (even if it's never tested),
which I used to verify this; and to not link against internal libraries.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
v2: Revert back to shared_library.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10767>
src/gallium/frontends/wgl/opengl32.mingw.def [deleted file]
src/gallium/targets/libgl-gdi/meson.build