wasm: Don't hardcode ASYNCIFY 1

Build for the "default" config only, which can be
asyncyfy 0,1, or 2 depending on Qt build configuration.

Change-Id: I29d9a11b30325491151fc4e621272e5390681fa7
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@qt.io>
This commit is contained in:
Morten Sørvig 2024-08-13 10:43:21 +02:00
parent 2e334c1395
commit 00ef435571
3 changed files with 0 additions and 35 deletions

View File

@ -2,7 +2,6 @@
# SPDX-License-Identifier: BSD-3-Clause
include_directories(../../qtwasmtestlib/)
# default buid
qt_internal_add_manual_test(eventloop_auto
SOURCES
main.cpp
@ -23,23 +22,3 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/../../qtwasmtestlib/qtwasmtestlib.js
${CMAKE_CURRENT_BINARY_DIR}/qtwasmtestlib.js)
# asyncify enabled build
qt_internal_add_manual_test(eventloop_auto_asyncify
SOURCES
main.cpp
../../qtwasmtestlib/qtwasmtestlib.cpp
LIBRARIES
Qt::Core
Qt::CorePrivate
)
target_link_options(eventloop_auto_asyncify PRIVATE -sASYNCIFY -Os)
add_custom_command(
TARGET eventloop_auto_asyncify POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/eventloop_auto_asyncify.html
${CMAKE_CURRENT_BINARY_DIR}/eventloop_auto_asyncify.html)

View File

@ -1,10 +0,0 @@
<!doctype html>
<script type="text/javascript" src="qtwasmtestlib.js"></script>
<script type="text/javascript" src="eventloop_auto_asyncify.js"></script>
<script>
window.onload = () => {
runTestCase(eventloop_auto_asyncify_entry, document.getElementById("log"));
};
</script>
<p>Running event dispatcher auto test.</p>
<div id="log"></div>

View File

@ -71,8 +71,6 @@ add_custom_command(
${CMAKE_CURRENT_SOURCE_DIR}/../qtwasmtestlib/qtwasmtestlib.js
${CMAKE_CURRENT_BINARY_DIR}/qtwasmtestlib.js)
target_link_options(qwasmcompositor_auto PRIVATE -sASYNCIFY -Os)
qt_internal_add_manual_test(iodevices_auto
SOURCES
iodevices_main.cpp
@ -94,5 +92,3 @@ add_custom_command(
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/../qtwasmtestlib/qtwasmtestlib.js
${CMAKE_CURRENT_BINARY_DIR}/qtwasmtestlib.js)
target_link_options(iodevices_auto PRIVATE -sASYNCIFY -Os)