a04b40dadb
Summary: Replacement KCM to configure kwin rules, using a QML-based UI. After some work on the task T12729, it is almost feature-par with the previous module, and adapted to the recent move to KConfigXT. Test Plan: {F8208046} {F8208047} Reviewers: #plasma, #kwin, #vdg, ngraham, davidedmundson, zzag Reviewed By: #plasma, #kwin, #vdg, ngraham, davidedmundson, zzag Subscribers: ngraham, davidedmundson, hchain, broulik, zzag, kwin Tags: #kwin, #vdg Differential Revision: https://phabricator.kde.org/D28152
56 lines
1.5 KiB
CMake
56 lines
1.5 KiB
CMake
# KI18N Translation Domain for this library
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwinrules\")
|
|
add_definitions(-DKCMRULES)
|
|
|
|
include_directories(../../)
|
|
|
|
set(kwinrules_SRCS
|
|
../../rulebooksettings.cpp
|
|
../../cursor.cpp
|
|
../../plugins/platforms/x11/standalone/x11cursor.cpp
|
|
../../rules.cpp
|
|
../../placement.cpp
|
|
../../utils.cpp
|
|
kwinsrc.cpp
|
|
optionsmodel.cpp
|
|
ruleitem.cpp
|
|
rulesmodel.cpp
|
|
)
|
|
|
|
kconfig_add_kcfg_files(kwinrules_SRCS ../../rulesettings.kcfgc)
|
|
kconfig_add_kcfg_files(kwinrules_SRCS ../../rulebooksettingsbase.kcfgc)
|
|
|
|
add_library(KWinRulesObjects STATIC ${kwinrules_SRCS})
|
|
|
|
set(kwin_kcm_rules_XCB_LIBS
|
|
XCB::CURSOR
|
|
XCB::XCB
|
|
XCB::XFIXES
|
|
)
|
|
|
|
set(kcm_libs
|
|
Qt5::Quick
|
|
Qt5::QuickWidgets
|
|
|
|
KF5::I18n
|
|
KF5::QuickAddons
|
|
KF5::WindowSystem
|
|
KF5::XmlGui
|
|
)
|
|
|
|
if (KWIN_BUILD_ACTIVITIES)
|
|
set(kcm_libs ${kcm_libs} KF5::Activities)
|
|
endif()
|
|
target_link_libraries(KWinRulesObjects ${kcm_libs} ${kwin_kcm_rules_XCB_LIBS})
|
|
|
|
add_executable(kwin_rules_dialog main.cpp rulesdialog.cpp)
|
|
target_link_libraries(kwin_rules_dialog KWinRulesObjects)
|
|
install(TARGETS kwin_rules_dialog DESTINATION ${LIBEXEC_INSTALL_DIR})
|
|
|
|
add_library(kcm_kwinrules MODULE kcmrules.cpp rulebookmodel.cpp)
|
|
target_link_libraries(kcm_kwinrules KWinRulesObjects)
|
|
kcoreaddons_desktop_to_json(kcm_kwinrules "kcm_kwinrules.desktop" SERVICE_TYPES kcmodule.desktop)
|
|
|
|
install(TARGETS kcm_kwinrules DESTINATION ${PLUGIN_INSTALL_DIR}/kcms)
|
|
install(FILES kcm_kwinrules.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
|
kpackage_install_package(package kcm_kwinrules kcms)
|