summaryrefslogtreecommitdiffstats
path: root/tests/manual/wasm/qstdweb/CMakeLists.txt
blob: 5242999ec4ad3dad533cc9d13f9b001b2ea87e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
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)