From b145f23770a2f88fc54eaaa33eef579c308f4663 Mon Sep 17 00:00:00 2001 From: Juha Vuolle Date: Fri, 28 Mar 2025 14:22:46 +0200 Subject: [PATCH] Yield a configuration error with -no-feature-desktopservices Yield a configuration error with -no-feature-desktopservices if the platform is either Apple or Android. This should be clearer than a compiler error later on, and also occurs earlier in the process. Pick-to: 6.9 6.8 Fixes: QTBUG-135152 Change-Id: I5dfb9eda12472ed9359767f17423fda63d208d9c Reviewed-by: Alexey Edelev --- src/gui/configure.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake index 76ac374fb04..95985bd0fa0 100644 --- a/src/gui/configure.cmake +++ b/src/gui/configure.cmake @@ -1480,3 +1480,8 @@ qt_configure_add_report_entry( MESSAGE "XCB plugin requires xkbcommon and xkbcommon-x11, but -no-xkbcommon was provided." CONDITION ( NOT INPUT_xcb STREQUAL '' ) AND ( NOT INPUT_xcb STREQUAL 'no' ) AND INPUT_xkbcommon STREQUAL 'no' ) +qt_configure_add_report_entry( + TYPE ERROR + MESSAGE "The desktopservices feature is required on macOS, iOS, and Android and cannot be disabled." + CONDITION (APPLE OR ANDROID) AND NOT QT_FEATURE_desktopservices +)