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