Add x11 build tag
This commit is contained in:
parent
00f5f785e6
commit
c3665eb9ab
2 changed files with 5 additions and 1 deletions
|
@ -61,6 +61,7 @@ It is also possible build the dll yourself. You can find more infos at [raylib's
|
|||
* `opengl11` - uses OpenGL 1.1 backend (pseudo OpenGL 1.1 style)
|
||||
* `es2` - uses OpenGL ES 2.0 backend (can be used to link against [Google's ANGLE](https://github.com/google/angle))
|
||||
* `es3` - experimental support for OpenGL ES 3.0
|
||||
* `x11` - force X11 compatibility mode on Wayland
|
||||
|
||||
### Documentation
|
||||
|
||||
|
|
|
@ -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