NAME
Alien::SDL3::Native - Find or build SDL3 native development libraries
SYNOPSIS
use Alien::SDL3::Native;
print Alien::SDL3::Native->version, "\n";
print Alien::SDL3::Native->cflags, "\n";
print Alien::SDL3::Native->libs, "\n";
DESCRIPTION
Provides the native SDL3 library and development headers to Perl distributions that compile C or C++ code. It is not a Perl SDL binding.
System discovery uses pkg-config's sdl3 package, requiring SDL 3.2 or newer. If no suitable package is found, Alien::Build downloads and builds the pinned official SDL 3.4.20 release with CMake.
The bundled build provides a static, position-independent library. libs includes the static dependencies when using this installation type. System installations use their normal pkg-config flags. Set PKG_CONFIG_PATH to discover a nonstandard native prefix.
REQUIREMENTS
A compatible native compiler and build environment are necessary. Source builds require the platform development prerequisites for SDL video and input support. In particular, Linux graphical support requires the appropriate X11 and/or Wayland development libraries.
This distribution does not provide SDL_image, SDL_ttf, SDL_mixer, or an OpenGL implementation. It exposes SDL's native OpenGL context and function-loading APIs.
SEE ALSO
Alien::Base, Alien::Build, https://github.com/libsdl-org/SDL
LICENSE
MIT. See LICENSE. SDL has its own zlib license, installed by its upstream build.