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:
parent
646560c834
commit
16c581b2ab
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue