mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[sdl2] add 'wayland' feature (#26261)
This commit is contained in:
parent
ba4aea932f
commit
1370b2c88f
@ -19,13 +19,17 @@ 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_SHARED
|
||||
vulkan SDL_VULKAN
|
||||
x11 SDL_X11_SHARED
|
||||
wayland SDL_WAYLAND_SHARED
|
||||
)
|
||||
|
||||
if ("x11" IN_LIST FEATURES)
|
||||
message(WARNING "You will need to install Xorg dependencies to use feature x11:\nsudo apt install libx11-dev libxft-dev libxext-dev\n")
|
||||
endif()
|
||||
if ("wayland" IN_LIST FEATURES)
|
||||
message(WARNING "You will need to install Wayland dependencies to use feature wayland:\nsudo apt install libwayland-dev libxkbcommon-dev libegl1-mesa-dev\n")
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_IS_UWP)
|
||||
set(configure_opts WINDOWS_USE_MSBUILD)
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "sdl2",
|
||||
"version": "2.0.22",
|
||||
"port-version": 2,
|
||||
"port-version": 3,
|
||||
"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",
|
||||
@ -19,6 +19,10 @@
|
||||
"vulkan": {
|
||||
"description": "Vulkan functionality for SDL"
|
||||
},
|
||||
"wayland": {
|
||||
"description": "Dynamically load Wayland support",
|
||||
"supports": "linux"
|
||||
},
|
||||
"x11": {
|
||||
"description": "Dynamically load X11 support",
|
||||
"supports": "!windows"
|
||||
|
@ -6498,7 +6498,7 @@
|
||||
},
|
||||
"sdl2": {
|
||||
"baseline": "2.0.22",
|
||||
"port-version": 2
|
||||
"port-version": 3
|
||||
},
|
||||
"sdl2-gfx": {
|
||||
"baseline": "1.0.4",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "69c64474577715f87366d9374b0483256f305f1e",
|
||||
"version": "2.0.22",
|
||||
"port-version": 3
|
||||
},
|
||||
{
|
||||
"git-tree": "c14a0021322c01cb256a4a54ea48a9ddf8023622",
|
||||
"version": "2.0.22",
|
||||
|
Loading…
x
Reference in New Issue
Block a user