summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/origins/CMakeLists.txt
blob: 306074994c053cb0e827f33b2af98fa3831bbb14 (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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

include(../../httpserver/httpserver.cmake)
include(../../util/util.cmake)

qt_internal_add_test(tst_origins
    SOURCES
        tst_origins.cpp
    LIBRARIES
        Qt::WebEngineCore
        Qt::WebEngineWidgets
        Test::HttpServer
        Test::Util
)

set(tst_origins_resource_files
    "resources/createObjectURL.html"
    "resources/dedicatedWorker.html"
    "resources/dedicatedWorker.js"
    "resources/mixedSchemes.html"
    "resources/mixedSchemesWithCsp.html"
    "resources/mixedSchemes_frame.html"
    "resources/mixedXHR.html"
    "resources/mixedXHR.txt"
    "resources/serviceWorker.html"
    "resources/serviceWorker.js"
    "resources/sharedWorker.html"
    "resources/sharedWorker.js"
    "resources/subdir/frame2.html"
    "resources/subdir/index.html"
    "resources/subdir_frame1.html"
    "resources/viewSource.html"
    "resources/websocket.html"
    "resources/websocket2.html"
    "resources/red.png"
    "resources/fetchApi.html"
)

qt_internal_add_resource(tst_origins "tst_origins"
    PREFIX
        "/"
    FILES
        ${tst_origins_resource_files}
)

qt_internal_extend_target(tst_origins CONDITION QT_FEATURE_webengine_webchannel AND TARGET Qt::WebSockets
    DEFINES
        WEBSOCKETS
    LIBRARIES
        Qt::WebSockets
)