Add x11 build tag

This commit is contained in:
Milan Nikolic 2024-02-27 12:46:48 +01:00
parent 00f5f785e6
commit c3665eb9ab
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
2 changed files with 5 additions and 1 deletions

View file

@ -34,9 +34,12 @@ GLFWbool _glfwConnectNull(int platformID, _GLFWplatform* platform) {
return GLFW_TRUE;
}
#cgo linux CFLAGS: -Iexternal/glfw/include -DPLATFORM_DESKTOP -D_GLFW_WAYLAND -D_GLFW_X11 -Wno-stringop-overflow
#cgo linux CFLAGS: -Iexternal/glfw/include -DPLATFORM_DESKTOP -Wno-stringop-overflow
#cgo linux LDFLAGS: -lm -pthread -ldl -lrt -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon
#cgo linux,x11 CFLAGS: -D_GLFW_X11
#cgo linux,!x11 CFLAGS: -D_GLFW_X11 -D_GLFW_WAYLAND
#cgo linux,!es2,!es3 LDFLAGS: -lGL
#cgo linux,opengl11,!es2,!es3 CFLAGS: -DGRAPHICS_API_OPENGL_11