[client,sdl] mark SDL2 as deprecated.

SDL2 client is a dead end due to lacking API (clipboard support, ...) so
mark the SDL2 client deprecated and point out there is a SDL3 version
available
This commit is contained in:
akallabeth
2025-02-21 09:06:12 +01:00
parent feba8c0902
commit 4e111874de
3 changed files with 4 additions and 2 deletions

View File

@@ -64,7 +64,8 @@ find_package(SDL3)
cmake_dependent_option(WITH_CLIENT_SDL_VERSIONED "append sdl version to client binaries" OFF WITH_CLIENT_SDL OFF)
cmake_dependent_option(
WITH_CLIENT_SDL2 "[experimental] build experimental SDL2 client" ${SDL2_FOUND} WITH_CLIENT_SDL OFF
WITH_CLIENT_SDL2 "[deprecated,experimental] build deprecated,experimental SDL2 client" ${SDL2_FOUND} WITH_CLIENT_SDL
OFF
)
cmake_dependent_option(
WITH_CLIENT_SDL3 "[experimental] build experimental SDL3 client" ${SDL3_FOUND} WITH_CLIENT_SDL OFF

View File

@@ -1644,6 +1644,7 @@ int main(int argc, char* argv[])
RDP_CLIENT_ENTRY_POINTS clientEntryPoints = {};
freerdp_client_warn_experimental(argc, argv);
freerdp_client_warn_deprecated(argc, argv);
WLog_WARN(SDL_TAG,
"SDL2 client does not support clipboard! Only SDL3 client has (partial) support");

View File

@@ -6220,7 +6220,7 @@ void freerdp_client_warn_deprecated(int argc, char* argv[])
return;
WLog_Print_unchecked(log, log_level, "[deprecated] %s client has been deprecated", app);
WLog_Print_unchecked(log, log_level, "As replacement there is a SDL based client available.");
WLog_Print_unchecked(log, log_level, "As replacement there is a SDL3 based client available.");
WLog_Print_unchecked(
log, log_level,
"If you are interested in keeping %s alive get in touch with the developers", app);