Skip to content

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.

#Usage

sdl3 provides CMake targets:

find_package(SDL3 CONFIG REQUIRED)
target_link_libraries(main PRIVATE SDL3::SDL3)

#Supported Platforms

!uwp

  • ✅linux
  • ✅osx
  • ✅windows
  • ❌uwp

#Features

Default features: alsa, dbus, liburing, pipewire, pulseaudio, udev, wayland, x11

#alsa

Support for alsa audio

Dependencies:
  • alsa

    Platforms: linux

No transitive dependencies.

Host Dependencies:
3 transitive dependencies:

#dbus

Build with D-Bus support

Dependencies:
  • dbus

    Platforms: linux
    Features: (none)

and one transitive dependency:
Host Dependencies:
2 transitive dependencies:

#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:
    and 2 transitive dependencies:
    Host Dependencies:
    2 transitive dependencies:

    #jack

    Build with JACK audio support

    Platforms: linux
    • ✅linux
    • ❌osx
    • ❌windows
    Dependencies:

    No transitive dependencies.

    Host Dependencies:
    2 transitive dependencies:

    #kmsdrm

    Build with KMS/DRM video support (requires system libdrm and GBM development packages)

    Platforms: linux
    • ✅linux
    • ❌osx
    • ❌windows
    Dependencies:
    and 5 transitive dependencies:
    Host Dependencies:
    3 transitive dependencies:

    #liburing

    Build with io_uring asynchronous I/O support

    Platforms: linux
    • ✅linux
    • ❌osx
    • ❌windows
    Dependencies:

    No transitive dependencies.

    Host Dependencies:
    3 transitive dependencies:

    #libusb

    Use libusb for joystick support

    Dependencies:

    No transitive dependencies.

    Host Dependencies:
    7 transitive dependencies:

    #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:
    and 7 transitive dependencies:
    Host Dependencies:
    6 transitive dependencies:

    #pulseaudio

    Build with PulseAudio support

    Platforms: linux
    • ✅linux
    • ❌osx
    • ❌windows
    Dependencies:
    and 21 transitive dependencies:
    Host Dependencies:
    6 transitive dependencies:

    #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.

    #vulkan

    Vulkan functionality for SDL

    Dependencies:

    No dependencies.

    Host Dependencies:

    No dependencies.

    #wayland

    Build with Wayland support

    Platforms: linux
    • ✅linux
    • ❌osx
    • ❌windows
    Dependencies:
    and 24 transitive dependencies:
    Host Dependencies:
    7 transitive dependencies:

    #wayland-libdecor

    Support Wayland window decorations through system libdecor

    Platforms: linux
    • ✅linux
    • ❌osx
    • ❌windows
    Dependencies:
    • sdl3

      Features: wayland

    and 27 transitive dependencies:
    Host Dependencies:
    7 transitive dependencies:

    #x11

    Build with X11 support

    Platforms: linux | bsd
    • ✅linux
    • ❌osx
    • ❌windows
    Dependencies:
    and 15 transitive dependencies:
    Host Dependencies:
    7 transitive dependencies:

    #x11-libthai

    Support Thai text rendering in X11 message boxes through system libthai

    Platforms: linux | bsd
    • ✅linux
    • ❌osx
    • ❌windows
    Dependencies:
    and 23 transitive dependencies:
    Host Dependencies:
    7 transitive dependencies:

    #x11-xscrnsaver

    Support X11 screensaver inhibition through the XScreenSaver extension

    Platforms: linux | bsd
    • ✅linux
    • ❌osx
    • ❌windows
    Dependencies:
    and 23 transitive dependencies:
    Host Dependencies:
    7 transitive dependencies:

    #Dependencies

    No dependencies.

    #Host Dependencies

    No transitive dependencies.

    #Host Tool For

    No ports use this.

    #Contributors

    • Ada Tufankjian's avatarAda Tufankjian
    • Kai Pastor's avatarKai Pastor
    • Sebastian Schäfer's avatarSebastian Schäfer
    • kida22's avatarkida22
    • Konstantin Podsvirov's avatarKonstantin Podsvirov
    • Rémy Tassoux's avatarRémy Tassoux
    • Mateusz's avatarMateusz
    • toge's avatartoge
    • CQ_Undefine's avatarCQ_Undefine
    • Kadir's avatarKadir
    • pastdue's avatarpastdue
    • Charles Dang's avatarCharles Dang
    • Timothy Pearson's avatarTimothy Pearson
    • Rafael Kitover's avatarRafael Kitover
    • Chase Knowlden's avatarChase Knowlden
    • Pedro Catalão's avatarPedro Catalão
    • Billy O'Neal's avatarBilly O'Neal

    #Changelog

    • ad7635b[sdl3] Depend on more X11 libraries, add explicit features (#54604)
    • eef0ef7[sdl3] Update to version 3.4.20 (#54860)
    • 14a4527[sdl3] Update to version 3.4.18 (#54257)
    • 5f96cd1[sdl3] Add macos-keyboard-grab feature (#53988)
    • 3cab406[sdl3] Update to version 3.4.16 (#53743)
    • 8f57207[sdl3] Update to version 3.4.14 (#53196)
    • 1600ce2[sdl3] Update to version 3.4.12 (#52681)
    • fa9a5b3[sdl3] Fix build with ibus enabled (#52129)
    • 50eb5ad[sdl3] Update to version 3.4.10 (#52112)
    • 466699e[sdl3] add libusb feature (#51706)
    Show 27 earlier changes