plugins/private: Update to ecm qml plugin tooling

master
Mike Noe 1 year ago
parent 010a8a1e13
commit 2c809305b0

@ -39,6 +39,8 @@ include(ECMConfiguredInstall)
include(ECMQtDeclareLoggingCategory) include(ECMQtDeclareLoggingCategory)
include(ECMSetupQtPluginMacroNames) include(ECMSetupQtPluginMacroNames)
include(ECMSetupVersion) include(ECMSetupVersion)
include(ECMQmlModule)
include(ECMGenerateQmlTypes)
option(KWIN_BUILD_DECORATIONS "Enable building of KWin decorations." ON) option(KWIN_BUILD_DECORATIONS "Enable building of KWin decorations." ON)
option(KWIN_BUILD_KCMS "Enable building of KWin configuration modules." ON) option(KWIN_BUILD_KCMS "Enable building of KWin configuration modules." ON)

@ -2,7 +2,15 @@
# #
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
add_library(effectsplugin ecm_add_qml_module(effectsplugin URI "org.kde.kwin.private.effects")
ecm_target_qml_sources(effectsplugin
SOURCES
qml/WindowHeap.qml
qml/WindowHeapDelegate.qml
)
target_sources(effectsplugin PRIVATE
expoarea.cpp expoarea.cpp
expolayout.cpp expolayout.cpp
plugin.cpp plugin.cpp
@ -10,13 +18,10 @@ add_library(effectsplugin
target_link_libraries(effectsplugin target_link_libraries(effectsplugin
kwineffects kwineffects
Qt6::Quick
Qt::Core Qt6::Qml
Qt::Gui KF6::I18n
Qt::Qml
Qt::Quick
) )
install(DIRECTORY qml/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kwin/private/effects) ecm_finalize_qml_module(effectsplugin DESTINATION ${KDE_INSTALL_QMLDIR})
install(TARGETS effectsplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kwin/private/effects)
install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kwin/private/effects)

@ -1,11 +0,0 @@
# SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
#
# SPDX-License-Identifier: CC0-1.0
module org.kde.kwin.private.effects
plugin effectsplugin
classname EffectKitExtensionPlugin
WindowHeap 1.0 WindowHeap.qml
WindowHeapDelegate 1.0 WindowHeapDelegate.qml
Loading…
Cancel
Save