summaryrefslogtreecommitdiffstats
path: root/cmake/QtWasmHelpers.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/QtWasmHelpers.cmake')
-rw-r--r--cmake/QtWasmHelpers.cmake18
1 files changed, 1 insertions, 17 deletions
diff --git a/cmake/QtWasmHelpers.cmake b/cmake/QtWasmHelpers.cmake
index 3eb97fa3cb..6c42bd124d 100644
--- a/cmake/QtWasmHelpers.cmake
+++ b/cmake/QtWasmHelpers.cmake
@@ -11,21 +11,11 @@ function (qt_internal_setup_wasm_target_properties wasmTarget)
"SHELL:-s WASM_BIGINT=1"
"SHELL:-s STACK_SIZE=5MB")
- target_link_libraries("${wasmTarget}" INTERFACE embind)
-
## wasm64
if (WASM64)
target_compile_options("${wasmTarget}" INTERFACE "SHELL:-s MEMORY64=1" )
target_link_options("${wasmTarget}" INTERFACE "SHELL:-s MEMORY64=1" -mwasm64)
endif()
- # Enable MODULARIZE and set EXPORT_NAME, which makes it possible to
- # create application instances using a global constructor function,
- # e.g. let app_instance = await createQtAppInstance().
- # (as opposed to MODULARIZE=0, where Emscripten creates a global app
- # instance object at Javascript eval time)
- target_link_options("${wasmTarget}" INTERFACE
- "SHELL:-s MODULARIZE=1"
- "SHELL:-s EXPORT_NAME=createQtAppInstance")
#simd
if (QT_FEATURE_wasm_simd128)
@@ -39,8 +29,6 @@ function (qt_internal_setup_wasm_target_properties wasmTarget)
if (QT_FEATURE_wasm_exceptions)
target_compile_options("${wasmTarget}" INTERFACE -fwasm-exceptions)
target_link_options("${wasmTarget}" INTERFACE -fwasm-exceptions)
- else()
- target_link_options("${wasmTarget}" INTERFACE "SHELL:-s DISABLE_EXCEPTION_CATCHING=1")
endif()
if (QT_FEATURE_thread)
@@ -67,7 +55,6 @@ function (qt_internal_setup_wasm_target_properties wasmTarget)
# a few good defaults to make console more verbose while debugging
target_link_options("${wasmTarget}" INTERFACE $<$<CONFIG:Debug>:
- "SHELL:-s DEMANGLE_SUPPORT=1"
--profiling-funcs>)
# target_link_options("${wasmTarget}" INTERFACE "SHELL:-s LIBRARY_DEBUG=1") # print out library calls, verbose
@@ -126,8 +113,5 @@ function (qt_internal_setup_wasm_target_properties wasmTarget)
endfunction()
function(qt_internal_wasm_add_finalizers target)
- qt_add_list_file_finalizer(_qt_internal_add_wasm_extra_exported_methods ${target})
- qt_add_list_file_finalizer(_qt_internal_wasm_add_target_helpers ${target})
+ qt_add_list_file_finalizer(_qt_internal_finalize_wasm_app ${target})
endfunction()
-
-