[sdl2] Make dbus dependency optional. (#40633)

This commit is contained in:
Daniel Svensson 2024-08-29 09:17:29 +02:00 committed by GitHub
parent dfa8003ce7
commit de99811b2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 22 additions and 7 deletions

View File

@ -18,6 +18,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
samplerate SDL_LIBSAMPLERATE
vulkan SDL_VULKAN

View File

@ -1,16 +1,11 @@
{
"name": "sdl2",
"version": "2.30.6",
"port-version": 1,
"port-version": 2,
"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",
"dependencies": [
{
"name": "dbus",
"default-features": false,
"platform": "linux"
},
{
"name": "vcpkg-cmake",
"host": true
@ -21,6 +16,10 @@
}
],
"default-features": [
{
"name": "dbus",
"platform": "linux"
},
{
"name": "ibus",
"platform": "linux"
@ -44,6 +43,16 @@
}
]
},
"dbus": {
"description": "Build with D-Bus support",
"dependencies": [
{
"name": "dbus",
"default-features": false,
"platform": "linux"
}
]
},
"ibus": {
"description": "Build with ibus IME support",
"supports": "linux"

View File

@ -8094,7 +8094,7 @@
},
"sdl2": {
"baseline": "2.30.6",
"port-version": 1
"port-version": 2
},
"sdl2-gfx": {
"baseline": "1.0.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5d52d326d6f43ce1c7481188402e8c2828bbb369",
"version": "2.30.6",
"port-version": 2
},
{
"git-tree": "35851962eb04c90f32822e7574ae69265113d88b",
"version": "2.30.6",