From 8bfdfd613e9778230611f9c44acfa44386710d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Wed, 20 Sep 2023 14:58:03 +0200 Subject: [PATCH] wasm: include qunixnativeinterface.cpp in build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix shared libraries build error: undefined symbol: _ZN16QNativeInterface7Private14QWaylandWindowD0Ev We are declaring QWaylandWindow for all Q_OS_UNIX in qplatformwindow_p.h, and must include the definition as well. Change-Id: I630538af475524659e9a476171994e600f2ec668 Reviewed-by: Tor Arne Vestbø --- src/gui/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index a7bacf4c61..815dcb1398 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -926,12 +926,16 @@ qt_internal_extend_target(Gui CONDITION WASM platform/wasm/qwasmlocalfileaccess.cpp platform/wasm/qwasmlocalfileaccess_p.h ) +qt_internal_extend_target(Gui CONDITION UNIX + SOURCES + platform/unix/qunixnativeinterface.cpp +) + qt_internal_extend_target(Gui CONDITION UNIX AND NOT WASM SOURCES platform/unix/qgenericunixeventdispatcher.cpp platform/unix/qgenericunixeventdispatcher_p.h platform/unix/qunixeventdispatcher.cpp platform/unix/qunixeventdispatcher_qpa_p.h - platform/unix/qunixnativeinterface.cpp ) qt_internal_extend_target(Gui CONDITION QT_FEATURE_glib AND UNIX