Add x11 build tag
This commit is contained in:
parent
00f5f785e6
commit
c3665eb9ab
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue