[sdl3] Make dbus dependency optional (#50468)

Co-authored-by: Timothy Pearson <tpearson@raptorcs.com>
This commit is contained in:
Timothy Pearson 2026-03-19 01:13:55 -05:00 committed by GitHub
parent 3fd19d5f6c
commit 4da8ab8ef9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 19 additions and 7 deletions

View File

@ -15,6 +15,7 @@ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" FORCE_STATIC_VCRT)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
alsa SDL_ALSA
dbus SDL_DBUS
ibus SDL_IBUS
vulkan SDL_VULKAN
wayland SDL_WAYLAND

View File

@ -1,16 +1,12 @@
{
"name": "sdl3",
"version": "3.4.2",
"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",
"license": "Zlib AND MIT AND Apache-2.0",
"supports": "!uwp",
"dependencies": [
{
"name": "dbus",
"default-features": false,
"platform": "linux"
},
{
"name": "vcpkg-cmake",
"host": true
@ -44,6 +40,16 @@
}
]
},
"dbus": {
"description": "Build with D-Bus support",
"dependencies": [
{
"name": "dbus",
"default-features": false,
"platform": "linux"
}
]
},
"emscripten-pthreads": {
"description": "Build Emscripten pthreads support",
"supports": "emscripten"

View File

@ -1359,7 +1359,7 @@ sdl2-mixer-ext:arm64-linux=cascade
sdl2-net:arm64-linux=cascade
sdl2-ttf:arm64-linux=cascade
sdl2pp:arm64-linux=cascade
sdl3:arm64-linux=cascade
sdl3[dbus]:arm64-linux=cascade
sdl3-image:arm64-linux=cascade
sdl3-shadercross((!windows | arm32 | uwp | xbox) & (!linux | !x64))=cascade
sdl3-ttf:arm64-linux=cascade

View File

@ -8978,7 +8978,7 @@
},
"sdl3": {
"baseline": "3.4.2",
"port-version": 0
"port-version": 1
},
"sdl3-image": {
"baseline": "3.4.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "03a5817f59c402809823b884830132bc9c8d6fd4",
"version": "3.4.2",
"port-version": 1
},
{
"git-tree": "fed2a405770d3ac4416e972ea31f0476e6ac23dd",
"version": "3.4.2",