summaryrefslogtreecommitdiffstats
path: root/src/webenginequick/ui/CMakeLists.txt
blob: ac960535e096ee29f494a06883c58e6a81f0a82a (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
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

if (Qt6Quick_VERSION VERSION_GREATER_EQUAL "6.4.0")
set(colorDialog "ColorDialog.qml")
else()
set(colorDialog "custom/ColorDialog.qml")
endif()

set(qml_files
    "AlertDialog.qml"
    "AuthenticationDialog.qml"
    "AutofillPopup.qml"
    "ConfirmDialog.qml"
    "DirectoryPicker.qml"
    "FilePicker.qml"
    "Menu.qml"
    "MenuItem.qml"
    "MenuSeparator.qml"
    "PromptDialog.qml"
    "ToolTip.qml"
    "TouchHandle.qml"
    "TouchSelectionMenu.qml"
    ${colorDialog}
)

set(resource_files
    "information.png"
    "question.png"
)

qt_internal_add_qml_module(WebEngineQuickDelegatesQml
    URI "QtWebEngine.ControlsDelegates"
    VERSION "${PROJECT_VERSION}"
    QML_FILES ${qml_files}
    PAST_MAJOR_VERSIONS 1
    NO_SYNC_QT
    PLUGIN_TARGET qtwebenginequickdelegatesplugin
    DEPENDENCIES QtQuickControls2
    NO_GENERATE_CPP_EXPORTS
)

qt_internal_add_resource(qtwebenginequickdelegatesplugin "qtwebenginequickdelegatesplugin"
    PREFIX
        "/qt-project.org/imports/QtWebEngine/ControlsDelegates"
    FILES
        ${resource_files}
)