Add support for SDL3

This commit is contained in:
Milan Nikolic 2024-12-03 09:06:39 +01:00
parent 5df9325f63
commit ea071de5c2
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
21 changed files with 88 additions and 50 deletions

View file

@ -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