glfw:build: undepend to X and OpenGL libs
This commit is contained in:
parent
6de027bb40
commit
15463ed05a
1 changed files with 0 additions and 14 deletions
14
build.zig
14
build.zig
|
@ -194,20 +194,6 @@ fn linkGLFWDependencies(b: *Builder, step: *std.build.LibExeObjStep, options: Op
|
|||
if (options.wayland) {
|
||||
step.defineCMacro("WL_MARSHAL_FLAG_DESTROY", null);
|
||||
}
|
||||
if (options.x11) {
|
||||
step.linkSystemLibraryName("X11");
|
||||
step.linkSystemLibraryName("xcb");
|
||||
step.linkSystemLibraryName("Xau");
|
||||
step.linkSystemLibraryName("Xdmcp");
|
||||
}
|
||||
// Note: no need to link against vulkan, GLFW finds it dynamically at runtime.
|
||||
// https://www.glfw.org/docs/3.3/vulkan_guide.html#vulkan_loader
|
||||
if (options.opengl) {
|
||||
step.linkSystemLibraryName("GL");
|
||||
}
|
||||
if (options.gles) {
|
||||
step.linkSystemLibraryName("GLESv3");
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue