Link against static Wasm platform plugin when building with Emscripten

This commit is contained in:
Martchus 2024-06-29 01:32:25 +02:00
parent 82af8b06ea
commit 9f5261bac8
1 changed files with 12 additions and 0 deletions

View File

@ -159,6 +159,18 @@ if (STATIC_LINKAGE OR QT_TARGET_TYPE STREQUAL STATIC_LIBRARY)
CocoaIntegration
ONLY_PLUGINS)
endif ()
if (EMSCRIPTEN AND TARGET "${QT_PACKAGE_PREFIX}::QWasmIntegrationPlugin")
use_qt_module(
LIBRARIES_VARIABLE
"${QT_PLUGINS_LIBRARIES_VARIABLE}"
PREFIX
"${QT_PACKAGE_PREFIX}"
MODULE
Gui
PLUGINS
WasmIntegration
ONLY_PLUGINS)
endif ()
if (UNIX AND TARGET "${QT_PACKAGE_PREFIX}::QOffscreenIntegrationPlugin")
use_qt_module(
LIBRARIES_VARIABLE