glfw: fix x86_64-windows-msvc compilation support

This fixes compilation for msvc ABI. This currently only works under Windows,
I believe because Zig requires the Windows SDK to be present for msvc compilation
/ does not allow cross compilation with MSVC. Still, this is nice to have.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-04 15:41:00 -07:00
parent 646560c834
commit 16c581b2ab

View file

@ -111,6 +111,8 @@ fn linkGLFWDependencies(b: *Builder, step: *std.build.LibExeObjStep, options: Op
switch (target.os.tag) { switch (target.os.tag) {
.windows => { .windows => {
step.linkSystemLibrary("gdi32"); step.linkSystemLibrary("gdi32");
step.linkSystemLibrary("user32");
step.linkSystemLibrary("Shell32");
if (options.opengl) { if (options.opengl) {
step.linkSystemLibrary("opengl32"); step.linkSystemLibrary("opengl32");
} }