glfw: windows: correct opengl32/GLESv2 linkage
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0be6c041bf
commit
73bf107907
1 changed files with 3 additions and 2 deletions
|
|
@ -177,10 +177,11 @@ fn linkGLFW(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void
|
|||
.windows => {
|
||||
step.linkSystemLibrary("gdi32");
|
||||
if (options.opengl) {
|
||||
step.linkFramework("opengl32");
|
||||
step.linkSystemLibrary("opengl32");
|
||||
}
|
||||
if (options.gles) {
|
||||
step.linkFramework("GLESv2");
|
||||
// TODO(slimsag): does anyone want GLESv1/GLESv3 options?
|
||||
step.linkSystemLibrary("GLESv2");
|
||||
}
|
||||
},
|
||||
.macos => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue