sdl3v3.4.20
- Updated
Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
- Project website: https://www.libsdl.org
#Usage
sdl3 provides CMake targets:
find_package(SDL3 CONFIG REQUIRED)
target_link_libraries(main PRIVATE SDL3::SDL3)#License
Zlib AND MIT AND Apache-2.0 AND BSD-3-Clause
#Features
Default features: alsa, dbus, liburing, pipewire, pulseaudio, udev, wayland, x11
#alsa
Support for alsa audio
Host Dependencies:
3 transitive dependencies:
- vcpkg-cmake (through vcpkg-cmake-get-vars)
- vcpkg-cmake-get-vars (through vcpkg-make)
- vcpkg-make (through alsa)
#dbus
Build with D-Bus support
Host Dependencies:
2 transitive dependencies:
- vcpkg-cmake (through expat)
- vcpkg-cmake-config (through expat)
#emscripten-pthreads
Build Emscripten pthreads support
Platforms: emscripten
- ❌
linux - ❌
osx - ❌
windows
Dependencies:
No dependencies.
Host Dependencies:
No dependencies.
#ibus
Build with ibus IME support
Platforms: linux
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
sdl3
Features:
dbus
Host Dependencies:
2 transitive dependencies:
- vcpkg-cmake (through expat)
- vcpkg-cmake-config (through expat)
#jack
Build with JACK audio support
Platforms: linux
- ✅linux
- ❌
osx - ❌
windows
Host Dependencies:
2 transitive dependencies:
- vcpkg-cmake (through jack2)
- vcpkg-cmake-config (through jack2)
#kmsdrm
Build with KMS/DRM video support (requires system libdrm and GBM development packages)
Platforms: linux
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
and 5 transitive dependencies:
- egl-registry (through angle)
- opengl (through egl)
- opengl-registry (through angle)
- zlib (through angle)
Host Dependencies:
3 transitive dependencies:
- vcpkg-cmake (through angle)
- vcpkg-cmake-config (through angle)
- vcpkg-get-python-packages (through angle)
#liburing
Build with io_uring asynchronous I/O support
Platforms: linux
- ✅linux
- ❌
osx - ❌
windows
Host Dependencies:
3 transitive dependencies:
- vcpkg-cmake (through vcpkg-cmake-get-vars)
- vcpkg-cmake-get-vars (through vcpkg-make)
- vcpkg-make (through liburing)
#libusb
Use libusb for joystick support
Host Dependencies:
7 transitive dependencies:
- pkgconf (through vcpkg-pkgconfig-get-modules)
- vcpkg-cmake (through vcpkg-cmake-get-vars)
- vcpkg-cmake-get-vars (through vcpkg-make)
vcpkg-make (through libusb)
Platforms:
!windows | mingwvcpkg-msbuild (through libusb)
Platforms:
windows & !mingw- vcpkg-pkgconfig-get-modules (through vcpkg-msbuild)
- vcpkg-tool-meson (through pkgconf)
#macos-keyboard-grab
Let SDL_SetWindowKeyboardGrab() capture system keyboard shortcuts on macOS (uses private API, so it is not suitable for sandboxed apps)
Platforms: osx
- ✅osx
- ❌
linux - ❌
windows
Dependencies:
No dependencies.
Host Dependencies:
No dependencies.
#pipewire
Build with PipeWire audio and camera support
Platforms: linux
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
Host Dependencies:
6 transitive dependencies:
- vcpkg-cmake (through vcpkg-cmake-get-vars)
- vcpkg-cmake-config (through pcre2)
vcpkg-cmake-get-vars (through libiconv)
Platforms:
android- vcpkg-make (through libiconv)
- vcpkg-tool-meson (through glib)
#pulseaudio
Build with PulseAudio support
Platforms: linux
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
pulseaudio
Features: (none)
and 21 transitive dependencies:
alsa (through pulseaudio)
Platforms:
linuxdbus (through pulseaudio)
Features: (none)
- dirent (through glib)
- expat (through dbus)
- fftw3 (through pulseaudio)
- gettext-libintl (through glib)
glib (through pulseaudio)
Features: (none)
- jack2 (through pulseaudio)
- libatomic-ops (through pulseaudio)
- libffi (through glib)
- libflac (through libsndfile)
libiconv (through gettext-libintl)
Platforms:
!linux- libogg (through libflac)
libsndfile (through pulseaudio)
Features:
external-libs- libvorbis (through libsndfile)
openssl (through pulseaudio)
Features: (none)
- opus (through libsndfile)
- soxr (through pulseaudio)
- speex (through pulseaudio)
- zlib (through glib)
Host Dependencies:
6 transitive dependencies:
- vcpkg-cmake (through vcpkg-cmake-get-vars)
- vcpkg-cmake-config (through expat)
- vcpkg-cmake-get-vars (through vcpkg-make)
- vcpkg-make (through alsa)
- vcpkg-tool-meson (through glib)
#sndio
Build with sndio audio support (requires system sndio development packages)
Platforms: linux
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
No dependencies.
Host Dependencies:
No dependencies.
#udev
Build with udev device discovery (requires system libudev development packages)
Platforms: linux
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
No dependencies.
Host Dependencies:
No dependencies.
#wayland
Build with Wayland support
Platforms: linux
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
and 24 transitive dependencies:
- bzip2 (through libx11)
- egl-registry (through angle)
- getopt (through libxkbcommon)
getopt-win32 (through getopt)
Platforms:
windows & !mingw- liblzma (through libxdmcp)
- libx11 (through libxkbcommon)
- libxau (through libxcb)
- libxcb (through libx11)
- libxdmcp (through libxcb)
- libxslt (through xproto)
- opengl (through egl)
- opengl-registry (through angle)
- pthread (through pthread-stubs)
- pthread-stubs (through libxcb)
- pthreads (through pthread)
- xcb-proto (through libxcb)
- xcb-render-util (through libxkbcommon)
- xcb-util-m4 (through libxcb)
- xorg-macros (through libxau)
- xproto (through libxau)
- xtrans (through libx11)
- zlib (through angle)
Host Dependencies:
7 transitive dependencies:
- libiconv (through libxml2)
- vcpkg-cmake (through angle)
- vcpkg-cmake-config (through angle)
- vcpkg-cmake-get-vars (through vcpkg-make)
- vcpkg-get-python-packages (through angle)
- vcpkg-make (through libxau)
- vcpkg-tool-meson (through xproto)
#wayland-libdecor
Support Wayland window decorations through system libdecor
Platforms: linux
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
sdl3
Features:
wayland
and 27 transitive dependencies:
- bzip2 (through libx11)
- egl (through sdl3)
- egl-registry (through angle)
- getopt (through libxkbcommon)
getopt-win32 (through getopt)
Platforms:
windows & !mingw- liblzma (through libxdmcp)
- libx11 (through libxkbcommon)
- libxau (through libxcb)
- libxcb (through libx11)
- libxdmcp (through libxcb)
- libxkbcommon (through sdl3)
- libxslt (through xproto)
- opengl (through egl)
- opengl-registry (through angle)
- pthread (through pthread-stubs)
- pthread-stubs (through libxcb)
- pthreads (through pthread)
wayland (through libxkbcommon)
Platforms:
linux- xcb-proto (through libxcb)
- xcb-render-util (through libxkbcommon)
- xcb-util-m4 (through libxcb)
- xorg-macros (through libxau)
- xproto (through libxau)
- xtrans (through libx11)
- zlib (through angle)
Host Dependencies:
7 transitive dependencies:
- libiconv (through libxml2)
- vcpkg-cmake (through angle)
- vcpkg-cmake-config (through angle)
- vcpkg-cmake-get-vars (through vcpkg-make)
- vcpkg-get-python-packages (through angle)
- vcpkg-make (through libxau)
- vcpkg-tool-meson (through xproto)
#x11
Build with X11 support
Platforms: linux | bsd
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
and 15 transitive dependencies:
- bzip2 (through libx11)
- liblzma (through libxdmcp)
- libxau (through libxcb)
- libxcb (through libx11)
- libxdmcp (through libxcb)
- libxslt (through xproto)
- pthread (through pthread-stubs)
- pthread-stubs (through libxcb)
- pthreads (through pthread)
- xcb-proto (through libxcb)
- xcb-util-m4 (through libxcb)
- xorg-macros (through libxau)
- xproto (through libxau)
- xtrans (through libx11)
Host Dependencies:
7 transitive dependencies:
- libiconv (through libxml2)
- vcpkg-cmake (through vcpkg-cmake-get-vars)
- vcpkg-cmake-config (through libxml2)
- vcpkg-cmake-get-vars (through vcpkg-tool-meson)
- vcpkg-make (through libxau)
- vcpkg-tool-meson (through fribidi)
- zlib (through libxml2)
#x11-libthai
Support Thai text rendering in X11 message boxes through system libthai
Platforms: linux | bsd
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
sdl3
Features:
x11
and 23 transitive dependencies:
- bzip2 (through libx11)
- fribidi (through sdl3)
- liblzma (through libxdmcp)
- libx11 (through sdl3)
- libxau (through libxcb)
- libxcb (through libx11)
- libxdmcp (through libxcb)
- libxext (through sdl3)
- libxfixes (through sdl3)
- libxi (through sdl3)
- libxrandr (through sdl3)
- libxrender (through libxrandr)
- libxslt (through xproto)
- libxtst (through sdl3)
- pthread (through pthread-stubs)
- pthread-stubs (through libxcb)
- pthreads (through pthread)
- xcb-proto (through libxcb)
- xcb-util-m4 (through libxcb)
- xorg-macros (through libxau)
- xproto (through libxau)
- xtrans (through libx11)
Host Dependencies:
7 transitive dependencies:
- libiconv (through libxml2)
- vcpkg-cmake (through vcpkg-cmake-get-vars)
- vcpkg-cmake-config (through libxml2)
- vcpkg-cmake-get-vars (through vcpkg-tool-meson)
- vcpkg-make (through libxau)
- vcpkg-tool-meson (through fribidi)
- zlib (through libxml2)
#x11-xscrnsaver
Support X11 screensaver inhibition through the XScreenSaver extension
Platforms: linux | bsd
- ✅linux
- ❌
osx - ❌
windows
Dependencies:
- libxscrnsaver
sdl3
Features:
x11
and 23 transitive dependencies:
- bzip2 (through libx11)
- fribidi (through sdl3)
- liblzma (through libxdmcp)
- libx11 (through libxscrnsaver)
- libxau (through libxcb)
- libxcb (through libx11)
- libxdmcp (through libxcb)
- libxext (through libxscrnsaver)
- libxfixes (through sdl3)
- libxi (through sdl3)
- libxrandr (through sdl3)
- libxrender (through libxrandr)
- libxslt (through xproto)
- libxtst (through sdl3)
- pthread (through pthread-stubs)
- pthread-stubs (through libxcb)
- pthreads (through pthread)
- xcb-proto (through libxcb)
- xcb-util-m4 (through libxcb)
- xorg-macros (through libxau)
- xproto (through libxau)
- xtrans (through libx11)
Host Dependencies:
7 transitive dependencies:
- libiconv (through libxml2)
- vcpkg-cmake (through bzip2)
- vcpkg-cmake-config (through libxml2)
- vcpkg-cmake-get-vars (through vcpkg-make)
- vcpkg-make (through libxau)
- vcpkg-tool-meson (through xproto)
- zlib (through libxml2)
#Dependencies
No dependencies.
#Used By
- faudio
- imgui (feature
sdl3-binding) - imgui (feature
sdl3-renderer-binding) - imgui (feature
sdlgpu3-binding) - libtcod (feature
sdl) - sdl-painter
- sdl-painter (feature
vulkan) - sdl3 (feature
ibus) - sdl3 (feature
wayland-libdecor) - sdl3 (feature
x11-libthai) - sdl3 (feature
x11-xscrnsaver) - sdl3-gfx
- sdl3-image
- sdl3-mixer
- sdl3-net
- sdl3-shadercross
- sdl3-ttf
- sdl3pp
- tgui (feature
sdl3)
#Host Tool For
No ports use this.
#Contributors
Ada Tufankjian
Kai Pastor
Sebastian Schäfer
kida22
Konstantin Podsvirov
Rémy Tassoux
Mateusz
toge
CQ_Undefine
Kadir
pastdue
Charles Dang
Timothy Pearson
Rafael Kitover
Chase Knowlden
Pedro Catalão
Billy O'Neal