plugins/private: Update to ecm qml plugin tooling
This commit is contained in:
parent
010a8a1e13
commit
2c809305b0
3 changed files with 16 additions and 20 deletions
|
@ -39,6 +39,8 @@ include(ECMConfiguredInstall)
|
|||
include(ECMQtDeclareLoggingCategory)
|
||||
include(ECMSetupQtPluginMacroNames)
|
||||
include(ECMSetupVersion)
|
||||
include(ECMQmlModule)
|
||||
include(ECMGenerateQmlTypes)
|
||||
|
||||
option(KWIN_BUILD_DECORATIONS "Enable building of KWin decorations." ON)
|
||||
option(KWIN_BUILD_KCMS "Enable building of KWin configuration modules." ON)
|
||||
|
|
|
@ -2,7 +2,15 @@
|
|||
#
|
||||
# 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
|
||||
expolayout.cpp
|
||||
plugin.cpp
|
||||
|
@ -10,13 +18,10 @@ add_library(effectsplugin
|
|||
|
||||
target_link_libraries(effectsplugin
|
||||
kwineffects
|
||||
|
||||
Qt::Core
|
||||
Qt::Gui
|
||||
Qt::Qml
|
||||
Qt::Quick
|
||||
Qt6::Quick
|
||||
Qt6::Qml
|
||||
KF6::I18n
|
||||
)
|
||||
|
||||
install(DIRECTORY qml/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kwin/private/effects)
|
||||
install(TARGETS effectsplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kwin/private/effects)
|
||||
install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kwin/private/effects)
|
||||
ecm_finalize_qml_module(effectsplugin DESTINATION ${KDE_INSTALL_QMLDIR})
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue