glfw:build: undepend to X and OpenGL libs

This commit is contained in:
Ali Chraghi 2022-08-27 22:16:27 +04:30 committed by Stephen Gutekanst
parent 6de027bb40
commit 15463ed05a

View file

@ -194,20 +194,6 @@ fn linkGLFWDependencies(b: *Builder, step: *std.build.LibExeObjStep, options: Op
if (options.wayland) { if (options.wayland) {
step.defineCMacro("WL_MARSHAL_FLAG_DESTROY", null); 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");
}
}, },
} }
} }