Add support for SDL3
This commit is contained in:
parent
5df9325f63
commit
ea071de5c2
21 changed files with 88 additions and 50 deletions
|
@ -1,12 +1,19 @@
|
|||
//go:build linux && sdl && !rgfw && !drm && !android
|
||||
// +build linux,sdl,!rgfw,!drm,!android
|
||||
//go:build linux && (sdl || sdl3) && !rgfw && !drm && !android
|
||||
// +build linux
|
||||
// +build sdl sdl3
|
||||
// +build !rgfw
|
||||
// +build !drm
|
||||
// +build !android
|
||||
|
||||
package rl
|
||||
|
||||
/*
|
||||
#cgo linux,!es2 LDFLAGS: -lm
|
||||
#cgo linux CFLAGS: -DPLATFORM_DESKTOP_SDL -Wno-stringop-overflow
|
||||
#cgo linux pkg-config: sdl2
|
||||
#cgo linux CFLAGS: -Wno-stringop-overflow
|
||||
#cgo linux,sdl CFLAGS: -DPLATFORM_DESKTOP_SDL
|
||||
#cgo linux,sdl3 CFLAGS: -DPLATFORM_DESKTOP_SDL -DPLATFORM_DESKTOP_SDL3
|
||||
#cgo linux,sdl pkg-config: sdl2
|
||||
#cgo linux,sdl3 pkg-config: sdl3
|
||||
|
||||
#cgo linux,!es2,!es3 LDFLAGS: -lGL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue