Error out early when base was build without our native interfaces

Instead of letting people run into compile errors, bail out and explain
what's wrong.

Change-Id: I2f2067ee07d95238e287e39ce78e73eddbca836c
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
David Redondo 2023-12-06 14:47:49 +01:00
parent ca722d909b
commit ea5d6d8748

View File

@ -265,3 +265,9 @@ qt_configure_add_summary_entry(ARGS "wayland-dmabuf-server-buffer")
qt_configure_add_summary_entry(ARGS "wayland-shm-emulation-server-buffer")
qt_configure_add_summary_entry(ARGS "wayland-vulkan-server-buffer")
qt_configure_end_summary_section() # end of "Qt Wayland Drivers" section
qt_configure_add_report_entry(
TYPE ERROR
MESSAGE "Qt Wayland Client requires QtGui to be build with support for wayland"
CONDITION NOT QT_FEATURE_wayland AND QT_FEATURE_wayland_client
)