[sdl2] Add feature alsa (#34311)

This commit is contained in:
Thomas1664 2023-10-16 19:48:03 +02:00 committed by GitHub
parent 5e8067541b
commit 48b883fb2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 5 deletions

View File

@ -15,11 +15,15 @@ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" FORCE_STATIC_VCRT)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
vulkan SDL_VULKAN
x11 SDL_X11
wayland SDL_WAYLAND
samplerate SDL_LIBSAMPLERATE
alsa SDL_ALSA
alsa CMAKE_REQUIRE_FIND_PACKAGE_ALSA
ibus SDL_IBUS
samplerate SDL_LIBSAMPLERATE
vulkan SDL_VULKAN
wayland SDL_WAYLAND
x11 SDL_X11
INVERTED_FEATURES
alsa CMAKE_DISABLE_FIND_PACKAGE_ALSA
)
if ("x11" IN_LIST FEATURES)

View File

@ -1,6 +1,7 @@
{
"name": "sdl2",
"version": "2.28.4",
"port-version": 1,
"description": "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.",
"homepage": "https://www.libsdl.org/download-2.0.php",
"license": "Zlib",
@ -22,6 +23,15 @@
"base"
],
"features": {
"alsa": {
"description": "Support for alsa audio",
"dependencies": [
{
"name": "alsa",
"platform": "linux"
}
]
},
"base": {
"description": "Base functionality for SDL",
"dependencies": [

View File

@ -7578,7 +7578,7 @@
},
"sdl2": {
"baseline": "2.28.4",
"port-version": 0
"port-version": 1
},
"sdl2-gfx": {
"baseline": "1.0.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3d625914314454b36d303ce86753840f6193f2bd",
"version": "2.28.4",
"port-version": 1
},
{
"git-tree": "289db88c23499b30e20bf972b2e1e68c093e5dea",
"version": "2.28.4",