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

#####################################################################
## qwaylandqtshellplugin Plugin:
#####################################################################

qt_internal_add_qml_module(WaylandCompositorQtShell
    URI "QtWayland.Compositor.QtShell"
    VERSION "${PROJECT_VERSION}"
    CLASS_NAME QWaylandQtShellPlugin
    NO_PLUGIN_OPTIONAL
    PLUGIN_TARGET WaylandCompositorQtShell
    NO_GENERATE_PLUGIN_SOURCE
    NO_GENERATE_QMLTYPES
    INSTALL_SOURCE_QMLTYPES "plugins.qmltypes"

    SOURCES
        qwaylandqtshellplugin.cpp
        qwaylandqtshell.cpp qwaylandqtshell.h qwaylandqtshell_p.h
        qwaylandqtshellintegration.cpp qwaylandqtshellintegration_p.h
        qwaylandqtshellchrome.cpp qwaylandqtshellchrome.h qwaylandqtshellchrome_p.h
    LIBRARIES
        Qt::Core
        Qt::Gui
        Qt::Quick
        Qt::QuickPrivate
        Qt::WaylandCompositor
        Qt::WaylandCompositorPrivate
    NO_GENERATE_CPP_EXPORTS
)

qt6_generate_wayland_protocol_server_sources(WaylandCompositorQtShell
    FILES
        ${CMAKE_CURRENT_SOURCE_DIR}/../../../extensions/qt-shell-unstable-v1.xml
)

qt_internal_add_autogen_sync_header_dependencies(WaylandCompositorQtShell WaylandCompositor)