glfw: windows: correct opengl32/GLESv2 linkage

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-26 01:11:12 -07:00
parent 0be6c041bf
commit 73bf107907

View file

@ -177,10 +177,11 @@ fn linkGLFW(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void
.windows => { .windows => {
step.linkSystemLibrary("gdi32"); step.linkSystemLibrary("gdi32");
if (options.opengl) { if (options.opengl) {
step.linkFramework("opengl32"); step.linkSystemLibrary("opengl32");
} }
if (options.gles) { if (options.gles) {
step.linkFramework("GLESv2"); // TODO(slimsag): does anyone want GLESv1/GLESv3 options?
step.linkSystemLibrary("GLESv2");
} }
}, },
.macos => { .macos => {