summaryrefslogtreecommitdiffstats
path: root/configure.cmake
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2022-08-19 14:25:49 +0200
committerLorn Potter <lorn.potter@gmail.com>2022-08-30 22:11:01 +1000
commitbe44827240efbd2f89ad493e209061906a53028c (patch)
tree7af225786062f45aba9a2afd476bec5c94c72a24 /configure.cmake
parent20242a254987414566ec852a7e05c19041b90024 (diff)
wasm: add support for building Qt as shared libraries
This implements the build system bits required to build Qt as as separate wasm modules a.k.a Emscripten side modules. Enable by configuring with the "-shared" flag. This is the first step towards shared library support and gets us as far as being able to load QtCore and instantiate a QCoreApplication. Task-number: QTBUG-63925 Change-Id: Ib8f07f80fb5b13c8dbba65c7db735dc557b70d0e Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.cmake b/configure.cmake
index f188b99201..570a260715 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -390,7 +390,7 @@ qt_feature("android-style-assets" PRIVATE
)
qt_feature("shared" PUBLIC
LABEL "Building shared libraries"
- AUTODETECT NOT UIKIT AND NOT WASM
+ AUTODETECT NOT UIKIT
CONDITION BUILD_SHARED_LIBS
)
qt_feature_definition("shared" "QT_STATIC" NEGATE PREREQUISITE "!defined(QT_SHARED) && !defined(QT_STATIC)")