wasm: fix drag examples for webassembly
Change-Id: I47903743685fadfe33820e7785b72d62109e77d0 Pick-to: 6.7 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
ec98afd192
commit
39f81d14c1
@ -30,6 +30,11 @@ target_link_libraries(draggableicons PRIVATE
|
||||
Qt6::Widgets
|
||||
)
|
||||
|
||||
if(EMSCRIPTEN)
|
||||
target_link_options(draggableicons PUBLIC -sASYNCIFY -Os)
|
||||
endif()
|
||||
|
||||
|
||||
# Resources:
|
||||
set(draggableicons_resource_files
|
||||
"images/boat.png"
|
||||
|
@ -4,7 +4,9 @@ HEADERS = dragwidget.h
|
||||
RESOURCES = draggableicons.qrc
|
||||
SOURCES = dragwidget.cpp \
|
||||
main.cpp
|
||||
|
||||
wasm {
|
||||
QMAKE_LFLAGS += -sASYNCIFY -Os
|
||||
}
|
||||
# install
|
||||
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/draggableicons
|
||||
INSTALLS += target
|
||||
|
@ -30,6 +30,10 @@ target_link_libraries(draggabletext PRIVATE
|
||||
Qt6::Widgets
|
||||
)
|
||||
|
||||
if(EMSCRIPTEN)
|
||||
target_link_options(draggabletext PUBLIC -sASYNCIFY -Os)
|
||||
endif()
|
||||
|
||||
# Resources:
|
||||
set(draggabletext_resource_files
|
||||
"words.txt"
|
||||
|
@ -4,6 +4,9 @@ HEADERS = dragwidget.h
|
||||
RESOURCES = draggabletext.qrc
|
||||
SOURCES = dragwidget.cpp \
|
||||
main.cpp
|
||||
wasm {
|
||||
QMAKE_LFLAGS += -sASYNCIFY -Os
|
||||
}
|
||||
|
||||
# install
|
||||
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/draganddrop/draggabletext
|
||||
|
Loading…
x
Reference in New Issue
Block a user