BlobIoDevice: Supports reading data from a JS Blob, which can be a File (on disk) or some other object which can provide data. The native access functions are async and using this class requires that asyncify is available. Uint8ArrayIODevice: Supports reading and writing to a Uint8Array / ArrayBuffer. Similar to the existing QByteArray::fromEcmaUint8Array() API, except that it supports incremental accesss. Change-Id: Ic5de3534ff75eb6c745287b73b15ccd92d74ac2c Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
98 lines
2.8 KiB
CMake
98 lines
2.8 KiB
CMake
qt_internal_add_manual_test(promise_auto
|
|
SOURCES
|
|
promise_main.cpp
|
|
../qtwasmtestlib/qtwasmtestlib.cpp
|
|
LIBRARIES
|
|
Qt::Core
|
|
Qt::CorePrivate
|
|
)
|
|
|
|
include_directories(../qtwasmtestlib/)
|
|
|
|
add_custom_command(
|
|
TARGET promise_auto POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${CMAKE_CURRENT_SOURCE_DIR}/promise_auto.html
|
|
${CMAKE_CURRENT_BINARY_DIR}/promise_auto.html)
|
|
|
|
add_custom_command(
|
|
TARGET promise_auto POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../qtwasmtestlib/qtwasmtestlib.js
|
|
${CMAKE_CURRENT_BINARY_DIR}/qtwasmtestlib.js)
|
|
|
|
qt_internal_add_manual_test(files_auto
|
|
SOURCES
|
|
files_main.cpp
|
|
../qtwasmtestlib/qtwasmtestlib.cpp
|
|
LIBRARIES
|
|
Qt::Core
|
|
Qt::CorePrivate
|
|
Qt::GuiPrivate
|
|
)
|
|
|
|
include_directories(../qtwasmtestlib/)
|
|
|
|
add_custom_command(
|
|
TARGET files_auto POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${CMAKE_CURRENT_SOURCE_DIR}/files_auto.html
|
|
${CMAKE_CURRENT_BINARY_DIR}/files_auto.html)
|
|
|
|
add_custom_command(
|
|
TARGET files_auto POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../qtwasmtestlib/qtwasmtestlib.js
|
|
${CMAKE_CURRENT_BINARY_DIR}/qtwasmtestlib.js)
|
|
|
|
qt_internal_add_manual_test(qwasmcompositor_auto
|
|
SOURCES
|
|
qwasmcompositor_main.cpp
|
|
../qtwasmtestlib/qtwasmtestlib.cpp
|
|
LIBRARIES
|
|
Qt::Core
|
|
Qt::CorePrivate
|
|
Qt::GuiPrivate
|
|
)
|
|
|
|
include_directories(../qtwasmtestlib/)
|
|
|
|
add_custom_command(
|
|
TARGET qwasmcompositor_auto POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${CMAKE_CURRENT_SOURCE_DIR}/qwasmcompositor_auto.html
|
|
${CMAKE_CURRENT_BINARY_DIR}/qwasmcompositor_auto.html)
|
|
|
|
add_custom_command(
|
|
TARGET qwasmcompositor_auto POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${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
|
|
../qtwasmtestlib/qtwasmtestlib.cpp
|
|
LIBRARIES
|
|
Qt::Core
|
|
Qt::CorePrivate
|
|
Qt::GuiPrivate
|
|
)
|
|
|
|
add_custom_command(
|
|
TARGET iodevices_auto POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
${CMAKE_CURRENT_SOURCE_DIR}/iodevices_auto.html
|
|
${CMAKE_CURRENT_BINARY_DIR}/iodevices_auto.html)
|
|
|
|
add_custom_command(
|
|
TARGET iodevices_auto POST_BUILD
|
|
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)
|
|
|