Cleanup style in CMakeLists.txt files
We have lots of inconsistency at the moment in CMakeLists.txt files. Most of it is due to kwin being a very old project. This change hopefully fixes all of it.icc-effect-5.17.5
parent
c8aa258eba
commit
dcf91d4321
251
CMakeLists.txt
251
CMakeLists.txt
|
@ -7,7 +7,7 @@ set(PROJECT_VERSION_MAJOR 5)
|
||||||
set(QT_MIN_VERSION "5.12.0")
|
set(QT_MIN_VERSION "5.12.0")
|
||||||
set(KF5_MIN_VERSION "5.62.0")
|
set(KF5_MIN_VERSION "5.62.0")
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH} )
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
|
||||||
|
|
||||||
find_package(ECM 5.38 REQUIRED NO_MODULE)
|
find_package(ECM 5.38 REQUIRED NO_MODULE)
|
||||||
|
|
||||||
|
@ -33,9 +33,9 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
|
||||||
|
|
||||||
find_package(Qt5Test ${QT_MIN_VERSION} CONFIG QUIET)
|
find_package(Qt5Test ${QT_MIN_VERSION} CONFIG QUIET)
|
||||||
set_package_properties(Qt5Test PROPERTIES
|
set_package_properties(Qt5Test PROPERTIES
|
||||||
PURPOSE "Required for tests"
|
PURPOSE "Required for tests"
|
||||||
TYPE OPTIONAL
|
TYPE OPTIONAL
|
||||||
)
|
)
|
||||||
add_feature_info("Qt5Test" Qt5Test_FOUND "Required for building tests")
|
add_feature_info("Qt5Test" Qt5Test_FOUND "Required for building tests")
|
||||||
if (NOT Qt5Test_FOUND)
|
if (NOT Qt5Test_FOUND)
|
||||||
set(BUILD_TESTING OFF CACHE BOOL "Build the testing tree.")
|
set(BUILD_TESTING OFF CACHE BOOL "Build the testing tree.")
|
||||||
|
@ -55,10 +55,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
find_package(Qt5Multimedia QUIET)
|
find_package(Qt5Multimedia QUIET)
|
||||||
set_package_properties(Qt5Multimedia PROPERTIES
|
set_package_properties(Qt5Multimedia PROPERTIES
|
||||||
PURPOSE "Runtime-only dependency for effect video playback"
|
PURPOSE "Runtime-only dependency for effect video playback"
|
||||||
TYPE RUNTIME
|
TYPE RUNTIME
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# required frameworks by Core
|
# required frameworks by Core
|
||||||
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
|
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
|
||||||
|
@ -92,23 +91,23 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
|
||||||
|
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
set_package_properties(Threads PROPERTIES
|
set_package_properties(Threads PROPERTIES
|
||||||
PURPOSE "Needed for VirtualTerminal support in KWin Wayland"
|
PURPOSE "Needed for VirtualTerminal support in KWin Wayland"
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
)
|
)
|
||||||
|
|
||||||
# optional frameworks
|
# optional frameworks
|
||||||
find_package(KF5Activities ${KF5_MIN_VERSION} CONFIG)
|
find_package(KF5Activities ${KF5_MIN_VERSION} CONFIG)
|
||||||
set_package_properties(KF5Activities PROPERTIES
|
set_package_properties(KF5Activities PROPERTIES
|
||||||
PURPOSE "Enable building of KWin with kactivities support"
|
PURPOSE "Enable building of KWin with kactivities support"
|
||||||
TYPE OPTIONAL
|
TYPE OPTIONAL
|
||||||
)
|
)
|
||||||
add_feature_info("KF5Activities" KF5Activities_FOUND "Enable building of KWin with kactivities support")
|
add_feature_info("KF5Activities" KF5Activities_FOUND "Enable building of KWin with kactivities support")
|
||||||
|
|
||||||
find_package(KF5DocTools ${KF5_MIN_VERSION} CONFIG)
|
find_package(KF5DocTools ${KF5_MIN_VERSION} CONFIG)
|
||||||
set_package_properties(KF5DocTools PROPERTIES
|
set_package_properties(KF5DocTools PROPERTIES
|
||||||
PURPOSE "Enable building documentation"
|
PURPOSE "Enable building documentation"
|
||||||
TYPE OPTIONAL
|
TYPE OPTIONAL
|
||||||
)
|
)
|
||||||
add_feature_info("KF5DocTools" KF5DocTools_FOUND "Enable building documentation")
|
add_feature_info("KF5DocTools" KF5DocTools_FOUND "Enable building documentation")
|
||||||
|
|
||||||
find_package(KF5Kirigami2 ${KF5_MIN_VERSION} CONFIG)
|
find_package(KF5Kirigami2 ${KF5_MIN_VERSION} CONFIG)
|
||||||
|
@ -122,15 +121,17 @@ find_package(KDecoration2 5.13.0 CONFIG REQUIRED)
|
||||||
|
|
||||||
find_package(KScreenLocker CONFIG REQUIRED)
|
find_package(KScreenLocker CONFIG REQUIRED)
|
||||||
set_package_properties(KScreenLocker PROPERTIES
|
set_package_properties(KScreenLocker PROPERTIES
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
PURPOSE "For screenlocker integration in kwin_wayland")
|
PURPOSE "For screenlocker integration in kwin_wayland"
|
||||||
|
)
|
||||||
|
|
||||||
find_package(Breeze 5.9.0 CONFIG)
|
find_package(Breeze 5.9.0 CONFIG)
|
||||||
set_package_properties(Breeze PROPERTIES
|
set_package_properties(Breeze PROPERTIES
|
||||||
TYPE OPTIONAL
|
TYPE OPTIONAL
|
||||||
PURPOSE "For setting the default window decoration plugin")
|
PURPOSE "For setting the default window decoration plugin"
|
||||||
if(${Breeze_FOUND})
|
)
|
||||||
if(${BREEZE_WITH_KDECORATION})
|
if (${Breeze_FOUND})
|
||||||
|
if (${BREEZE_WITH_KDECORATION})
|
||||||
set(HAVE_BREEZE_DECO true)
|
set(HAVE_BREEZE_DECO true)
|
||||||
else()
|
else()
|
||||||
set(HAVE_BREEZE_DECO FALSE)
|
set(HAVE_BREEZE_DECO FALSE)
|
||||||
|
@ -142,68 +143,70 @@ add_feature_info("Breeze-Decoration" HAVE_BREEZE_DECO "Default decoration plugin
|
||||||
|
|
||||||
find_package(EGL)
|
find_package(EGL)
|
||||||
set_package_properties(EGL PROPERTIES
|
set_package_properties(EGL PROPERTIES
|
||||||
TYPE RUNTIME
|
TYPE RUNTIME
|
||||||
PURPOSE "Required to build KWin with EGL support"
|
PURPOSE "Required to build KWin with EGL support"
|
||||||
)
|
)
|
||||||
|
|
||||||
find_package(epoxy)
|
find_package(epoxy)
|
||||||
set_package_properties(epoxy PROPERTIES DESCRIPTION "libepoxy"
|
set_package_properties(epoxy PROPERTIES
|
||||||
URL "https://github.com/anholt/libepoxy"
|
DESCRIPTION "libepoxy"
|
||||||
TYPE REQUIRED
|
URL "https://github.com/anholt/libepoxy"
|
||||||
PURPOSE "OpenGL dispatch library"
|
TYPE REQUIRED
|
||||||
)
|
PURPOSE "OpenGL dispatch library"
|
||||||
|
)
|
||||||
|
|
||||||
set(HAVE_DL_LIBRARY FALSE)
|
set(HAVE_DL_LIBRARY FALSE)
|
||||||
if(epoxy_HAS_GLX)
|
if (epoxy_HAS_GLX)
|
||||||
find_library(DL_LIBRARY dl)
|
find_library(DL_LIBRARY dl)
|
||||||
if(DL_LIBRARY)
|
if (DL_LIBRARY)
|
||||||
set(HAVE_DL_LIBRARY TRUE)
|
set(HAVE_DL_LIBRARY TRUE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Wayland 1.2 REQUIRED COMPONENTS Cursor OPTIONAL_COMPONENTS Egl)
|
find_package(Wayland 1.2 REQUIRED COMPONENTS Cursor OPTIONAL_COMPONENTS Egl)
|
||||||
set_package_properties(Wayland PROPERTIES
|
set_package_properties(Wayland PROPERTIES
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
PURPOSE "Required for building KWin with Wayland support"
|
PURPOSE "Required for building KWin with Wayland support"
|
||||||
)
|
)
|
||||||
add_feature_info("Wayland::EGL" Wayland_Egl_FOUND "Enable building of Wayland backend and QPA with EGL support.")
|
add_feature_info("Wayland::EGL" Wayland_Egl_FOUND "Enable building of Wayland backend and QPA with EGL support.")
|
||||||
set(HAVE_WAYLAND_EGL FALSE)
|
set(HAVE_WAYLAND_EGL FALSE)
|
||||||
if(Wayland_Egl_FOUND)
|
if (Wayland_Egl_FOUND)
|
||||||
set(HAVE_WAYLAND_EGL TRUE)
|
set(HAVE_WAYLAND_EGL TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(XKB 0.7.0)
|
find_package(XKB 0.7.0)
|
||||||
set_package_properties(XKB PROPERTIES
|
set_package_properties(XKB PROPERTIES
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
PURPOSE "Required for building KWin with Wayland support"
|
PURPOSE "Required for building KWin with Wayland support"
|
||||||
)
|
)
|
||||||
|
|
||||||
find_package(Libinput 1.9)
|
find_package(Libinput 1.9)
|
||||||
set_package_properties(Libinput PROPERTIES TYPE REQUIRED PURPOSE "Required for input handling on Wayland.")
|
set_package_properties(Libinput PROPERTIES TYPE REQUIRED PURPOSE "Required for input handling on Wayland.")
|
||||||
|
|
||||||
find_package(UDev)
|
find_package(UDev)
|
||||||
set_package_properties(UDev PROPERTIES URL "http://www.freedesktop.org/software/systemd/libudev/"
|
set_package_properties(UDev PROPERTIES
|
||||||
DESCRIPTION "Linux device library."
|
URL "http://www.freedesktop.org/software/systemd/libudev/"
|
||||||
TYPE REQUIRED
|
DESCRIPTION "Linux device library."
|
||||||
PURPOSE "Required for input handling on Wayland."
|
TYPE REQUIRED
|
||||||
)
|
PURPOSE "Required for input handling on Wayland."
|
||||||
|
)
|
||||||
|
|
||||||
find_package(Libdrm 2.4.62)
|
find_package(Libdrm 2.4.62)
|
||||||
set_package_properties(Libdrm PROPERTIES TYPE OPTIONAL PURPOSE "Required for drm output on Wayland.")
|
set_package_properties(Libdrm PROPERTIES TYPE OPTIONAL PURPOSE "Required for drm output on Wayland.")
|
||||||
set(HAVE_DRM FALSE)
|
set(HAVE_DRM FALSE)
|
||||||
if(Libdrm_FOUND)
|
if (Libdrm_FOUND)
|
||||||
set(HAVE_DRM TRUE)
|
set(HAVE_DRM TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(gbm)
|
find_package(gbm)
|
||||||
set_package_properties(gbm PROPERTIES TYPE OPTIONAL PURPOSE "Required for egl output of drm backend.")
|
set_package_properties(gbm PROPERTIES TYPE OPTIONAL PURPOSE "Required for egl output of drm backend.")
|
||||||
set(HAVE_GBM FALSE)
|
set(HAVE_GBM FALSE)
|
||||||
if(HAVE_DRM AND gbm_FOUND)
|
if (HAVE_DRM AND gbm_FOUND)
|
||||||
set(HAVE_GBM TRUE)
|
set(HAVE_GBM TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(KWIN_BUILD_EGL_STREAM_BACKEND "Enable building of EGLStream based DRM backend" ON)
|
option(KWIN_BUILD_EGL_STREAM_BACKEND "Enable building of EGLStream based DRM backend" ON)
|
||||||
if(HAVE_DRM AND KWIN_BUILD_EGL_STREAM_BACKEND)
|
if (HAVE_DRM AND KWIN_BUILD_EGL_STREAM_BACKEND)
|
||||||
set(HAVE_EGL_STREAMS TRUE)
|
set(HAVE_EGL_STREAMS TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -212,30 +215,30 @@ set_package_properties(libhybris PROPERTIES TYPE OPTIONAL PURPOSE "Required for
|
||||||
set(HAVE_LIBHYBRIS ${libhybris_FOUND})
|
set(HAVE_LIBHYBRIS ${libhybris_FOUND})
|
||||||
|
|
||||||
find_package(X11)
|
find_package(X11)
|
||||||
set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries"
|
set_package_properties(X11 PROPERTIES
|
||||||
URL "https://www.x.org"
|
DESCRIPTION "X11 libraries"
|
||||||
TYPE REQUIRED
|
URL "https://www.x.org"
|
||||||
)
|
TYPE REQUIRED
|
||||||
|
)
|
||||||
add_feature_info("XInput" X11_Xinput_FOUND "Required for poll-free mouse cursor updates")
|
add_feature_info("XInput" X11_Xinput_FOUND "Required for poll-free mouse cursor updates")
|
||||||
set(HAVE_X11_XINPUT ${X11_Xinput_FOUND})
|
set(HAVE_X11_XINPUT ${X11_Xinput_FOUND})
|
||||||
|
|
||||||
# All the required XCB components
|
# All the required XCB components
|
||||||
find_package(XCB 1.10
|
find_package(XCB 1.10 REQUIRED COMPONENTS
|
||||||
REQUIRED COMPONENTS
|
COMPOSITE
|
||||||
COMPOSITE
|
CURSOR
|
||||||
CURSOR
|
DAMAGE
|
||||||
DAMAGE
|
GLX
|
||||||
GLX
|
ICCCM
|
||||||
ICCCM
|
IMAGE
|
||||||
IMAGE
|
KEYSYMS
|
||||||
KEYSYMS
|
RANDR
|
||||||
RANDR
|
RENDER
|
||||||
RENDER
|
SHAPE
|
||||||
SHAPE
|
SHM
|
||||||
SHM
|
SYNC
|
||||||
SYNC
|
XCB
|
||||||
XCB
|
XFIXES
|
||||||
XFIXES
|
|
||||||
)
|
)
|
||||||
set_package_properties(XCB PROPERTIES TYPE REQUIRED)
|
set_package_properties(XCB PROPERTIES TYPE REQUIRED)
|
||||||
|
|
||||||
|
@ -247,8 +250,9 @@ add_feature_info("XCB-ICCCM" XCB_ICCCM_FOUND "Required for building test applica
|
||||||
|
|
||||||
find_package(X11_XCB)
|
find_package(X11_XCB)
|
||||||
set_package_properties(X11_XCB PROPERTIES
|
set_package_properties(X11_XCB PROPERTIES
|
||||||
PURPOSE "Required for building X11 windowed backend of kwin_wayland"
|
PURPOSE "Required for building X11 windowed backend of kwin_wayland"
|
||||||
TYPE OPTIONAL)
|
TYPE OPTIONAL
|
||||||
|
)
|
||||||
|
|
||||||
# dependencies for QPA plugin
|
# dependencies for QPA plugin
|
||||||
find_package(Qt5FontDatabaseSupport REQUIRED)
|
find_package(Qt5FontDatabaseSupport REQUIRED)
|
||||||
|
@ -256,16 +260,17 @@ find_package(Qt5ThemeSupport REQUIRED)
|
||||||
find_package(Qt5EventDispatcherSupport REQUIRED)
|
find_package(Qt5EventDispatcherSupport REQUIRED)
|
||||||
|
|
||||||
find_package(Freetype REQUIRED)
|
find_package(Freetype REQUIRED)
|
||||||
set_package_properties(Freetype PROPERTIES DESCRIPTION "A font rendering engine"
|
set_package_properties(Freetype PROPERTIES
|
||||||
URL "https://www.freetype.org"
|
DESCRIPTION "A font rendering engine"
|
||||||
TYPE REQUIRED
|
URL "https://www.freetype.org"
|
||||||
PURPOSE "Needed for KWin's QPA plugin."
|
TYPE REQUIRED
|
||||||
)
|
PURPOSE "Needed for KWin's QPA plugin."
|
||||||
|
)
|
||||||
find_package(Fontconfig REQUIRED)
|
find_package(Fontconfig REQUIRED)
|
||||||
set_package_properties(Fontconfig PROPERTIES
|
set_package_properties(Fontconfig PROPERTIES
|
||||||
TYPE REQUIRED
|
TYPE REQUIRED
|
||||||
PURPOSE "Needed for KWin's QPA plugin."
|
PURPOSE "Needed for KWin's QPA plugin."
|
||||||
)
|
)
|
||||||
|
|
||||||
find_package(Xwayland)
|
find_package(Xwayland)
|
||||||
set_package_properties(Xwayland PROPERTIES
|
set_package_properties(Xwayland PROPERTIES
|
||||||
|
@ -273,7 +278,7 @@ set_package_properties(Xwayland PROPERTIES
|
||||||
DESCRIPTION "Xwayland X server"
|
DESCRIPTION "Xwayland X server"
|
||||||
TYPE RUNTIME
|
TYPE RUNTIME
|
||||||
PURPOSE "Needed for running kwin_wayland"
|
PURPOSE "Needed for running kwin_wayland"
|
||||||
)
|
)
|
||||||
|
|
||||||
find_package(Libcap)
|
find_package(Libcap)
|
||||||
set_package_properties(Libcap PROPERTIES
|
set_package_properties(Libcap PROPERTIES
|
||||||
|
@ -309,8 +314,8 @@ set(KWIN_INTERNAL_NAME_WAYLAND "kwin_wayland")
|
||||||
set(KWIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
set(KWIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
# KWIN_HAVE_XRENDER_COMPOSITING - whether XRender-based compositing support is available: may be disabled
|
# KWIN_HAVE_XRENDER_COMPOSITING - whether XRender-based compositing support is available: may be disabled
|
||||||
if( KWIN_BUILD_XRENDER_COMPOSITING )
|
if (KWIN_BUILD_XRENDER_COMPOSITING)
|
||||||
set( KWIN_HAVE_XRENDER_COMPOSITING 1 )
|
set(KWIN_HAVE_XRENDER_COMPOSITING 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(${XKB_INCLUDE_DIR})
|
include_directories(${XKB_INCLUDE_DIR})
|
||||||
|
@ -357,7 +362,7 @@ add_feature_info("SCHED_RESET_ON_FORK"
|
||||||
HAVE_SCHED_RESET_ON_FORK
|
HAVE_SCHED_RESET_ON_FORK
|
||||||
"Required for running kwin_wayland with real-time scheduling")
|
"Required for running kwin_wayland with real-time scheduling")
|
||||||
|
|
||||||
configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h )
|
configure_file(config-kwin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwin.h)
|
||||||
|
|
||||||
########### global ###############
|
########### global ###############
|
||||||
set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml)
|
set(kwin_effects_dbus_xml ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.kwin.Effects.xml)
|
||||||
|
@ -369,18 +374,18 @@ include_directories(BEFORE
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/effects
|
${CMAKE_CURRENT_SOURCE_DIR}/effects
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tabbox
|
${CMAKE_CURRENT_SOURCE_DIR}/tabbox
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/platformsupport
|
${CMAKE_CURRENT_SOURCE_DIR}/platformsupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory( libkwineffects )
|
add_subdirectory(libkwineffects)
|
||||||
if(KWIN_BUILD_KCMS)
|
if (KWIN_BUILD_KCMS)
|
||||||
add_subdirectory( kcmkwin )
|
add_subdirectory(kcmkwin)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory( data )
|
add_subdirectory(data)
|
||||||
|
|
||||||
add_subdirectory( effects )
|
add_subdirectory(effects)
|
||||||
add_subdirectory( scripts )
|
add_subdirectory(scripts)
|
||||||
add_subdirectory( tabbox )
|
add_subdirectory(tabbox)
|
||||||
add_subdirectory(scripting)
|
add_subdirectory(scripting)
|
||||||
add_subdirectory(helpers)
|
add_subdirectory(helpers)
|
||||||
|
|
||||||
|
@ -493,7 +498,7 @@ set(kwin_KDEINIT_SRCS
|
||||||
xcbutils.cpp
|
xcbutils.cpp
|
||||||
xkb.cpp
|
xkb.cpp
|
||||||
xwl/xwayland_interface.cpp
|
xwl/xwayland_interface.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
include(ECMQtDeclareLoggingCategory)
|
include(ECMQtDeclareLoggingCategory)
|
||||||
ecm_qt_declare_logging_category(kwin_KDEINIT_SRCS
|
ecm_qt_declare_logging_category(kwin_KDEINIT_SRCS
|
||||||
|
@ -507,10 +512,9 @@ ecm_qt_declare_logging_category(kwin_KDEINIT_SRCS
|
||||||
Critical
|
Critical
|
||||||
)
|
)
|
||||||
|
|
||||||
if(KWIN_BUILD_TABBOX)
|
if (KWIN_BUILD_TABBOX)
|
||||||
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
||||||
set(
|
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
||||||
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
||||||
tabbox/clientmodel.cpp
|
tabbox/clientmodel.cpp
|
||||||
tabbox/desktopchain.cpp
|
tabbox/desktopchain.cpp
|
||||||
tabbox/desktopmodel.cpp
|
tabbox/desktopmodel.cpp
|
||||||
|
@ -520,37 +524,34 @@ if(KWIN_BUILD_TABBOX)
|
||||||
tabbox/tabboxconfig.cpp
|
tabbox/tabboxconfig.cpp
|
||||||
tabbox/tabboxhandler.cpp
|
tabbox/tabboxhandler.cpp
|
||||||
tabbox/x11_filter.cpp
|
tabbox/x11_filter.cpp
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(KWIN_BUILD_ACTIVITIES)
|
if (KWIN_BUILD_ACTIVITIES)
|
||||||
set(
|
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
||||||
kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
|
||||||
activities.cpp
|
activities.cpp
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (HAVE_LINUX_VT_H)
|
if (HAVE_LINUX_VT_H)
|
||||||
set(kwin_KDEINIT_SRCS
|
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS}
|
||||||
${kwin_KDEINIT_SRCS}
|
virtual_terminal.cpp
|
||||||
virtual_terminal.cpp
|
)
|
||||||
)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
kconfig_add_kcfg_files(kwin_KDEINIT_SRCS settings.kcfgc)
|
kconfig_add_kcfg_files(kwin_KDEINIT_SRCS settings.kcfgc)
|
||||||
kconfig_add_kcfg_files(kwin_KDEINIT_SRCS colorcorrection/colorcorrect_settings.kcfgc)
|
kconfig_add_kcfg_files(kwin_KDEINIT_SRCS colorcorrection/colorcorrect_settings.kcfgc)
|
||||||
|
|
||||||
qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.KWin.xml dbusinterface.h KWin::DBusInterface )
|
qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.KWin.xml dbusinterface.h KWin::DBusInterface)
|
||||||
qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.kwin.Compositing.xml dbusinterface.h KWin::CompositorDBusInterface )
|
qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.kwin.Compositing.xml dbusinterface.h KWin::CompositorDBusInterface)
|
||||||
qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.kwin.ColorCorrect.xml colorcorrection/colorcorrectdbusinterface.h KWin::ColorCorrect::ColorCorrectDBusInterface )
|
qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.kwin.ColorCorrect.xml colorcorrection/colorcorrectdbusinterface.h KWin::ColorCorrect::ColorCorrectDBusInterface)
|
||||||
qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS ${kwin_effects_dbus_xml} effects.h KWin::EffectsHandlerImpl )
|
qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS ${kwin_effects_dbus_xml} effects.h KWin::EffectsHandlerImpl)
|
||||||
qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.kwin.OrientationSensor.xml orientation_sensor.h KWin::OrientationSensor)
|
qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.kwin.OrientationSensor.xml orientation_sensor.h KWin::OrientationSensor)
|
||||||
qt5_add_dbus_adaptor( kwin_KDEINIT_SRCS org.kde.KWin.VirtualDesktopManager.xml dbusinterface.h KWin::VirtualDesktopManagerDBusInterface )
|
qt5_add_dbus_adaptor(kwin_KDEINIT_SRCS org.kde.KWin.VirtualDesktopManager.xml dbusinterface.h KWin::VirtualDesktopManagerDBusInterface)
|
||||||
|
|
||||||
qt5_add_dbus_interface( kwin_KDEINIT_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/kf5_org.freedesktop.ScreenSaver.xml screenlocker_interface )
|
qt5_add_dbus_interface(kwin_KDEINIT_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/kf5_org.freedesktop.ScreenSaver.xml screenlocker_interface)
|
||||||
qt5_add_dbus_interface( kwin_KDEINIT_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/org.kde.screensaver.xml kscreenlocker_interface )
|
qt5_add_dbus_interface(kwin_KDEINIT_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/org.kde.screensaver.xml kscreenlocker_interface)
|
||||||
|
qt5_add_dbus_interface(kwin_KDEINIT_SRCS org.kde.kappmenu.xml appmenu_interface)
|
||||||
qt5_add_dbus_interface( kwin_KDEINIT_SRCS org.kde.kappmenu.xml appmenu_interface )
|
|
||||||
|
|
||||||
ki18n_wrap_ui(kwin_KDEINIT_SRCS
|
ki18n_wrap_ui(kwin_KDEINIT_SRCS
|
||||||
debug_console.ui
|
debug_console.ui
|
||||||
|
@ -618,7 +619,7 @@ set(kwin_WAYLAND_LIBS
|
||||||
${CMAKE_THREAD_LIBS_INIT}
|
${CMAKE_THREAD_LIBS_INIT}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(KWIN_BUILD_ACTIVITIES)
|
if (KWIN_BUILD_ACTIVITIES)
|
||||||
set(kwin_KDE_LIBS ${kwin_KDE_LIBS} KF5::Activities)
|
set(kwin_KDE_LIBS ${kwin_KDE_LIBS} KF5::Activities)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -638,7 +639,7 @@ add_library(kwin SHARED ${kwin_KDEINIT_SRCS})
|
||||||
set_target_properties(kwin PROPERTIES
|
set_target_properties(kwin PROPERTIES
|
||||||
VERSION ${PROJECT_VERSION}
|
VERSION ${PROJECT_VERSION}
|
||||||
SOVERSION ${PROJECT_VERSION_MAJOR}
|
SOVERSION ${PROJECT_VERSION_MAJOR}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(kwin ${kwinLibs})
|
target_link_libraries(kwin ${kwinLibs})
|
||||||
generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h)
|
generate_export_header(kwin EXPORT_FILE_NAME kwin_export.h)
|
||||||
|
@ -648,9 +649,9 @@ target_link_libraries(kwin kwinglutils ${epoxy_LIBRARY})
|
||||||
kf5_add_kdeinit_executable(kwin_x11 main_x11.cpp)
|
kf5_add_kdeinit_executable(kwin_x11 main_x11.cpp)
|
||||||
target_link_libraries(kdeinit_kwin_x11 kwin KF5::Crash Qt5::X11Extras)
|
target_link_libraries(kdeinit_kwin_x11 kwin KF5::Crash Qt5::X11Extras)
|
||||||
|
|
||||||
install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP )
|
install(TARGETS kwin ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
|
||||||
install(TARGETS kdeinit_kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
install(TARGETS kdeinit_kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||||
install(TARGETS kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
install(TARGETS kwin_x11 ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||||
|
|
||||||
set(kwin_XWAYLAND_SRCS
|
set(kwin_XWAYLAND_SRCS
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/xwl/clipboard.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/xwl/clipboard.cpp
|
||||||
|
@ -663,7 +664,7 @@ set(kwin_XWAYLAND_SRCS
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/xwl/selection_source.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/xwl/selection_source.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/xwl/transfer.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/xwl/transfer.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/xwl/xwayland.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/xwl/xwayland.cpp
|
||||||
)
|
)
|
||||||
include(ECMQtDeclareLoggingCategory)
|
include(ECMQtDeclareLoggingCategory)
|
||||||
ecm_qt_declare_logging_category(kwin_XWAYLAND_SRCS
|
ecm_qt_declare_logging_category(kwin_XWAYLAND_SRCS
|
||||||
HEADER
|
HEADER
|
||||||
|
@ -679,7 +680,7 @@ ecm_qt_declare_logging_category(kwin_XWAYLAND_SRCS
|
||||||
set(kwin_WAYLAND_SRCS
|
set(kwin_WAYLAND_SRCS
|
||||||
main_wayland.cpp
|
main_wayland.cpp
|
||||||
tabletmodemanager.cpp
|
tabletmodemanager.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(kwin_wayland ${kwin_WAYLAND_SRCS} ${kwin_XWAYLAND_SRCS})
|
add_executable(kwin_wayland ${kwin_WAYLAND_SRCS} ${kwin_XWAYLAND_SRCS})
|
||||||
target_link_libraries(kwin_wayland kwin KF5::Crash)
|
target_link_libraries(kwin_wayland kwin KF5::Crash)
|
||||||
|
@ -687,7 +688,7 @@ if (HAVE_LIBCAP)
|
||||||
target_link_libraries(kwin_wayland ${Libcap_LIBRARIES})
|
target_link_libraries(kwin_wayland ${Libcap_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS kwin_wayland ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
install(TARGETS kwin_wayland ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||||
if (HAVE_LIBCAP)
|
if (HAVE_LIBCAP)
|
||||||
install(
|
install(
|
||||||
CODE "execute_process(
|
CODE "execute_process(
|
||||||
|
@ -703,9 +704,9 @@ add_subdirectory(plugins)
|
||||||
|
|
||||||
########### install files ###############
|
########### install files ###############
|
||||||
|
|
||||||
install( FILES kwin.kcfg DESTINATION ${KCFG_INSTALL_DIR} RENAME ${KWIN_NAME}.kcfg )
|
install(FILES kwin.kcfg DESTINATION ${KCFG_INSTALL_DIR} RENAME ${KWIN_NAME}.kcfg)
|
||||||
install( FILES colorcorrection/colorcorrect_settings.kcfg DESTINATION ${KCFG_INSTALL_DIR} RENAME ${KWIN_NAME}_colorcorrect.kcfg )
|
install(FILES colorcorrection/colorcorrect_settings.kcfg DESTINATION ${KCFG_INSTALL_DIR} RENAME ${KWIN_NAME}_colorcorrect.kcfg)
|
||||||
install( FILES kwin.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR} RENAME ${KWIN_NAME}.notifyrc)
|
install(FILES kwin.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR} RENAME ${KWIN_NAME}.notifyrc)
|
||||||
install(
|
install(
|
||||||
FILES
|
FILES
|
||||||
org.kde.KWin.VirtualDesktopManager.xml
|
org.kde.KWin.VirtualDesktopManager.xml
|
||||||
|
@ -716,10 +717,10 @@ install(
|
||||||
DESTINATION
|
DESTINATION
|
||||||
${KDE_INSTALL_DBUSINTERFACEDIR}
|
${KDE_INSTALL_DBUSINTERFACEDIR}
|
||||||
)
|
)
|
||||||
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/kwin_export.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kwin_export.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|
||||||
|
|
||||||
# Install the KWin/Script service type
|
# Install the KWin/Script service type
|
||||||
install( FILES scripting/kwinscript.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
|
install(FILES scripting/kwinscript.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
||||||
|
|
||||||
add_subdirectory(qml)
|
add_subdirectory(qml)
|
||||||
|
|
||||||
|
|
|
@ -12,38 +12,38 @@ add_subdirectory(tabbox)
|
||||||
########################################################
|
########################################################
|
||||||
# Test ScreenPaintData
|
# Test ScreenPaintData
|
||||||
########################################################
|
########################################################
|
||||||
set( testScreenPaintData_SRCS test_screen_paint_data.cpp )
|
set(testScreenPaintData_SRCS test_screen_paint_data.cpp)
|
||||||
add_executable(testScreenPaintData ${testScreenPaintData_SRCS})
|
add_executable(testScreenPaintData ${testScreenPaintData_SRCS})
|
||||||
target_link_libraries( testScreenPaintData kwineffects Qt5::Test Qt5::Widgets KF5::WindowSystem)
|
target_link_libraries(testScreenPaintData kwineffects Qt5::Test Qt5::Widgets KF5::WindowSystem)
|
||||||
add_test(NAME kwin-testScreenPaintData COMMAND testScreenPaintData)
|
add_test(NAME kwin-testScreenPaintData COMMAND testScreenPaintData)
|
||||||
ecm_mark_as_test(testScreenPaintData)
|
ecm_mark_as_test(testScreenPaintData)
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Test WindowPaintData
|
# Test WindowPaintData
|
||||||
########################################################
|
########################################################
|
||||||
set( testWindowPaintData_SRCS test_window_paint_data.cpp )
|
set(testWindowPaintData_SRCS test_window_paint_data.cpp)
|
||||||
add_executable(testWindowPaintData ${testWindowPaintData_SRCS})
|
add_executable(testWindowPaintData ${testWindowPaintData_SRCS})
|
||||||
target_link_libraries( testWindowPaintData kwineffects Qt5::Widgets Qt5::Test )
|
target_link_libraries(testWindowPaintData kwineffects Qt5::Widgets Qt5::Test )
|
||||||
add_test(NAME kwin-testWindowPaintData COMMAND testWindowPaintData)
|
add_test(NAME kwin-testWindowPaintData COMMAND testWindowPaintData)
|
||||||
ecm_mark_as_test(testWindowPaintData)
|
ecm_mark_as_test(testWindowPaintData)
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Test VirtualDesktopManager
|
# Test VirtualDesktopManager
|
||||||
########################################################
|
########################################################
|
||||||
set( testVirtualDesktops_SRCS
|
set(testVirtualDesktops_SRCS
|
||||||
test_virtual_desktops.cpp
|
../virtualdesktops.cpp
|
||||||
../virtualdesktops.cpp
|
test_virtual_desktops.cpp
|
||||||
)
|
)
|
||||||
add_executable(testVirtualDesktops ${testVirtualDesktops_SRCS})
|
add_executable(testVirtualDesktops ${testVirtualDesktops_SRCS})
|
||||||
|
|
||||||
target_link_libraries( testVirtualDesktops
|
target_link_libraries(testVirtualDesktops
|
||||||
Qt5::Test
|
KF5::ConfigCore
|
||||||
Qt5::Widgets
|
KF5::GlobalAccel
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::GlobalAccel
|
KF5::WaylandServer
|
||||||
KF5::ConfigCore
|
KF5::WindowSystem
|
||||||
KF5::WindowSystem
|
Qt5::Test
|
||||||
KF5::WaylandServer
|
Qt5::Widgets
|
||||||
)
|
)
|
||||||
add_test(NAME kwin-testVirtualDesktops COMMAND testVirtualDesktops)
|
add_test(NAME kwin-testVirtualDesktops COMMAND testVirtualDesktops)
|
||||||
ecm_mark_as_test(testVirtualDesktops)
|
ecm_mark_as_test(testVirtualDesktops)
|
||||||
|
@ -51,23 +51,23 @@ ecm_mark_as_test(testVirtualDesktops)
|
||||||
########################################################
|
########################################################
|
||||||
# Test ClientMachine
|
# Test ClientMachine
|
||||||
########################################################
|
########################################################
|
||||||
set( testClientMachine_SRCS
|
set(testClientMachine_SRCS
|
||||||
test_client_machine.cpp
|
../client_machine.cpp
|
||||||
../client_machine.cpp
|
test_client_machine.cpp
|
||||||
)
|
)
|
||||||
add_executable( testClientMachine ${testClientMachine_SRCS} )
|
add_executable(testClientMachine ${testClientMachine_SRCS})
|
||||||
set_target_properties(testClientMachine PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
set_target_properties(testClientMachine PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
||||||
|
|
||||||
target_link_libraries( testClientMachine
|
target_link_libraries(testClientMachine
|
||||||
Qt5::Concurrent
|
${X11_X11_LIB} # to make jenkins happy
|
||||||
Qt5::Test
|
KF5::ConfigCore
|
||||||
Qt5::X11Extras
|
KF5::WindowSystem
|
||||||
Qt5::Widgets
|
Qt5::Concurrent
|
||||||
KF5::ConfigCore
|
Qt5::Test
|
||||||
KF5::WindowSystem
|
Qt5::Widgets
|
||||||
XCB::XCB
|
Qt5::X11Extras
|
||||||
XCB::XFIXES
|
XCB::XCB
|
||||||
${X11_X11_LIB} # to make jenkins happy
|
XCB::XFIXES
|
||||||
)
|
)
|
||||||
add_test(NAME kwin-testClientMachine COMMAND testClientMachine)
|
add_test(NAME kwin-testClientMachine COMMAND testClientMachine)
|
||||||
ecm_mark_as_test(testClientMachine)
|
ecm_mark_as_test(testClientMachine)
|
||||||
|
@ -75,33 +75,33 @@ ecm_mark_as_test(testClientMachine)
|
||||||
########################################################
|
########################################################
|
||||||
# Test XcbWrapper
|
# Test XcbWrapper
|
||||||
########################################################
|
########################################################
|
||||||
set( testXcbWrapper_SRCS
|
set(testXcbWrapper_SRCS
|
||||||
test_xcb_wrapper.cpp
|
test_xcb_wrapper.cpp
|
||||||
)
|
)
|
||||||
add_executable( testXcbWrapper ${testXcbWrapper_SRCS} )
|
add_executable(testXcbWrapper ${testXcbWrapper_SRCS})
|
||||||
|
|
||||||
target_link_libraries( testXcbWrapper
|
target_link_libraries(testXcbWrapper
|
||||||
Qt5::Test
|
KF5::ConfigCore
|
||||||
Qt5::X11Extras
|
KF5::WindowSystem
|
||||||
Qt5::Widgets
|
Qt5::Test
|
||||||
KF5::ConfigCore
|
Qt5::Widgets
|
||||||
KF5::WindowSystem
|
Qt5::X11Extras
|
||||||
XCB::XCB
|
XCB::XCB
|
||||||
)
|
)
|
||||||
add_test(NAME kwin-testXcbWrapper COMMAND testXcbWrapper)
|
add_test(NAME kwin-testXcbWrapper COMMAND testXcbWrapper)
|
||||||
ecm_mark_as_test(testXcbWrapper)
|
ecm_mark_as_test(testXcbWrapper)
|
||||||
|
|
||||||
if (XCB_ICCCM_FOUND)
|
if (XCB_ICCCM_FOUND)
|
||||||
add_executable( testXcbSizeHints test_xcb_size_hints.cpp )
|
add_executable(testXcbSizeHints test_xcb_size_hints.cpp)
|
||||||
set_target_properties(testXcbSizeHints PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
set_target_properties(testXcbSizeHints PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
||||||
target_link_libraries( testXcbSizeHints
|
target_link_libraries(testXcbSizeHints
|
||||||
Qt5::Test
|
KF5::ConfigCore
|
||||||
Qt5::X11Extras
|
KF5::WindowSystem
|
||||||
Qt5::Widgets
|
Qt5::Test
|
||||||
KF5::ConfigCore
|
Qt5::Widgets
|
||||||
KF5::WindowSystem
|
Qt5::X11Extras
|
||||||
XCB::XCB
|
XCB::ICCCM
|
||||||
XCB::ICCCM
|
XCB::XCB
|
||||||
)
|
)
|
||||||
add_test(NAME kwin-testXcbSizeHints COMMAND testXcbSizeHints)
|
add_test(NAME kwin-testXcbSizeHints COMMAND testXcbSizeHints)
|
||||||
ecm_mark_as_test(testXcbSizeHints)
|
ecm_mark_as_test(testXcbSizeHints)
|
||||||
|
@ -110,18 +110,18 @@ endif()
|
||||||
########################################################
|
########################################################
|
||||||
# Test XcbWindow
|
# Test XcbWindow
|
||||||
########################################################
|
########################################################
|
||||||
set( testXcbWindow_SRCS
|
set(testXcbWindow_SRCS
|
||||||
test_xcb_window.cpp
|
test_xcb_window.cpp
|
||||||
)
|
)
|
||||||
add_executable( testXcbWindow ${testXcbWindow_SRCS} )
|
add_executable(testXcbWindow ${testXcbWindow_SRCS})
|
||||||
|
|
||||||
target_link_libraries( testXcbWindow
|
target_link_libraries(testXcbWindow
|
||||||
Qt5::Test
|
KF5::ConfigCore
|
||||||
Qt5::X11Extras
|
KF5::WindowSystem
|
||||||
Qt5::Widgets
|
Qt5::Test
|
||||||
KF5::ConfigCore
|
Qt5::Widgets
|
||||||
KF5::WindowSystem
|
Qt5::X11Extras
|
||||||
XCB::XCB
|
XCB::XCB
|
||||||
)
|
)
|
||||||
add_test(NAME kwin-testXcbWindow COMMAND testXcbWindow)
|
add_test(NAME kwin-testXcbWindow COMMAND testXcbWindow)
|
||||||
ecm_mark_as_test(testXcbWindow)
|
ecm_mark_as_test(testXcbWindow)
|
||||||
|
@ -129,21 +129,21 @@ ecm_mark_as_test(testXcbWindow)
|
||||||
########################################################
|
########################################################
|
||||||
# Test BuiltInEffectLoader
|
# Test BuiltInEffectLoader
|
||||||
########################################################
|
########################################################
|
||||||
set( testBuiltInEffectLoader_SRCS
|
set(testBuiltInEffectLoader_SRCS
|
||||||
test_builtin_effectloader.cpp
|
|
||||||
mock_effectshandler.cpp
|
|
||||||
../effectloader.cpp
|
../effectloader.cpp
|
||||||
|
mock_effectshandler.cpp
|
||||||
|
test_builtin_effectloader.cpp
|
||||||
)
|
)
|
||||||
add_executable( testBuiltInEffectLoader ${testBuiltInEffectLoader_SRCS})
|
add_executable(testBuiltInEffectLoader ${testBuiltInEffectLoader_SRCS})
|
||||||
set_target_properties(testBuiltInEffectLoader PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
set_target_properties(testBuiltInEffectLoader PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
||||||
|
|
||||||
target_link_libraries(testBuiltInEffectLoader
|
target_link_libraries(testBuiltInEffectLoader
|
||||||
|
KF5::Package
|
||||||
Qt5::Concurrent
|
Qt5::Concurrent
|
||||||
Qt5::Test
|
Qt5::Test
|
||||||
Qt5::X11Extras
|
Qt5::X11Extras
|
||||||
KF5::Package
|
|
||||||
kwineffects
|
|
||||||
kwin4_effect_builtins
|
kwin4_effect_builtins
|
||||||
|
kwineffects
|
||||||
)
|
)
|
||||||
|
|
||||||
add_test(NAME kwin-testBuiltInEffectLoader COMMAND testBuiltInEffectLoader)
|
add_test(NAME kwin-testBuiltInEffectLoader COMMAND testBuiltInEffectLoader)
|
||||||
|
@ -153,37 +153,37 @@ ecm_mark_as_test(testBuiltInEffectLoader)
|
||||||
# Test ScriptedEffectLoader
|
# Test ScriptedEffectLoader
|
||||||
########################################################
|
########################################################
|
||||||
include_directories(${KWIN_SOURCE_DIR})
|
include_directories(${KWIN_SOURCE_DIR})
|
||||||
set( testScriptedEffectLoader_SRCS
|
set(testScriptedEffectLoader_SRCS
|
||||||
test_scripted_effectloader.cpp
|
../effectloader.cpp
|
||||||
|
../orientation_sensor.cpp
|
||||||
|
../screens.cpp
|
||||||
|
../scripting/scriptedeffect.cpp
|
||||||
|
../scripting/scripting_logging.cpp
|
||||||
|
../scripting/scriptingutils.cpp
|
||||||
mock_abstract_client.cpp
|
mock_abstract_client.cpp
|
||||||
mock_effectshandler.cpp
|
mock_effectshandler.cpp
|
||||||
mock_screens.cpp
|
mock_screens.cpp
|
||||||
mock_workspace.cpp
|
mock_workspace.cpp
|
||||||
../effectloader.cpp
|
test_scripted_effectloader.cpp
|
||||||
../scripting/scriptedeffect.cpp
|
|
||||||
../scripting/scriptingutils.cpp
|
|
||||||
../scripting/scripting_logging.cpp
|
|
||||||
../screens.cpp
|
|
||||||
../orientation_sensor.cpp
|
|
||||||
)
|
)
|
||||||
kconfig_add_kcfg_files(testScriptedEffectLoader_SRCS ../settings.kcfgc)
|
kconfig_add_kcfg_files(testScriptedEffectLoader_SRCS ../settings.kcfgc)
|
||||||
qt5_add_dbus_adaptor( testScriptedEffectLoader_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../org.kde.kwin.OrientationSensor.xml ${CMAKE_CURRENT_SOURCE_DIR}/../orientation_sensor.h KWin::OrientationSensor)
|
qt5_add_dbus_adaptor(testScriptedEffectLoader_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../org.kde.kwin.OrientationSensor.xml ${CMAKE_CURRENT_SOURCE_DIR}/../orientation_sensor.h KWin::OrientationSensor)
|
||||||
add_executable( testScriptedEffectLoader ${testScriptedEffectLoader_SRCS})
|
add_executable(testScriptedEffectLoader ${testScriptedEffectLoader_SRCS})
|
||||||
|
|
||||||
target_link_libraries(testScriptedEffectLoader
|
target_link_libraries(testScriptedEffectLoader
|
||||||
|
KF5::ConfigGui
|
||||||
|
KF5::GlobalAccel
|
||||||
|
KF5::I18n
|
||||||
|
KF5::Notifications
|
||||||
|
KF5::Package
|
||||||
Qt5::Concurrent
|
Qt5::Concurrent
|
||||||
Qt5::Qml
|
Qt5::Qml
|
||||||
Qt5::Script
|
Qt5::Script
|
||||||
Qt5::Sensors
|
Qt5::Sensors
|
||||||
Qt5::Test
|
Qt5::Test
|
||||||
Qt5::X11Extras
|
Qt5::X11Extras
|
||||||
KF5::ConfigGui
|
|
||||||
KF5::GlobalAccel
|
|
||||||
KF5::I18n
|
|
||||||
KF5::Notifications
|
|
||||||
KF5::Package
|
|
||||||
kwineffects
|
|
||||||
kwin4_effect_builtins
|
kwin4_effect_builtins
|
||||||
|
kwineffects
|
||||||
)
|
)
|
||||||
|
|
||||||
add_test(NAME kwin-testScriptedEffectLoader COMMAND testScriptedEffectLoader)
|
add_test(NAME kwin-testScriptedEffectLoader COMMAND testScriptedEffectLoader)
|
||||||
|
@ -192,20 +192,20 @@ ecm_mark_as_test(testScriptedEffectLoader)
|
||||||
########################################################
|
########################################################
|
||||||
# Test PluginEffectLoader
|
# Test PluginEffectLoader
|
||||||
########################################################
|
########################################################
|
||||||
set( testPluginEffectLoader_SRCS
|
set(testPluginEffectLoader_SRCS
|
||||||
test_plugin_effectloader.cpp
|
|
||||||
mock_effectshandler.cpp
|
|
||||||
../effectloader.cpp
|
../effectloader.cpp
|
||||||
|
mock_effectshandler.cpp
|
||||||
|
test_plugin_effectloader.cpp
|
||||||
)
|
)
|
||||||
add_executable( testPluginEffectLoader ${testPluginEffectLoader_SRCS})
|
add_executable(testPluginEffectLoader ${testPluginEffectLoader_SRCS})
|
||||||
|
|
||||||
target_link_libraries(testPluginEffectLoader
|
target_link_libraries(testPluginEffectLoader
|
||||||
|
KF5::Package
|
||||||
Qt5::Concurrent
|
Qt5::Concurrent
|
||||||
Qt5::Test
|
Qt5::Test
|
||||||
Qt5::X11Extras
|
Qt5::X11Extras
|
||||||
KF5::Package
|
|
||||||
kwineffects
|
|
||||||
kwin4_effect_builtins
|
kwin4_effect_builtins
|
||||||
|
kwineffects
|
||||||
)
|
)
|
||||||
|
|
||||||
add_test(NAME kwin-testPluginEffectLoader COMMAND testPluginEffectLoader)
|
add_test(NAME kwin-testPluginEffectLoader COMMAND testPluginEffectLoader)
|
||||||
|
@ -228,32 +228,32 @@ target_link_libraries(effectversionplugin kwineffects)
|
||||||
########################################################
|
########################################################
|
||||||
# Test Screens
|
# Test Screens
|
||||||
########################################################
|
########################################################
|
||||||
set( testScreens_SRCS
|
set(testScreens_SRCS
|
||||||
test_screens.cpp
|
../orientation_sensor.cpp
|
||||||
|
../screens.cpp
|
||||||
|
../x11eventfilter.cpp
|
||||||
mock_abstract_client.cpp
|
mock_abstract_client.cpp
|
||||||
mock_client.cpp
|
mock_client.cpp
|
||||||
mock_screens.cpp
|
mock_screens.cpp
|
||||||
mock_workspace.cpp
|
mock_workspace.cpp
|
||||||
../screens.cpp
|
test_screens.cpp
|
||||||
../x11eventfilter.cpp
|
|
||||||
../orientation_sensor.cpp
|
|
||||||
)
|
)
|
||||||
kconfig_add_kcfg_files(testScreens_SRCS ../settings.kcfgc)
|
kconfig_add_kcfg_files(testScreens_SRCS ../settings.kcfgc)
|
||||||
qt5_add_dbus_adaptor( testScreens_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../org.kde.kwin.OrientationSensor.xml ${CMAKE_CURRENT_SOURCE_DIR}/../orientation_sensor.h KWin::OrientationSensor)
|
qt5_add_dbus_adaptor(testScreens_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../org.kde.kwin.OrientationSensor.xml ${CMAKE_CURRENT_SOURCE_DIR}/../orientation_sensor.h KWin::OrientationSensor)
|
||||||
|
|
||||||
add_executable( testScreens ${testScreens_SRCS})
|
add_executable(testScreens ${testScreens_SRCS})
|
||||||
target_include_directories(testScreens BEFORE PRIVATE ./)
|
target_include_directories(testScreens BEFORE PRIVATE ./)
|
||||||
target_link_libraries(testScreens
|
target_link_libraries(testScreens
|
||||||
Qt5::DBus
|
|
||||||
Qt5::Sensors
|
|
||||||
Qt5::Test
|
|
||||||
Qt5::X11Extras
|
|
||||||
Qt5::Widgets
|
|
||||||
KF5::ConfigCore
|
KF5::ConfigCore
|
||||||
KF5::ConfigGui
|
KF5::ConfigGui
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Notifications
|
KF5::Notifications
|
||||||
KF5::WindowSystem
|
KF5::WindowSystem
|
||||||
|
Qt5::DBus
|
||||||
|
Qt5::Sensors
|
||||||
|
Qt5::Test
|
||||||
|
Qt5::Widgets
|
||||||
|
Qt5::X11Extras
|
||||||
)
|
)
|
||||||
|
|
||||||
add_test(NAME kwin_testScreens COMMAND testScreens)
|
add_test(NAME kwin_testScreens COMMAND testScreens)
|
||||||
|
@ -262,48 +262,48 @@ ecm_mark_as_test(testScreens)
|
||||||
########################################################
|
########################################################
|
||||||
# Test ScreenEdges
|
# Test ScreenEdges
|
||||||
########################################################
|
########################################################
|
||||||
set( testScreenEdges_SRCS
|
set(testScreenEdges_SRCS
|
||||||
test_screen_edges.cpp
|
../atoms.cpp
|
||||||
|
../gestures.cpp
|
||||||
|
../orientation_sensor.cpp
|
||||||
|
../plugins/platforms/x11/standalone/edge.cpp
|
||||||
|
../screenedge.cpp
|
||||||
|
../screens.cpp
|
||||||
|
../virtualdesktops.cpp
|
||||||
|
../xcbutils.cpp # init of extensions
|
||||||
mock_abstract_client.cpp
|
mock_abstract_client.cpp
|
||||||
mock_client.cpp
|
mock_client.cpp
|
||||||
mock_screens.cpp
|
mock_screens.cpp
|
||||||
mock_workspace.cpp
|
mock_workspace.cpp
|
||||||
../atoms.cpp
|
test_screen_edges.cpp
|
||||||
../gestures.cpp
|
|
||||||
../screens.cpp
|
|
||||||
../screenedge.cpp
|
|
||||||
../virtualdesktops.cpp
|
|
||||||
../xcbutils.cpp # init of extensions
|
|
||||||
../plugins/platforms/x11/standalone/edge.cpp
|
|
||||||
../orientation_sensor.cpp
|
|
||||||
)
|
)
|
||||||
kconfig_add_kcfg_files(testScreenEdges_SRCS ../settings.kcfgc)
|
kconfig_add_kcfg_files(testScreenEdges_SRCS ../settings.kcfgc)
|
||||||
qt5_add_dbus_interface( testScreenEdges_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/kf5_org.freedesktop.ScreenSaver.xml screenlocker_interface )
|
qt5_add_dbus_interface(testScreenEdges_SRCS ${KSCREENLOCKER_DBUS_INTERFACES_DIR}/kf5_org.freedesktop.ScreenSaver.xml screenlocker_interface )
|
||||||
qt5_add_dbus_adaptor( testScreenEdges_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../org.kde.kwin.OrientationSensor.xml ${CMAKE_CURRENT_SOURCE_DIR}/../orientation_sensor.h KWin::OrientationSensor)
|
qt5_add_dbus_adaptor(testScreenEdges_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../org.kde.kwin.OrientationSensor.xml ${CMAKE_CURRENT_SOURCE_DIR}/../orientation_sensor.h KWin::OrientationSensor)
|
||||||
|
|
||||||
add_executable( testScreenEdges ${testScreenEdges_SRCS})
|
add_executable(testScreenEdges ${testScreenEdges_SRCS})
|
||||||
set_target_properties(testScreenEdges PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
set_target_properties(testScreenEdges PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
||||||
target_include_directories(testScreenEdges BEFORE PRIVATE ./)
|
target_include_directories(testScreenEdges BEFORE PRIVATE ./)
|
||||||
target_link_libraries(testScreenEdges
|
target_link_libraries(testScreenEdges
|
||||||
|
KF5::ConfigCore
|
||||||
|
KF5::ConfigGui
|
||||||
|
KF5::GlobalAccel
|
||||||
|
KF5::I18n
|
||||||
|
KF5::Notifications
|
||||||
|
KF5::WaylandServer
|
||||||
|
KF5::WindowSystem
|
||||||
Qt5::DBus
|
Qt5::DBus
|
||||||
Qt5::Sensors
|
Qt5::Sensors
|
||||||
Qt5::Test
|
Qt5::Test
|
||||||
Qt5::X11Extras
|
Qt5::X11Extras
|
||||||
KF5::ConfigCore
|
|
||||||
KF5::ConfigGui
|
|
||||||
KF5::I18n
|
|
||||||
KF5::GlobalAccel
|
|
||||||
KF5::Notifications
|
|
||||||
KF5::WindowSystem
|
|
||||||
KF5::WaylandServer
|
|
||||||
XCB::XCB
|
|
||||||
XCB::RANDR
|
|
||||||
XCB::XFIXES
|
|
||||||
XCB::SYNC
|
|
||||||
XCB::COMPOSITE
|
XCB::COMPOSITE
|
||||||
XCB::DAMAGE
|
XCB::DAMAGE
|
||||||
XCB::GLX
|
XCB::GLX
|
||||||
|
XCB::RANDR
|
||||||
XCB::SHM
|
XCB::SHM
|
||||||
|
XCB::SYNC
|
||||||
|
XCB::XCB
|
||||||
|
XCB::XFIXES
|
||||||
)
|
)
|
||||||
|
|
||||||
add_test(NAME kwin_testScreenEdges COMMAND testScreenEdges)
|
add_test(NAME kwin_testScreenEdges COMMAND testScreenEdges)
|
||||||
|
@ -312,19 +312,19 @@ ecm_mark_as_test(testScreenEdges)
|
||||||
########################################################
|
########################################################
|
||||||
# Test OnScreenNotification
|
# Test OnScreenNotification
|
||||||
########################################################
|
########################################################
|
||||||
set( testOnScreenNotification_SRCS
|
set(testOnScreenNotification_SRCS
|
||||||
onscreennotificationtest.cpp
|
|
||||||
../onscreennotification.cpp
|
|
||||||
../input_event_spy.cpp
|
../input_event_spy.cpp
|
||||||
|
../onscreennotification.cpp
|
||||||
|
onscreennotificationtest.cpp
|
||||||
)
|
)
|
||||||
add_executable( testOnScreenNotification ${testOnScreenNotification_SRCS})
|
add_executable(testOnScreenNotification ${testOnScreenNotification_SRCS})
|
||||||
|
|
||||||
target_link_libraries(testOnScreenNotification
|
target_link_libraries(testOnScreenNotification
|
||||||
|
KF5::ConfigCore
|
||||||
|
Qt5::DBus
|
||||||
|
Qt5::Quick
|
||||||
Qt5::Test
|
Qt5::Test
|
||||||
Qt5::Widgets # QAction include
|
Qt5::Widgets # QAction include
|
||||||
Qt5::Quick
|
|
||||||
Qt5::DBus
|
|
||||||
KF5::ConfigCore
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_test(NAME kwin-testOnScreenNotification COMMAND testOnScreenNotification)
|
add_test(NAME kwin-testOnScreenNotification COMMAND testOnScreenNotification)
|
||||||
|
@ -333,11 +333,11 @@ ecm_mark_as_test(testOnScreenNotification)
|
||||||
########################################################
|
########################################################
|
||||||
# Test Gestures
|
# Test Gestures
|
||||||
########################################################
|
########################################################
|
||||||
set( testGestures_SRCS
|
set(testGestures_SRCS
|
||||||
test_gestures.cpp
|
|
||||||
../gestures.cpp
|
../gestures.cpp
|
||||||
|
test_gestures.cpp
|
||||||
)
|
)
|
||||||
add_executable( testGestures ${testGestures_SRCS})
|
add_executable(testGestures ${testGestures_SRCS})
|
||||||
|
|
||||||
target_link_libraries(testGestures
|
target_link_libraries(testGestures
|
||||||
Qt5::Test
|
Qt5::Test
|
||||||
|
@ -351,20 +351,20 @@ ecm_mark_as_test(testGestures)
|
||||||
########################################################
|
########################################################
|
||||||
add_executable(testX11TimestampUpdate test_x11_timestamp_update.cpp)
|
add_executable(testX11TimestampUpdate test_x11_timestamp_update.cpp)
|
||||||
target_link_libraries(testX11TimestampUpdate
|
target_link_libraries(testX11TimestampUpdate
|
||||||
Qt5::Test
|
|
||||||
KF5::CoreAddons
|
KF5::CoreAddons
|
||||||
|
Qt5::Test
|
||||||
kwin
|
kwin
|
||||||
)
|
)
|
||||||
add_test(NAME kwin-testX11TimestampUpdate COMMAND testX11TimestampUpdate)
|
add_test(NAME kwin-testX11TimestampUpdate COMMAND testX11TimestampUpdate)
|
||||||
ecm_mark_as_test(testX11TimestampUpdate)
|
ecm_mark_as_test(testX11TimestampUpdate)
|
||||||
|
|
||||||
set(testOpenGLContextAttributeBuilder_SRCS
|
set(testOpenGLContextAttributeBuilder_SRCS
|
||||||
opengl_context_attribute_builder_test.cpp
|
|
||||||
../abstract_opengl_context_attribute_builder.cpp
|
../abstract_opengl_context_attribute_builder.cpp
|
||||||
../egl_context_attribute_builder.cpp
|
../egl_context_attribute_builder.cpp
|
||||||
|
opengl_context_attribute_builder_test.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if(HAVE_EPOXY_GLX)
|
if (HAVE_EPOXY_GLX)
|
||||||
set(testOpenGLContextAttributeBuilder_SRCS ${testOpenGLContextAttributeBuilder_SRCS} ../plugins/platforms/x11/standalone/glx_context_attribute_builder.cpp)
|
set(testOpenGLContextAttributeBuilder_SRCS ${testOpenGLContextAttributeBuilder_SRCS} ../plugins/platforms/x11/standalone/glx_context_attribute_builder.cpp)
|
||||||
endif()
|
endif()
|
||||||
add_executable(testOpenGLContextAttributeBuilder ${testOpenGLContextAttributeBuilder_SRCS})
|
add_executable(testOpenGLContextAttributeBuilder ${testOpenGLContextAttributeBuilder_SRCS})
|
||||||
|
@ -373,23 +373,23 @@ add_test(NAME kwin-testOpenGLContextAttributeBuilder COMMAND testOpenGLContextAt
|
||||||
ecm_mark_as_test(testOpenGLContextAttributeBuilder)
|
ecm_mark_as_test(testOpenGLContextAttributeBuilder)
|
||||||
|
|
||||||
set(testXkb_SRCS
|
set(testXkb_SRCS
|
||||||
test_xkb.cpp
|
|
||||||
../xkb.cpp
|
../xkb.cpp
|
||||||
|
test_xkb.cpp
|
||||||
)
|
)
|
||||||
add_executable(testXkb ${testXkb_SRCS})
|
add_executable(testXkb ${testXkb_SRCS})
|
||||||
target_link_libraries(testXkb
|
target_link_libraries(testXkb
|
||||||
Qt5::Test
|
|
||||||
Qt5::Gui
|
|
||||||
Qt5::Widgets
|
|
||||||
KF5::ConfigCore
|
KF5::ConfigCore
|
||||||
KF5::WindowSystem
|
|
||||||
KF5::WaylandServer
|
KF5::WaylandServer
|
||||||
|
KF5::WindowSystem
|
||||||
|
Qt5::Gui
|
||||||
|
Qt5::Test
|
||||||
|
Qt5::Widgets
|
||||||
XKB::XKB
|
XKB::XKB
|
||||||
)
|
)
|
||||||
add_test(NAME kwin-testXkb COMMAND testXkb)
|
add_test(NAME kwin-testXkb COMMAND testXkb)
|
||||||
ecm_mark_as_test(testXkb)
|
ecm_mark_as_test(testXkb)
|
||||||
|
|
||||||
if(HAVE_GBM)
|
if (HAVE_GBM)
|
||||||
add_executable(testGbmSurface test_gbm_surface.cpp ../plugins/platforms/drm/gbm_surface.cpp)
|
add_executable(testGbmSurface test_gbm_surface.cpp ../plugins/platforms/drm/gbm_surface.cpp)
|
||||||
target_link_libraries(testGbmSurface Qt5::Test)
|
target_link_libraries(testGbmSurface Qt5::Test)
|
||||||
add_test(NAME kwin-testGbmSurface COMMAND testGbmSurface)
|
add_test(NAME kwin-testGbmSurface COMMAND testGbmSurface)
|
||||||
|
@ -398,9 +398,8 @@ endif()
|
||||||
|
|
||||||
add_executable(testVirtualKeyboardDBus test_virtualkeyboard_dbus.cpp ../virtualkeyboard_dbus.cpp)
|
add_executable(testVirtualKeyboardDBus test_virtualkeyboard_dbus.cpp ../virtualkeyboard_dbus.cpp)
|
||||||
target_link_libraries(testVirtualKeyboardDBus
|
target_link_libraries(testVirtualKeyboardDBus
|
||||||
Qt5::Test
|
|
||||||
Qt5::DBus
|
Qt5::DBus
|
||||||
|
Qt5::Test
|
||||||
)
|
)
|
||||||
add_test(NAME kwin-testVirtualKeyboardDBus COMMAND testVirtualKeyboardDBus)
|
add_test(NAME kwin-testVirtualKeyboardDBus COMMAND testVirtualKeyboardDBus)
|
||||||
ecm_mark_as_test(testVirtualKeyboardDBus)
|
ecm_mark_as_test(testVirtualKeyboardDBus)
|
||||||
|
|
||||||
|
|
|
@ -3,77 +3,77 @@ include_directories(${UDEV_INCLUDE_DIR})
|
||||||
########################################################
|
########################################################
|
||||||
# Test Devices
|
# Test Devices
|
||||||
########################################################
|
########################################################
|
||||||
set( testLibinputDevice_SRCS device_test.cpp mock_libinput.cpp ../../libinput/device.cpp )
|
set(testLibinputDevice_SRCS device_test.cpp mock_libinput.cpp ../../libinput/device.cpp )
|
||||||
add_executable(testLibinputDevice ${testLibinputDevice_SRCS})
|
add_executable(testLibinputDevice ${testLibinputDevice_SRCS})
|
||||||
target_link_libraries( testLibinputDevice Qt5::Test Qt5::DBus Qt5::Gui KF5::ConfigCore)
|
target_link_libraries(testLibinputDevice Qt5::Test Qt5::DBus Qt5::Gui KF5::ConfigCore)
|
||||||
add_test(NAME kwin-testLibinputDevice COMMAND testLibinputDevice)
|
add_test(NAME kwin-testLibinputDevice COMMAND testLibinputDevice)
|
||||||
ecm_mark_as_test(testLibinputDevice)
|
ecm_mark_as_test(testLibinputDevice)
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Test Key Event
|
# Test Key Event
|
||||||
########################################################
|
########################################################
|
||||||
set( testLibinputKeyEvent_SRCS
|
set(testLibinputKeyEvent_SRCS
|
||||||
key_event_test.cpp
|
../../libinput/device.cpp
|
||||||
mock_libinput.cpp
|
../../libinput/events.cpp
|
||||||
../../libinput/device.cpp
|
key_event_test.cpp
|
||||||
../../libinput/events.cpp
|
mock_libinput.cpp
|
||||||
)
|
)
|
||||||
add_executable(testLibinputKeyEvent ${testLibinputKeyEvent_SRCS})
|
add_executable(testLibinputKeyEvent ${testLibinputKeyEvent_SRCS})
|
||||||
target_link_libraries( testLibinputKeyEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore)
|
target_link_libraries(testLibinputKeyEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore)
|
||||||
add_test(NAME kwin-testLibinputKeyEvent COMMAND testLibinputKeyEvent)
|
add_test(NAME kwin-testLibinputKeyEvent COMMAND testLibinputKeyEvent)
|
||||||
ecm_mark_as_test(testLibinputKeyEvent)
|
ecm_mark_as_test(testLibinputKeyEvent)
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Test Pointer Event
|
# Test Pointer Event
|
||||||
########################################################
|
########################################################
|
||||||
set( testLibinputPointerEvent_SRCS
|
set(testLibinputPointerEvent_SRCS
|
||||||
pointer_event_test.cpp
|
../../libinput/device.cpp
|
||||||
mock_libinput.cpp
|
../../libinput/events.cpp
|
||||||
../../libinput/device.cpp
|
mock_libinput.cpp
|
||||||
../../libinput/events.cpp
|
pointer_event_test.cpp
|
||||||
)
|
)
|
||||||
add_executable(testLibinputPointerEvent ${testLibinputPointerEvent_SRCS})
|
add_executable(testLibinputPointerEvent ${testLibinputPointerEvent_SRCS})
|
||||||
target_link_libraries( testLibinputPointerEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore)
|
target_link_libraries(testLibinputPointerEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore)
|
||||||
add_test(NAME kwin-testLibinputPointerEvent COMMAND testLibinputPointerEvent)
|
add_test(NAME kwin-testLibinputPointerEvent COMMAND testLibinputPointerEvent)
|
||||||
ecm_mark_as_test(testLibinputPointerEvent)
|
ecm_mark_as_test(testLibinputPointerEvent)
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Test Touch Event
|
# Test Touch Event
|
||||||
########################################################
|
########################################################
|
||||||
set( testLibinputTouchEvent_SRCS
|
set(testLibinputTouchEvent_SRCS
|
||||||
touch_event_test.cpp
|
../../libinput/device.cpp
|
||||||
mock_libinput.cpp
|
../../libinput/events.cpp
|
||||||
../../libinput/device.cpp
|
mock_libinput.cpp
|
||||||
../../libinput/events.cpp
|
touch_event_test.cpp
|
||||||
)
|
)
|
||||||
add_executable(testLibinputTouchEvent ${testLibinputTouchEvent_SRCS})
|
add_executable(testLibinputTouchEvent ${testLibinputTouchEvent_SRCS})
|
||||||
target_link_libraries( testLibinputTouchEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore)
|
target_link_libraries(testLibinputTouchEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore)
|
||||||
add_test(NAME kwin-testLibinputTouchEvent COMMAND testLibinputTouchEvent)
|
add_test(NAME kwin-testLibinputTouchEvent COMMAND testLibinputTouchEvent)
|
||||||
ecm_mark_as_test(testLibinputTouchEvent)
|
ecm_mark_as_test(testLibinputTouchEvent)
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Test Gesture Event
|
# Test Gesture Event
|
||||||
########################################################
|
########################################################
|
||||||
set( testLibinputGestureEvent_SRCS
|
set(testLibinputGestureEvent_SRCS
|
||||||
gesture_event_test.cpp
|
../../libinput/device.cpp
|
||||||
mock_libinput.cpp
|
../../libinput/events.cpp
|
||||||
../../libinput/device.cpp
|
gesture_event_test.cpp
|
||||||
../../libinput/events.cpp
|
mock_libinput.cpp
|
||||||
)
|
)
|
||||||
add_executable(testLibinputGestureEvent ${testLibinputGestureEvent_SRCS})
|
add_executable(testLibinputGestureEvent ${testLibinputGestureEvent_SRCS})
|
||||||
target_link_libraries( testLibinputGestureEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore)
|
target_link_libraries(testLibinputGestureEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore)
|
||||||
add_test(NAME kwin-testLibinputGestureEvent COMMAND testLibinputGestureEvent)
|
add_test(NAME kwin-testLibinputGestureEvent COMMAND testLibinputGestureEvent)
|
||||||
ecm_mark_as_test(testLibinputGestureEvent)
|
ecm_mark_as_test(testLibinputGestureEvent)
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Test Switch Event
|
# Test Switch Event
|
||||||
########################################################
|
########################################################
|
||||||
set( testLibinputSwitchEvent_SRCS
|
set(testLibinputSwitchEvent_SRCS
|
||||||
switch_event_test.cpp
|
|
||||||
mock_libinput.cpp
|
|
||||||
../../libinput/device.cpp
|
../../libinput/device.cpp
|
||||||
../../libinput/events.cpp
|
../../libinput/events.cpp
|
||||||
)
|
mock_libinput.cpp
|
||||||
|
switch_event_test.cpp
|
||||||
|
)
|
||||||
add_executable(testLibinputSwitchEvent ${testLibinputSwitchEvent_SRCS})
|
add_executable(testLibinputSwitchEvent ${testLibinputSwitchEvent_SRCS})
|
||||||
target_link_libraries(testLibinputSwitchEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore)
|
target_link_libraries(testLibinputSwitchEvent Qt5::Test Qt5::DBus Qt5::Widgets KF5::ConfigCore)
|
||||||
add_test(NAME kwin-testLibinputSwitchEvent COMMAND testLibinputSwitchEvent)
|
add_test(NAME kwin-testLibinputSwitchEvent COMMAND testLibinputSwitchEvent)
|
||||||
|
@ -82,32 +82,32 @@ ecm_mark_as_test(testLibinputSwitchEvent)
|
||||||
########################################################
|
########################################################
|
||||||
# Test Context
|
# Test Context
|
||||||
########################################################
|
########################################################
|
||||||
set( testLibinputContext_SRCS
|
set(testLibinputContext_SRCS
|
||||||
context_test.cpp
|
|
||||||
mock_libinput.cpp
|
|
||||||
mock_udev.cpp
|
|
||||||
../../libinput/context.cpp
|
../../libinput/context.cpp
|
||||||
../../libinput/device.cpp
|
../../libinput/device.cpp
|
||||||
../../libinput/events.cpp
|
../../libinput/events.cpp
|
||||||
../../libinput/libinput_logging.cpp
|
../../libinput/libinput_logging.cpp
|
||||||
../../logind.cpp
|
../../logind.cpp
|
||||||
)
|
context_test.cpp
|
||||||
|
mock_libinput.cpp
|
||||||
|
mock_udev.cpp
|
||||||
|
)
|
||||||
add_executable(testLibinputContext ${testLibinputContext_SRCS})
|
add_executable(testLibinputContext ${testLibinputContext_SRCS})
|
||||||
target_link_libraries( testLibinputContext
|
target_link_libraries(testLibinputContext
|
||||||
|
KF5::ConfigCore
|
||||||
|
KF5::WindowSystem
|
||||||
Qt5::DBus
|
Qt5::DBus
|
||||||
Qt5::Test
|
Qt5::Test
|
||||||
Qt5::Widgets
|
Qt5::Widgets
|
||||||
KF5::ConfigCore
|
)
|
||||||
KF5::WindowSystem
|
|
||||||
)
|
|
||||||
add_test(NAME kwin-testLibinputContext COMMAND testLibinputContext)
|
add_test(NAME kwin-testLibinputContext COMMAND testLibinputContext)
|
||||||
ecm_mark_as_test(testLibinputContext)
|
ecm_mark_as_test(testLibinputContext)
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Test Input Events
|
# Test Input Events
|
||||||
########################################################
|
########################################################
|
||||||
set( testInputEvents_SRCS input_event_test.cpp mock_libinput.cpp ../../libinput/device.cpp ../../input_event.cpp )
|
set(testInputEvents_SRCS input_event_test.cpp mock_libinput.cpp ../../libinput/device.cpp ../../input_event.cpp)
|
||||||
add_executable(testInputEvents ${testInputEvents_SRCS})
|
add_executable(testInputEvents ${testInputEvents_SRCS})
|
||||||
target_link_libraries( testInputEvents Qt5::Test Qt5::DBus Qt5::Gui Qt5::Widgets KF5::ConfigCore)
|
target_link_libraries(testInputEvents Qt5::Test Qt5::DBus Qt5::Gui Qt5::Widgets KF5::ConfigCore)
|
||||||
add_test(NAME kwin-testInputEvents COMMAND testInputEvents)
|
add_test(NAME kwin-testInputEvents COMMAND testInputEvents)
|
||||||
ecm_mark_as_test(testInputEvents)
|
ecm_mark_as_test(testInputEvents)
|
||||||
|
|
|
@ -9,5 +9,5 @@ target_link_libraries(blendPictureTest
|
||||||
XCB::XCB
|
XCB::XCB
|
||||||
XCB::RENDER
|
XCB::RENDER
|
||||||
XCB::XFIXES
|
XCB::XFIXES
|
||||||
)
|
)
|
||||||
ecm_mark_as_test(blendPictureTest)
|
ecm_mark_as_test(blendPictureTest)
|
||||||
|
|
|
@ -3,31 +3,31 @@ add_definitions(-DKWIN_UNIT_TEST)
|
||||||
########################################################
|
########################################################
|
||||||
# Test TabBox::ClientModel
|
# Test TabBox::ClientModel
|
||||||
########################################################
|
########################################################
|
||||||
set( testTabBoxClientModel_SRCS
|
set(testTabBoxClientModel_SRCS
|
||||||
../../tabbox/clientmodel.cpp
|
../../tabbox/clientmodel.cpp
|
||||||
../../tabbox/desktopmodel.cpp
|
../../tabbox/desktopmodel.cpp
|
||||||
../../tabbox/tabboxconfig.cpp
|
../../tabbox/tabbox_logging.cpp
|
||||||
../../tabbox/tabboxhandler.cpp
|
../../tabbox/tabboxconfig.cpp
|
||||||
../../tabbox/tabbox_logging.cpp
|
../../tabbox/tabboxhandler.cpp
|
||||||
test_tabbox_clientmodel.cpp
|
mock_tabboxclient.cpp
|
||||||
mock_tabboxhandler.cpp
|
mock_tabboxhandler.cpp
|
||||||
mock_tabboxclient.cpp
|
test_tabbox_clientmodel.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable( testTabBoxClientModel ${testTabBoxClientModel_SRCS} )
|
add_executable(testTabBoxClientModel ${testTabBoxClientModel_SRCS})
|
||||||
set_target_properties(testTabBoxClientModel PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
set_target_properties(testTabBoxClientModel PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
||||||
target_link_libraries( testTabBoxClientModel
|
target_link_libraries(testTabBoxClientModel
|
||||||
Qt5::Core
|
|
||||||
Qt5::Widgets
|
|
||||||
Qt5::Script
|
|
||||||
Qt5::Quick
|
|
||||||
Qt5::Test
|
|
||||||
Qt5::DBus
|
|
||||||
Qt5::X11Extras
|
|
||||||
KF5::ConfigCore
|
KF5::ConfigCore
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Package
|
KF5::Package
|
||||||
KF5::WindowSystem
|
KF5::WindowSystem
|
||||||
|
Qt5::Core
|
||||||
|
Qt5::DBus
|
||||||
|
Qt5::Quick
|
||||||
|
Qt5::Script
|
||||||
|
Qt5::Test
|
||||||
|
Qt5::Widgets
|
||||||
|
Qt5::X11Extras
|
||||||
XCB::XCB
|
XCB::XCB
|
||||||
)
|
)
|
||||||
add_test(NAME kwin-testTabBoxClientModel COMMAND testTabBoxClientModel)
|
add_test(NAME kwin-testTabBoxClientModel COMMAND testTabBoxClientModel)
|
||||||
|
@ -36,31 +36,31 @@ ecm_mark_as_test(testTabBoxClientModel)
|
||||||
########################################################
|
########################################################
|
||||||
# Test TabBox::TabBoxHandler
|
# Test TabBox::TabBoxHandler
|
||||||
########################################################
|
########################################################
|
||||||
set( testTabBoxHandler_SRCS
|
set(testTabBoxHandler_SRCS
|
||||||
../../tabbox/clientmodel.cpp
|
../../tabbox/clientmodel.cpp
|
||||||
../../tabbox/desktopmodel.cpp
|
../../tabbox/desktopmodel.cpp
|
||||||
../../tabbox/tabboxconfig.cpp
|
../../tabbox/tabbox_logging.cpp
|
||||||
../../tabbox/tabboxhandler.cpp
|
../../tabbox/tabboxconfig.cpp
|
||||||
../../tabbox/tabbox_logging.cpp
|
../../tabbox/tabboxhandler.cpp
|
||||||
test_tabbox_handler.cpp
|
mock_tabboxclient.cpp
|
||||||
mock_tabboxhandler.cpp
|
mock_tabboxhandler.cpp
|
||||||
mock_tabboxclient.cpp
|
test_tabbox_handler.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable( testTabBoxHandler ${testTabBoxHandler_SRCS} )
|
add_executable(testTabBoxHandler ${testTabBoxHandler_SRCS})
|
||||||
set_target_properties(testTabBoxHandler PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
set_target_properties(testTabBoxHandler PROPERTIES COMPILE_DEFINITIONS "NO_NONE_WINDOW")
|
||||||
target_link_libraries( testTabBoxHandler
|
target_link_libraries(testTabBoxHandler
|
||||||
Qt5::Core
|
|
||||||
Qt5::Widgets
|
|
||||||
Qt5::Script
|
|
||||||
Qt5::Quick
|
|
||||||
Qt5::Test
|
|
||||||
Qt5::DBus
|
|
||||||
Qt5::X11Extras
|
|
||||||
KF5::ConfigCore
|
KF5::ConfigCore
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Package
|
KF5::Package
|
||||||
KF5::WindowSystem
|
KF5::WindowSystem
|
||||||
|
Qt5::Core
|
||||||
|
Qt5::DBus
|
||||||
|
Qt5::Quick
|
||||||
|
Qt5::Script
|
||||||
|
Qt5::Test
|
||||||
|
Qt5::Widgets
|
||||||
|
Qt5::X11Extras
|
||||||
XCB::XCB
|
XCB::XCB
|
||||||
)
|
)
|
||||||
add_test(NAME kwin-testTabBoxHandler COMMAND testTabBoxHandler)
|
add_test(NAME kwin-testTabBoxHandler COMMAND testTabBoxHandler)
|
||||||
|
@ -69,14 +69,14 @@ ecm_mark_as_test(testTabBoxHandler)
|
||||||
########################################################
|
########################################################
|
||||||
# Test TabBox::TabBoxConfig
|
# Test TabBox::TabBoxConfig
|
||||||
########################################################
|
########################################################
|
||||||
set( testTabBoxConfig_SRCS
|
set(testTabBoxConfig_SRCS
|
||||||
../../tabbox/tabboxconfig.cpp
|
|
||||||
../../tabbox/tabbox_logging.cpp
|
../../tabbox/tabbox_logging.cpp
|
||||||
|
../../tabbox/tabboxconfig.cpp
|
||||||
test_tabbox_config.cpp
|
test_tabbox_config.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable( testTabBoxConfig ${testTabBoxConfig_SRCS} )
|
add_executable(testTabBoxConfig ${testTabBoxConfig_SRCS})
|
||||||
target_link_libraries( testTabBoxConfig Qt5::Core Qt5::Test )
|
target_link_libraries(testTabBoxConfig Qt5::Core Qt5::Test)
|
||||||
add_test(NAME kwin-testTabBoxConfig COMMAND testTabBoxConfig)
|
add_test(NAME kwin-testTabBoxConfig COMMAND testTabBoxConfig)
|
||||||
ecm_mark_as_test(testTabBoxConfig)
|
ecm_mark_as_test(testTabBoxConfig)
|
||||||
|
|
||||||
|
@ -84,13 +84,13 @@ ecm_mark_as_test(testTabBoxConfig)
|
||||||
########################################################
|
########################################################
|
||||||
# Test TabBox::DesktopChainManager
|
# Test TabBox::DesktopChainManager
|
||||||
########################################################
|
########################################################
|
||||||
set( testDesktopChain_SRCS
|
set(testDesktopChain_SRCS
|
||||||
../../tabbox/desktopchain.cpp
|
../../tabbox/desktopchain.cpp
|
||||||
../../tabbox/tabbox_logging.cpp
|
../../tabbox/tabbox_logging.cpp
|
||||||
test_desktopchain.cpp
|
test_desktopchain.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable( testDesktopChain ${testDesktopChain_SRCS} )
|
add_executable(testDesktopChain ${testDesktopChain_SRCS})
|
||||||
target_link_libraries( testDesktopChain Qt5::Core Qt5::Test )
|
target_link_libraries(testDesktopChain Qt5::Core Qt5::Test)
|
||||||
add_test(NAME kwin-testDesktopChain COMMAND testDesktopChain)
|
add_test(NAME kwin-testDesktopChain COMMAND testDesktopChain)
|
||||||
ecm_mark_as_test(testDesktopChain)
|
ecm_mark_as_test(testDesktopChain)
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
add_subdirectory(icons)
|
add_subdirectory(icons)
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
add_executable( kwin5_update_default_rules update_default_rules.cpp)
|
add_executable(kwin5_update_default_rules update_default_rules.cpp)
|
||||||
|
target_link_libraries(kwin5_update_default_rules
|
||||||
target_link_libraries( kwin5_update_default_rules Qt5::Core Qt5::DBus KF5::ConfigCore )
|
KF5::ConfigCore
|
||||||
|
Qt5::Core
|
||||||
install(TARGETS kwin5_update_default_rules DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin/ )
|
Qt5::DBus
|
||||||
|
)
|
||||||
|
install(TARGETS kwin5_update_default_rules DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin/)
|
||||||
|
|
||||||
########### install files ###############
|
########### install files ###############
|
||||||
|
|
||||||
install(FILES org_kde_kwin.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
|
install(FILES org_kde_kwin.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ set(kwin_effect_OWN_LIBS
|
||||||
kwineffects
|
kwineffects
|
||||||
)
|
)
|
||||||
|
|
||||||
if( KWIN_HAVE_XRENDER_COMPOSITING )
|
if (KWIN_HAVE_XRENDER_COMPOSITING)
|
||||||
set(kwin_effect_OWN_LIBS ${kwin_effect_OWN_LIBS} kwinxrenderutils)
|
set(kwin_effect_OWN_LIBS ${kwin_effect_OWN_LIBS} kwinxrenderutils)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -16,11 +16,11 @@ set(kwin_effect_KDE_LIBS
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::GlobalAccel
|
KF5::GlobalAccel
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::WindowSystem
|
|
||||||
KF5::Plasma # screenedge effect
|
|
||||||
KF5::IconThemes
|
KF5::IconThemes
|
||||||
KF5::Service
|
|
||||||
KF5::Notifications # screenshot effect
|
KF5::Notifications # screenshot effect
|
||||||
|
KF5::Plasma # screenedge effect
|
||||||
|
KF5::Service
|
||||||
|
KF5::WindowSystem
|
||||||
)
|
)
|
||||||
|
|
||||||
set(kwin_effect_QT_LIBS
|
set(kwin_effect_QT_LIBS
|
||||||
|
@ -35,53 +35,58 @@ set(kwin_effect_XLIB_LIBS
|
||||||
)
|
)
|
||||||
|
|
||||||
set(kwin_effect_XCB_LIBS
|
set(kwin_effect_XCB_LIBS
|
||||||
XCB::XCB
|
|
||||||
XCB::IMAGE
|
XCB::IMAGE
|
||||||
|
XCB::XCB
|
||||||
XCB::XFIXES
|
XCB::XFIXES
|
||||||
)
|
)
|
||||||
|
|
||||||
if( KWIN_HAVE_XRENDER_COMPOSITING )
|
if (KWIN_HAVE_XRENDER_COMPOSITING)
|
||||||
set(kwin_effect_XCB_LIBS ${kwin_effect_XCB_LIBS} XCB::RENDER)
|
set(kwin_effect_XCB_LIBS ${kwin_effect_XCB_LIBS} XCB::RENDER)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(kwin_effect_OWN_LIBS ${kwin_effect_OWN_LIBS} kwinglutils)
|
set(kwin_effect_OWN_LIBS ${kwin_effect_OWN_LIBS} kwinglutils)
|
||||||
|
|
||||||
macro( KWIN4_ADD_EFFECT_BACKEND name )
|
macro(KWIN4_ADD_EFFECT_BACKEND name)
|
||||||
add_library( ${name} SHARED ${ARGN} )
|
add_library(${name} SHARED ${ARGN})
|
||||||
target_link_libraries( ${name} PRIVATE ${kwin_effect_OWN_LIBS} ${kwin_effect_KDE_LIBS} ${kwin_effect_QT_LIBS} ${kwin_effect_XLIB_LIBS} ${kwin_effect_XCB_LIBS})
|
target_link_libraries(${name} PRIVATE
|
||||||
|
${kwin_effect_KDE_LIBS}
|
||||||
|
${kwin_effect_OWN_LIBS}
|
||||||
|
${kwin_effect_QT_LIBS}
|
||||||
|
${kwin_effect_XCB_LIBS}
|
||||||
|
${kwin_effect_XLIB_LIBS}
|
||||||
|
)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
# Adds effect plugin with given name. Sources are given after the name
|
# Adds effect plugin with given name. Sources are given after the name
|
||||||
macro( KWIN4_ADD_EFFECT name )
|
macro(KWIN4_ADD_EFFECT name)
|
||||||
kwin4_add_effect_backend(kwin4_effect_${name} ${ARGN})
|
kwin4_add_effect_backend(kwin4_effect_${name} ${ARGN})
|
||||||
|
|
||||||
set_target_properties(kwin4_effect_${name} PROPERTIES VERSION 1.0.0 SOVERSION 1 )
|
set_target_properties(kwin4_effect_${name} PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||||
set_target_properties(kwin4_effect_${name} PROPERTIES OUTPUT_NAME ${KWIN_NAME}4_effect_${name})
|
set_target_properties(kwin4_effect_${name} PROPERTIES OUTPUT_NAME ${KWIN_NAME}4_effect_${name})
|
||||||
install(TARGETS kwin4_effect_${name} ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
install(TARGETS kwin4_effect_${name} ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||||
|
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
# Install the KWin/Effect service type
|
# Install the KWin/Effect service type
|
||||||
install( FILES kwineffect.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
|
install(FILES kwineffect.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
||||||
|
|
||||||
# Create initial variables
|
# Create initial variables
|
||||||
set( kwin4_effect_include_directories )
|
set(kwin4_effect_include_directories)
|
||||||
|
|
||||||
set( kwin4_effect_builtins_sources
|
set(kwin4_effect_builtins_sources
|
||||||
logging.cpp
|
|
||||||
effect_builtins.cpp
|
|
||||||
blur/blur.cpp
|
blur/blur.cpp
|
||||||
blur/blurshader.cpp
|
blur/blurshader.cpp
|
||||||
colorpicker/colorpicker.cpp
|
colorpicker/colorpicker.cpp
|
||||||
|
coverswitch/coverswitch.cpp
|
||||||
cube/cube.cpp
|
cube/cube.cpp
|
||||||
cube/cube_proxy.cpp
|
cube/cube_proxy.cpp
|
||||||
cubeslide/cubeslide.cpp
|
cubeslide/cubeslide.cpp
|
||||||
coverswitch/coverswitch.cpp
|
|
||||||
desktopgrid/desktopgrid.cpp
|
desktopgrid/desktopgrid.cpp
|
||||||
diminactive/diminactive.cpp
|
diminactive/diminactive.cpp
|
||||||
|
effect_builtins.cpp
|
||||||
flipswitch/flipswitch.cpp
|
flipswitch/flipswitch.cpp
|
||||||
glide/glide.cpp
|
glide/glide.cpp
|
||||||
invert/invert.cpp
|
invert/invert.cpp
|
||||||
|
logging.cpp
|
||||||
lookingglass/lookingglass.cpp
|
lookingglass/lookingglass.cpp
|
||||||
magiclamp/magiclamp.cpp
|
magiclamp/magiclamp.cpp
|
||||||
magnifier/magnifier.cpp
|
magnifier/magnifier.cpp
|
||||||
|
@ -99,15 +104,15 @@ set( kwin4_effect_builtins_sources
|
||||||
windowgeometry/windowgeometry.cpp
|
windowgeometry/windowgeometry.cpp
|
||||||
wobblywindows/wobblywindows.cpp
|
wobblywindows/wobblywindows.cpp
|
||||||
zoom/zoom.cpp
|
zoom/zoom.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
qt5_add_resources( kwin4_effect_builtins_sources shaders.qrc )
|
qt5_add_resources(kwin4_effect_builtins_sources shaders.qrc)
|
||||||
|
|
||||||
kconfig_add_kcfg_files(kwin4_effect_builtins_sources
|
kconfig_add_kcfg_files(kwin4_effect_builtins_sources
|
||||||
blur/blurconfig.kcfgc
|
blur/blurconfig.kcfgc
|
||||||
|
coverswitch/coverswitchconfig.kcfgc
|
||||||
cube/cubeconfig.kcfgc
|
cube/cubeconfig.kcfgc
|
||||||
cubeslide/cubeslideconfig.kcfgc
|
cubeslide/cubeslideconfig.kcfgc
|
||||||
coverswitch/coverswitchconfig.kcfgc
|
|
||||||
desktopgrid/desktopgridconfig.kcfgc
|
desktopgrid/desktopgridconfig.kcfgc
|
||||||
diminactive/diminactiveconfig.kcfgc
|
diminactive/diminactiveconfig.kcfgc
|
||||||
fallapart/fallapartconfig.kcfgc
|
fallapart/fallapartconfig.kcfgc
|
||||||
|
@ -128,7 +133,7 @@ kconfig_add_kcfg_files(kwin4_effect_builtins_sources
|
||||||
windowgeometry/windowgeometryconfig.kcfgc
|
windowgeometry/windowgeometryconfig.kcfgc
|
||||||
wobblywindows/wobblywindowsconfig.kcfgc
|
wobblywindows/wobblywindowsconfig.kcfgc
|
||||||
zoom/zoomconfig.kcfgc
|
zoom/zoomconfig.kcfgc
|
||||||
)
|
)
|
||||||
|
|
||||||
# scripted effects
|
# scripted effects
|
||||||
function(install_scripted_effect name)
|
function(install_scripted_effect name)
|
||||||
|
@ -157,45 +162,45 @@ install_scripted_effect(windowaperture)
|
||||||
# Built-in effects go here
|
# Built-in effects go here
|
||||||
|
|
||||||
# Common effects
|
# Common effects
|
||||||
add_subdirectory( desktopgrid )
|
add_subdirectory(desktopgrid)
|
||||||
add_subdirectory( diminactive )
|
add_subdirectory(diminactive)
|
||||||
include( fallapart/CMakeLists.txt )
|
include(fallapart/CMakeLists.txt)
|
||||||
include( highlightwindow/CMakeLists.txt )
|
include(highlightwindow/CMakeLists.txt)
|
||||||
include( kscreen/CMakeLists.txt )
|
include(kscreen/CMakeLists.txt)
|
||||||
add_subdirectory( magiclamp )
|
add_subdirectory(magiclamp)
|
||||||
add_subdirectory( presentwindows )
|
add_subdirectory(presentwindows)
|
||||||
add_subdirectory( resize )
|
add_subdirectory(resize)
|
||||||
include( screenedge/CMakeLists.txt )
|
include(screenedge/CMakeLists.txt)
|
||||||
add_subdirectory( showfps )
|
add_subdirectory(showfps)
|
||||||
add_subdirectory( showpaint )
|
add_subdirectory(showpaint)
|
||||||
add_subdirectory( slide )
|
add_subdirectory(slide)
|
||||||
include( slideback/CMakeLists.txt )
|
include(slideback/CMakeLists.txt)
|
||||||
include( slidingpopups/CMakeLists.txt )
|
include(slidingpopups/CMakeLists.txt)
|
||||||
add_subdirectory( thumbnailaside )
|
add_subdirectory(thumbnailaside)
|
||||||
add_subdirectory( windowgeometry )
|
add_subdirectory(windowgeometry)
|
||||||
add_subdirectory( zoom )
|
add_subdirectory(zoom)
|
||||||
|
|
||||||
# OpenGL-specific effects
|
# OpenGL-specific effects
|
||||||
add_subdirectory( blur )
|
add_subdirectory(blur)
|
||||||
include( backgroundcontrast/CMakeLists.txt )
|
include(backgroundcontrast/CMakeLists.txt)
|
||||||
add_subdirectory( coverswitch )
|
add_subdirectory(coverswitch)
|
||||||
add_subdirectory( cube )
|
add_subdirectory(cube)
|
||||||
add_subdirectory( cubeslide )
|
add_subdirectory(cubeslide)
|
||||||
add_subdirectory( flipswitch )
|
add_subdirectory(flipswitch)
|
||||||
add_subdirectory( glide )
|
add_subdirectory(glide)
|
||||||
add_subdirectory( invert )
|
add_subdirectory(invert)
|
||||||
add_subdirectory( lookingglass )
|
add_subdirectory(lookingglass)
|
||||||
add_subdirectory( magnifier )
|
add_subdirectory(magnifier)
|
||||||
add_subdirectory( mouseclick )
|
add_subdirectory(mouseclick)
|
||||||
add_subdirectory( mousemark )
|
add_subdirectory(mousemark)
|
||||||
include( screenshot/CMakeLists.txt )
|
include(screenshot/CMakeLists.txt)
|
||||||
include( sheet/CMakeLists.txt )
|
include(sheet/CMakeLists.txt)
|
||||||
include( snaphelper/CMakeLists.txt )
|
include(snaphelper/CMakeLists.txt)
|
||||||
include( startupfeedback/CMakeLists.txt )
|
include(startupfeedback/CMakeLists.txt)
|
||||||
add_subdirectory( trackmouse )
|
add_subdirectory(trackmouse)
|
||||||
add_subdirectory( wobblywindows )
|
add_subdirectory(wobblywindows)
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
# Add the builtins plugin
|
# Add the builtins plugin
|
||||||
kwin4_add_effect( builtins ${kwin4_effect_builtins_sources} )
|
kwin4_add_effect(builtins ${kwin4_effect_builtins_sources})
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
backgroundcontrast/contrast.cpp
|
backgroundcontrast/contrast.cpp
|
||||||
backgroundcontrast/contrastshader.cpp )
|
backgroundcontrast/contrastshader.cpp
|
||||||
|
)
|
||||||
|
|
|
@ -8,10 +8,10 @@ kconfig_add_kcfg_files(kwin_blur_config_SRCS blurconfig.kcfgc)
|
||||||
add_library(kwin_blur_config MODULE ${kwin_blur_config_SRCS})
|
add_library(kwin_blur_config MODULE ${kwin_blur_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_blur_config
|
target_link_libraries(kwin_blur_config
|
||||||
Qt5::DBus
|
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
|
Qt5::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_blur_config blur_config.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_blur_config blur_config.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -11,10 +11,10 @@ kconfig_add_kcfg_files(kwin_coverswitch_config_SRCS coverswitchconfig.kcfgc)
|
||||||
add_library(kwin_coverswitch_config MODULE ${kwin_coverswitch_config_SRCS})
|
add_library(kwin_coverswitch_config MODULE ${kwin_coverswitch_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_coverswitch_config
|
target_link_libraries(kwin_coverswitch_config
|
||||||
Qt5::DBus
|
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
|
Qt5::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_coverswitch_config coverswitch_config.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_coverswitch_config coverswitch_config.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Data files
|
# Data files
|
||||||
install( FILES
|
install(FILES data/cubecap.png DESTINATION ${DATA_INSTALL_DIR}/kwin)
|
||||||
data/cubecap.png
|
|
||||||
DESTINATION ${DATA_INSTALL_DIR}/kwin )
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Config
|
# Config
|
||||||
|
|
|
@ -9,10 +9,10 @@ kconfig_add_kcfg_files(kwin_cubeslide_config_SRCS cubeslideconfig.kcfgc)
|
||||||
add_library(kwin_cubeslide_config MODULE ${kwin_cubeslide_config_SRCS})
|
add_library(kwin_cubeslide_config MODULE ${kwin_cubeslide_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_cubeslide_config
|
target_link_libraries(kwin_cubeslide_config
|
||||||
kwineffects
|
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
|
kwineffects
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_cubeslide_config cubeslide_config.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_cubeslide_config cubeslide_config.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
#######################################
|
#######################################
|
||||||
# Effect
|
# Effect
|
||||||
install( FILES
|
install(FILES main.qml DESTINATION ${DATA_INSTALL_DIR}/kwin/effects/desktopgrid/)
|
||||||
main.qml
|
|
||||||
DESTINATION ${DATA_INSTALL_DIR}/kwin/effects/desktopgrid/
|
|
||||||
)
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Config
|
# Config
|
||||||
|
@ -15,14 +12,14 @@ kconfig_add_kcfg_files(kwin_desktopgrid_config_SRCS desktopgridconfig.kcfgc)
|
||||||
add_library(kwin_desktopgrid_config MODULE ${kwin_desktopgrid_config_SRCS})
|
add_library(kwin_desktopgrid_config MODULE ${kwin_desktopgrid_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_desktopgrid_config
|
target_link_libraries(kwin_desktopgrid_config
|
||||||
kwineffects
|
|
||||||
Qt5::Quick
|
|
||||||
KF5::Completion
|
KF5::Completion
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::GlobalAccel
|
KF5::GlobalAccel
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
KF5::XmlGui
|
KF5::XmlGui
|
||||||
|
Qt5::Quick
|
||||||
|
kwineffects
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_desktopgrid_config desktopgrid_config.desktop SERVICE_TYPES kcmodule.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_desktopgrid_config desktopgrid_config.desktop SERVICE_TYPES kcmodule.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -8,10 +8,10 @@ kconfig_add_kcfg_files(kwin_diminactive_config_SRCS diminactiveconfig.kcfgc)
|
||||||
add_library(kwin_diminactive_config MODULE ${kwin_diminactive_config_SRCS})
|
add_library(kwin_diminactive_config MODULE ${kwin_diminactive_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_diminactive_config
|
target_link_libraries(kwin_diminactive_config
|
||||||
Qt5::DBus
|
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
|
Qt5::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_diminactive_config diminactive_config.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_diminactive_config diminactive_config.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
fallapart/fallapart.cpp
|
fallapart/fallapart.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,10 +8,10 @@ kconfig_add_kcfg_files(kwin_glide_config_SRCS glideconfig.kcfgc)
|
||||||
add_library(kwin_glide_config MODULE ${kwin_glide_config_SRCS})
|
add_library(kwin_glide_config MODULE ${kwin_glide_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_glide_config
|
target_link_libraries(kwin_glide_config
|
||||||
Qt5::DBus
|
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
|
Qt5::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_glide_config glide_config.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_glide_config glide_config.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
highlightwindow/highlightwindow.cpp
|
highlightwindow/highlightwindow.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
kscreen/kscreen.cpp
|
kscreen/kscreen.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
kconfig_add_kcfg_files(kwin4_effect_builtins_sources kscreen/kscreenconfig.kcfgc)
|
kconfig_add_kcfg_files(kwin4_effect_builtins_sources kscreen/kscreenconfig.kcfgc)
|
||||||
|
|
|
@ -8,10 +8,10 @@ kconfig_add_kcfg_files(kwin_magiclamp_config_SRCS magiclampconfig.kcfgc)
|
||||||
add_library(kwin_magiclamp_config MODULE ${kwin_magiclamp_config_SRCS})
|
add_library(kwin_magiclamp_config MODULE ${kwin_magiclamp_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_magiclamp_config
|
target_link_libraries(kwin_magiclamp_config
|
||||||
Qt5::DBus
|
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
|
Qt5::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_magiclamp_config magiclamp_config.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_magiclamp_config magiclamp_config.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
#######################################
|
#######################################
|
||||||
# Effect
|
# Effect
|
||||||
install( FILES
|
install(FILES main.qml DESTINATION ${DATA_INSTALL_DIR}/kwin/effects/presentwindows/)
|
||||||
main.qml
|
|
||||||
DESTINATION ${DATA_INSTALL_DIR}/kwin/effects/presentwindows/
|
|
||||||
)
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Config
|
# Config
|
||||||
|
|
|
@ -8,10 +8,10 @@ kconfig_add_kcfg_files(kwin_resize_config_SRCS resizeconfig.kcfgc)
|
||||||
add_library(kwin_resize_config MODULE ${kwin_resize_config_SRCS})
|
add_library(kwin_resize_config MODULE ${kwin_resize_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_resize_config
|
target_link_libraries(kwin_resize_config
|
||||||
Qt5::DBus
|
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
|
Qt5::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_resize_config resize_config.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_resize_config resize_config.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
screenedge/screenedgeeffect.cpp
|
screenedge/screenedgeeffect.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
screenshot/screenshot.cpp
|
screenshot/screenshot.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
sheet/sheet.cpp
|
sheet/sheet.cpp
|
||||||
)
|
)
|
||||||
kconfig_add_kcfg_files(kwin4_effect_builtins_sources sheet/sheetconfig.kcfgc)
|
kconfig_add_kcfg_files(kwin4_effect_builtins_sources sheet/sheetconfig.kcfgc)
|
||||||
|
|
|
@ -8,11 +8,11 @@ kconfig_add_kcfg_files(kwin_showfps_config_SRCS showfpsconfig.kcfgc)
|
||||||
add_library(kwin_showfps_config MODULE ${kwin_showfps_config_SRCS})
|
add_library(kwin_showfps_config MODULE ${kwin_showfps_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_showfps_config
|
target_link_libraries(kwin_showfps_config
|
||||||
Qt5::DBus
|
|
||||||
KF5::Completion
|
KF5::Completion
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
|
Qt5::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_showfps_config showfps_config.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_showfps_config showfps_config.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -8,10 +8,10 @@ kconfig_add_kcfg_files(kwin_slide_config_SRCS slideconfig.kcfgc)
|
||||||
add_library(kwin_slide_config MODULE ${kwin_slide_config_SRCS})
|
add_library(kwin_slide_config MODULE ${kwin_slide_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_slide_config
|
target_link_libraries(kwin_slide_config
|
||||||
Qt5::DBus
|
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
|
Qt5::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_slide_config slide_config.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_slide_config slide_config.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
slideback/slideback.cpp
|
slideback/slideback.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
slidingpopups/slidingpopups.cpp
|
slidingpopups/slidingpopups.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
snaphelper/snaphelper.cpp
|
snaphelper/snaphelper.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
# Effect
|
# Effect
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
set( kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
set(kwin4_effect_builtins_sources ${kwin4_effect_builtins_sources}
|
||||||
startupfeedback/startupfeedback.cpp
|
startupfeedback/startupfeedback.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
#######################################
|
|
||||||
# Config
|
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
#######################################
|
#######################################
|
||||||
# Effect
|
# Effect
|
||||||
# Data files
|
# Data files
|
||||||
install( FILES
|
install(FILES data/tm_inner.png data/tm_outer.png DESTINATION ${DATA_INSTALL_DIR}/kwin)
|
||||||
data/tm_inner.png
|
|
||||||
data/tm_outer.png
|
|
||||||
DESTINATION ${DATA_INSTALL_DIR}/kwin )
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Config
|
# Config
|
||||||
|
|
|
@ -8,10 +8,10 @@ kconfig_add_kcfg_files(kwin_wobblywindows_config_SRCS wobblywindowsconfig.kcfgc)
|
||||||
add_library(kwin_wobblywindows_config MODULE ${kwin_wobblywindows_config_SRCS})
|
add_library(kwin_wobblywindows_config MODULE ${kwin_wobblywindows_config_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_wobblywindows_config
|
target_link_libraries(kwin_wobblywindows_config
|
||||||
Qt5::DBus
|
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
|
Qt5::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
kcoreaddons_desktop_to_json(kwin_wobblywindows_config wobblywindows_config.desktop SERVICE_TYPES kcmodule.desktop)
|
kcoreaddons_desktop_to_json(kwin_wobblywindows_config wobblywindows_config.desktop SERVICE_TYPES kcmodule.desktop)
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
set(kwin_killer_helper_SRCS killer.cpp )
|
set(kwin_killer_helper_SRCS killer.cpp)
|
||||||
|
|
||||||
|
|
||||||
add_executable(kwin_killer_helper ${kwin_killer_helper_SRCS})
|
add_executable(kwin_killer_helper ${kwin_killer_helper_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kwin_killer_helper
|
target_link_libraries(kwin_killer_helper
|
||||||
Qt5::Widgets
|
|
||||||
Qt5::X11Extras
|
|
||||||
KF5::AuthCore
|
KF5::AuthCore
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::WidgetsAddons
|
KF5::WidgetsAddons
|
||||||
|
Qt5::Widgets
|
||||||
|
Qt5::X11Extras
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS kwin_killer_helper DESTINATION ${LIBEXEC_INSTALL_DIR} )
|
install(TARGETS kwin_killer_helper DESTINATION ${LIBEXEC_INSTALL_DIR})
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_KEYWORDS)
|
remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_KEYWORDS)
|
||||||
|
|
||||||
add_subdirectory( common )
|
add_subdirectory(common)
|
||||||
add_subdirectory( kwincompositing )
|
add_subdirectory(kwincompositing)
|
||||||
add_subdirectory( kwinoptions )
|
add_subdirectory(kwinoptions)
|
||||||
add_subdirectory( kwindecoration )
|
add_subdirectory(kwindecoration)
|
||||||
add_subdirectory( kwinrules )
|
add_subdirectory(kwinrules)
|
||||||
add_subdirectory( kwinscreenedges )
|
add_subdirectory(kwinscreenedges)
|
||||||
add_subdirectory( kwinscripts )
|
add_subdirectory(kwinscripts)
|
||||||
add_subdirectory( kwindesktop )
|
add_subdirectory(kwindesktop)
|
||||||
add_subdirectory( kwineffects )
|
add_subdirectory(kwineffects)
|
||||||
|
|
||||||
if( KWIN_BUILD_TABBOX )
|
if (KWIN_BUILD_TABBOX)
|
||||||
add_subdirectory( kwintabbox )
|
add_subdirectory(kwintabbox)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -10,24 +10,25 @@ remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FR
|
||||||
|
|
||||||
set(kwincomposing_SRC
|
set(kwincomposing_SRC
|
||||||
main.cpp
|
main.cpp
|
||||||
compositing.cpp)
|
compositing.cpp
|
||||||
|
)
|
||||||
|
|
||||||
qt5_add_dbus_interface( kwincomposing_SRC
|
qt5_add_dbus_interface(kwincomposing_SRC
|
||||||
${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface)
|
${KWIN_SOURCE_DIR}/org.kde.kwin.Compositing.xml kwin_compositing_interface
|
||||||
|
)
|
||||||
|
|
||||||
ki18n_wrap_ui(kwincomposing_SRC compositing.ui)
|
ki18n_wrap_ui(kwincomposing_SRC compositing.ui)
|
||||||
|
|
||||||
add_library(kwincompositing MODULE ${kwincomposing_SRC})
|
add_library(kwincompositing MODULE ${kwincomposing_SRC})
|
||||||
|
|
||||||
target_link_libraries(kwincompositing
|
target_link_libraries(kwincompositing
|
||||||
Qt5::DBus
|
|
||||||
Qt5::Widgets
|
|
||||||
KF5::CoreAddons
|
|
||||||
KF5::ConfigCore
|
KF5::ConfigCore
|
||||||
|
KF5::CoreAddons
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::KCMUtils
|
KF5::KCMUtils
|
||||||
|
Qt5::DBus
|
||||||
|
Qt5::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
INSTALL(TARGETS kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR})
|
install(TARGETS kwincompositing DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||||
install(FILES kwincompositing.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
install(FILES kwincompositing.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
||||||
################# list the subdirectories #################
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwindecoration\")
|
||||||
add_subdirectory(declarative-plugin)
|
add_subdirectory(declarative-plugin)
|
||||||
|
|
||||||
set(kcmkwindecoration_SRCS
|
set(kcmkwindecoration_SRCS
|
||||||
|
declarative-plugin/buttonsmodel.cpp
|
||||||
|
decorationmodel.cpp
|
||||||
kcm.cpp
|
kcm.cpp
|
||||||
utils.cpp
|
utils.cpp
|
||||||
decorationmodel.cpp
|
|
||||||
declarative-plugin/buttonsmodel.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(kcm_kwindecoration MODULE ${kcmkwindecoration_SRCS})
|
add_library(kcm_kwindecoration MODULE ${kcmkwindecoration_SRCS})
|
||||||
|
@ -15,8 +15,8 @@ add_library(kcm_kwindecoration MODULE ${kcmkwindecoration_SRCS})
|
||||||
target_link_libraries(kcm_kwindecoration
|
target_link_libraries(kcm_kwindecoration
|
||||||
KDecoration2::KDecoration
|
KDecoration2::KDecoration
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::QuickAddons
|
|
||||||
KF5::NewStuff
|
KF5::NewStuff
|
||||||
|
KF5::QuickAddons
|
||||||
Qt5::Quick
|
Qt5::Quick
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -7,20 +7,20 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwin_virtualdesktops\")
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
set(kcm_kwin_virtualdesktops_PART_SRCS
|
set(kcm_kwin_virtualdesktops_PART_SRCS
|
||||||
virtualdesktops.cpp
|
../../virtualdesktopsdbustypes.cpp
|
||||||
animationsmodel.cpp
|
animationsmodel.cpp
|
||||||
desktopsmodel.cpp
|
desktopsmodel.cpp
|
||||||
../../virtualdesktopsdbustypes.cpp
|
virtualdesktops.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(kcm_kwin_virtualdesktops MODULE ${kcm_kwin_virtualdesktops_PART_SRCS})
|
add_library(kcm_kwin_virtualdesktops MODULE ${kcm_kwin_virtualdesktops_PART_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kcm_kwin_virtualdesktops
|
target_link_libraries(kcm_kwin_virtualdesktops
|
||||||
Qt5::DBus
|
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::KCMUtils
|
KF5::KCMUtils
|
||||||
KF5::QuickAddons
|
KF5::QuickAddons
|
||||||
KF5::XmlGui
|
KF5::XmlGui
|
||||||
|
Qt5::DBus
|
||||||
kcmkwincommon
|
kcmkwincommon
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -31,4 +31,3 @@ kcoreaddons_desktop_to_json(kcm_kwin_virtualdesktops "kcm_kwin_virtualdesktops.d
|
||||||
install(TARGETS kcm_kwin_virtualdesktops DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms)
|
install(TARGETS kcm_kwin_virtualdesktops DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms)
|
||||||
install(FILES kcm_kwin_virtualdesktops.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
|
install(FILES kcm_kwin_virtualdesktops.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
|
||||||
kpackage_install_package(package kcm_kwin_virtualdesktops kcms)
|
kpackage_install_package(package kcm_kwin_virtualdesktops kcms)
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,12 @@ set(kcm_kwin_effects_PART_SRCS
|
||||||
add_library(kcm_kwin_effects MODULE ${kcm_kwin_effects_PART_SRCS})
|
add_library(kcm_kwin_effects MODULE ${kcm_kwin_effects_PART_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kcm_kwin_effects
|
target_link_libraries(kcm_kwin_effects
|
||||||
Qt5::DBus
|
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::KCMUtils
|
KF5::KCMUtils
|
||||||
KF5::NewStuff
|
KF5::NewStuff
|
||||||
KF5::QuickAddons
|
KF5::QuickAddons
|
||||||
KF5::XmlGui
|
KF5::XmlGui
|
||||||
|
Qt5::DBus
|
||||||
kcmkwincommon
|
kcmkwincommon
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,17 +2,35 @@
|
||||||
# KI18N Translation Domain for this library
|
# KI18N Translation Domain for this library
|
||||||
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwm\")
|
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwm\")
|
||||||
|
|
||||||
set(kcm_kwinoptions_PART_SRCS windows.cpp mouse.cpp main.cpp ${KWIN_SOURCE_DIR}/effects/effect_builtins.cpp )
|
set(kcm_kwinoptions_PART_SRCS
|
||||||
ki18n_wrap_ui(kcm_kwinoptions_PART_SRCS actions.ui advanced.ui focus.ui mouse.ui moving.ui)
|
${KWIN_SOURCE_DIR}/effects/effect_builtins.cpp
|
||||||
qt5_add_dbus_interface( kcm_kwinoptions_PART_SRCS
|
main.cpp
|
||||||
${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
|
mouse.cpp
|
||||||
|
windows.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
ki18n_wrap_ui(kcm_kwinoptions_PART_SRCS
|
||||||
|
actions.ui
|
||||||
|
advanced.ui
|
||||||
|
focus.ui
|
||||||
|
mouse.ui
|
||||||
|
moving.ui
|
||||||
|
)
|
||||||
|
|
||||||
|
qt5_add_dbus_interface(kcm_kwinoptions_PART_SRCS ${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
|
||||||
add_library(kcm_kwinoptions MODULE ${kcm_kwinoptions_PART_SRCS})
|
add_library(kcm_kwinoptions MODULE ${kcm_kwinoptions_PART_SRCS})
|
||||||
target_link_libraries(kcm_kwinoptions Qt5::DBus KF5::Completion KF5::I18n KF5::ConfigWidgets KF5::Service KF5::WindowSystem)
|
target_link_libraries(kcm_kwinoptions Qt5::DBus KF5::Completion KF5::I18n KF5::ConfigWidgets KF5::Service KF5::WindowSystem)
|
||||||
install(TARGETS kcm_kwinoptions DESTINATION ${PLUGIN_INSTALL_DIR} )
|
install(TARGETS kcm_kwinoptions DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||||
|
|
||||||
|
|
||||||
########### install files ###############
|
########### install files ###############
|
||||||
|
|
||||||
install( FILES kwinoptions.desktop kwinactions.desktop kwinadvanced.desktop
|
install(
|
||||||
kwinfocus.desktop kwinmoving.desktop
|
FILES
|
||||||
DESTINATION ${SERVICES_INSTALL_DIR})
|
kwinactions.desktop
|
||||||
|
kwinadvanced.desktop
|
||||||
|
kwinfocus.desktop
|
||||||
|
kwinmoving.desktop
|
||||||
|
kwinoptions.desktop
|
||||||
|
DESTINATION
|
||||||
|
${SERVICES_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ add_definitions(-DKCMRULES)
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
include_directories(../../)
|
include_directories(../../)
|
||||||
set (kwinrules_MOC_HDRS yesnobox.h ../../cursor.h ../../plugins/platforms/x11/standalone/x11cursor.h)
|
set(kwinrules_MOC_HDRS yesnobox.h ../../cursor.h ../../plugins/platforms/x11/standalone/x11cursor.h)
|
||||||
qt5_wrap_cpp(kwinrules_MOC_SRCS ${kwinrules_MOC_HDRS})
|
qt5_wrap_cpp(kwinrules_MOC_SRCS ${kwinrules_MOC_HDRS})
|
||||||
set(kwinrules_SRCS ruleswidget.cpp ruleslist.cpp kwinsrc.cpp detectwidget.cpp ${kwinrules_MOC_SRCS})
|
set(kwinrules_SRCS ruleswidget.cpp ruleslist.cpp kwinsrc.cpp detectwidget.cpp ${kwinrules_MOC_SRCS})
|
||||||
|
|
||||||
|
@ -12,51 +12,44 @@ ki18n_wrap_ui(kwinrules_SRCS ruleslist.ui detectwidget.ui editshortcut.ui rulesw
|
||||||
|
|
||||||
set(kwin_rules_dialog_KDEINIT_SRCS main.cpp ${kwinrules_SRCS})
|
set(kwin_rules_dialog_KDEINIT_SRCS main.cpp ${kwinrules_SRCS})
|
||||||
|
|
||||||
kf5_add_kdeinit_executable( kwin_rules_dialog ${kwin_rules_dialog_KDEINIT_SRCS})
|
kf5_add_kdeinit_executable(kwin_rules_dialog ${kwin_rules_dialog_KDEINIT_SRCS})
|
||||||
|
|
||||||
set(kwin_kcm_rules_XCB_LIBS
|
set(kwin_kcm_rules_XCB_LIBS
|
||||||
|
XCB::CURSOR
|
||||||
XCB::XCB
|
XCB::XCB
|
||||||
XCB::XFIXES
|
XCB::XFIXES
|
||||||
XCB::CURSOR
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(kcm_libs
|
set(kcm_libs
|
||||||
Qt5::Concurrent
|
|
||||||
Qt5::X11Extras
|
|
||||||
KF5::Completion
|
KF5::Completion
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
KF5::WindowSystem
|
KF5::WindowSystem
|
||||||
KF5::XmlGui
|
KF5::XmlGui
|
||||||
|
Qt5::Concurrent
|
||||||
|
Qt5::X11Extras
|
||||||
)
|
)
|
||||||
|
|
||||||
if(KWIN_BUILD_ACTIVITIES)
|
if (KWIN_BUILD_ACTIVITIES)
|
||||||
set(kcm_libs ${kcm_libs} KF5::Activities)
|
set(kcm_libs ${kcm_libs} KF5::Activities)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(kdeinit_kwin_rules_dialog ${kcm_libs} ${kwin_kcm_rules_XCB_LIBS})
|
target_link_libraries(kdeinit_kwin_rules_dialog ${kcm_libs} ${kwin_kcm_rules_XCB_LIBS})
|
||||||
|
|
||||||
install(TARGETS kdeinit_kwin_rules_dialog ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
install(TARGETS kdeinit_kwin_rules_dialog ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||||
install(TARGETS kwin_rules_dialog DESTINATION ${LIBEXEC_INSTALL_DIR} )
|
install(TARGETS kwin_rules_dialog DESTINATION ${LIBEXEC_INSTALL_DIR})
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
set(kcm_kwinrules_PART_SRCS kcm.cpp ${kwinrules_SRCS})
|
set(kcm_kwinrules_PART_SRCS kcm.cpp ${kwinrules_SRCS})
|
||||||
|
|
||||||
|
|
||||||
add_library(kcm_kwinrules MODULE ${kcm_kwinrules_PART_SRCS})
|
add_library(kcm_kwinrules MODULE ${kcm_kwinrules_PART_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kcm_kwinrules ${kcm_libs} ${kwin_kcm_rules_XCB_LIBS})
|
target_link_libraries(kcm_kwinrules ${kcm_libs} ${kwin_kcm_rules_XCB_LIBS})
|
||||||
|
|
||||||
install(TARGETS kcm_kwinrules DESTINATION ${PLUGIN_INSTALL_DIR} )
|
install(TARGETS kcm_kwinrules DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||||
|
|
||||||
|
|
||||||
########### next target ###############
|
|
||||||
|
|
||||||
|
|
||||||
########### install files ###############
|
########### install files ###############
|
||||||
|
|
||||||
install( FILES kwinrules.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
install(FILES kwinrules.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,35 +2,32 @@
|
||||||
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwinscreenedges\")
|
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwinscreenedges\")
|
||||||
|
|
||||||
include_directories(${KWIN_SOURCE_DIR}/effects)
|
include_directories(${KWIN_SOURCE_DIR}/effects)
|
||||||
set(
|
set(kcm_screenedges_SRCS
|
||||||
kcm_screenedges_SRCS
|
|
||||||
monitor.cpp
|
monitor.cpp
|
||||||
screenpreviewwidget.cpp
|
screenpreviewwidget.cpp
|
||||||
)
|
)
|
||||||
qt5_add_dbus_interface( kcm_screenedges_SRCS
|
qt5_add_dbus_interface(kcm_screenedges_SRCS ${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
|
||||||
${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
|
|
||||||
|
|
||||||
set(kcm_kwinscreenedges_PART_SRCS main.cpp ${kcm_screenedges_SRCS})
|
set(kcm_kwinscreenedges_PART_SRCS main.cpp ${kcm_screenedges_SRCS})
|
||||||
ki18n_wrap_ui( kcm_kwinscreenedges_PART_SRCS main.ui )
|
ki18n_wrap_ui(kcm_kwinscreenedges_PART_SRCS main.ui)
|
||||||
add_library( kcm_kwinscreenedges MODULE ${kcm_kwinscreenedges_PART_SRCS} )
|
add_library(kcm_kwinscreenedges MODULE ${kcm_kwinscreenedges_PART_SRCS})
|
||||||
set(kcm_screenedges_LIBS
|
set(kcm_screenedges_LIBS
|
||||||
Qt5::DBus
|
|
||||||
KF5::Completion
|
KF5::Completion
|
||||||
KF5::ConfigCore
|
KF5::ConfigCore
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
|
||||||
KF5::Package
|
KF5::Package
|
||||||
KF5::Plasma
|
KF5::Plasma
|
||||||
|
KF5::Service
|
||||||
|
Qt5::DBus
|
||||||
kwin4_effect_builtins
|
kwin4_effect_builtins
|
||||||
)
|
)
|
||||||
target_link_libraries( kcm_kwinscreenedges ${X11_LIBRARIES} ${kcm_screenedges_LIBS})
|
target_link_libraries(kcm_kwinscreenedges ${X11_LIBRARIES} ${kcm_screenedges_LIBS})
|
||||||
|
|
||||||
set(kcm_kwintouchscreenedges_PART_SRCS touch.cpp ${kcm_screenedges_SRCS})
|
set(kcm_kwintouchscreenedges_PART_SRCS touch.cpp ${kcm_screenedges_SRCS})
|
||||||
ki18n_wrap_ui( kcm_kwintouchscreenedges_PART_SRCS touch.ui )
|
ki18n_wrap_ui(kcm_kwintouchscreenedges_PART_SRCS touch.ui)
|
||||||
add_library( kcm_kwintouchscreen MODULE ${kcm_kwintouchscreenedges_PART_SRCS} )
|
add_library(kcm_kwintouchscreen MODULE ${kcm_kwintouchscreenedges_PART_SRCS})
|
||||||
target_link_libraries( kcm_kwintouchscreen ${X11_LIBRARIES} ${kcm_screenedges_LIBS})
|
target_link_libraries(kcm_kwintouchscreen ${X11_LIBRARIES} ${kcm_screenedges_LIBS})
|
||||||
|
|
||||||
install( TARGETS kcm_kwinscreenedges kcm_kwintouchscreen DESTINATION ${PLUGIN_INSTALL_DIR} )
|
install(TARGETS kcm_kwinscreenedges kcm_kwintouchscreen DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||||
|
install(FILES kwinscreenedges.desktop kwintouchscreen.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
||||||
install( FILES kwinscreenedges.desktop kwintouchscreen.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
||||||
|
|
|
@ -14,14 +14,14 @@ ki18n_wrap_ui(kcm_SRCS module.ui)
|
||||||
add_library(kcm_kwin_scripts MODULE ${kcm_SRCS})
|
add_library(kcm_kwin_scripts MODULE ${kcm_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kcm_kwin_scripts
|
target_link_libraries(kcm_kwin_scripts
|
||||||
Qt5::DBus
|
KF5::I18n
|
||||||
KF5::KCMUtils
|
KF5::KCMUtils
|
||||||
KF5::KIOCore
|
KF5::KIOCore
|
||||||
KF5::I18n
|
|
||||||
KF5::Package
|
|
||||||
KF5::NewStuff
|
KF5::NewStuff
|
||||||
|
KF5::Package
|
||||||
|
Qt5::DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS kcm_kwin_scripts DESTINATION ${PLUGIN_INSTALL_DIR})
|
install(TARGETS kcm_kwin_scripts DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||||
install(FILES kwinscripts.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
install(FILES kwinscripts.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
||||||
install(FILES kwinscripts.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
|
install(FILES kwinscripts.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
|
||||||
|
|
|
@ -1,40 +1,38 @@
|
||||||
# KI18N Translation Domain for this library
|
# KI18N Translation Domain for this library
|
||||||
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwintabbox\")
|
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_kwintabbox\")
|
||||||
|
|
||||||
include_directories( ${KWIN_SOURCE_DIR}/effects ${KWIN_SOURCE_DIR}/tabbox ${KWIN_SOURCE_DIR})
|
include_directories(${KWIN_SOURCE_DIR}/effects ${KWIN_SOURCE_DIR}/tabbox ${KWIN_SOURCE_DIR})
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
set(kcm_kwintabbox_PART_SRCS
|
set(kcm_kwintabbox_PART_SRCS
|
||||||
main.cpp
|
|
||||||
layoutpreview.cpp
|
|
||||||
thumbnailitem.cpp
|
|
||||||
${KWIN_SOURCE_DIR}/tabbox/tabboxconfig.cpp
|
${KWIN_SOURCE_DIR}/tabbox/tabboxconfig.cpp
|
||||||
|
layoutpreview.cpp
|
||||||
|
main.cpp
|
||||||
|
thumbnailitem.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
ki18n_wrap_ui( kcm_kwintabbox_PART_SRCS main.ui )
|
ki18n_wrap_ui(kcm_kwintabbox_PART_SRCS main.ui)
|
||||||
qt5_add_dbus_interface( kcm_kwintabbox_PART_SRCS
|
qt5_add_dbus_interface(kcm_kwintabbox_PART_SRCS ${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
|
||||||
${KWIN_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
|
|
||||||
|
|
||||||
add_library(kcm_kwintabbox MODULE ${kcm_kwintabbox_PART_SRCS})
|
add_library(kcm_kwintabbox MODULE ${kcm_kwintabbox_PART_SRCS})
|
||||||
|
|
||||||
target_link_libraries(kcm_kwintabbox
|
target_link_libraries(kcm_kwintabbox
|
||||||
Qt5::Quick
|
|
||||||
KF5::KCMUtils
|
|
||||||
KF5::Completion
|
KF5::Completion
|
||||||
KF5::GlobalAccel
|
KF5::GlobalAccel
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::KCMUtils
|
||||||
KF5::NewStuff
|
KF5::NewStuff
|
||||||
KF5::Package
|
KF5::Package
|
||||||
|
KF5::Service
|
||||||
|
Qt5::Quick
|
||||||
XCB::XCB
|
XCB::XCB
|
||||||
kwin4_effect_builtins
|
kwin4_effect_builtins
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS kcm_kwintabbox DESTINATION ${PLUGIN_INSTALL_DIR} )
|
install(TARGETS kcm_kwintabbox DESTINATION ${PLUGIN_INSTALL_DIR} )
|
||||||
|
|
||||||
|
|
||||||
########### install files ###############
|
########### install files ###############
|
||||||
install( FILES kwintabbox.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
install(FILES kwintabbox.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|
||||||
install( FILES thumbnails/konqueror.png thumbnails/kmail.png thumbnails/systemsettings.png thumbnails/dolphin.png DESTINATION ${DATA_INSTALL_DIR}/kwin/kcm_kwintabbox)
|
install(FILES thumbnails/konqueror.png thumbnails/kmail.png thumbnails/systemsettings.png thumbnails/dolphin.png DESTINATION ${DATA_INSTALL_DIR}/kwin/kcm_kwintabbox)
|
||||||
install( FILES kwinswitcher.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} )
|
install(FILES kwinswitcher.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
|
||||||
|
|
|
@ -12,19 +12,19 @@ ecm_setup_version(${PROJECT_VERSION}
|
||||||
set(kwin_XRENDERUTILS_SRCS
|
set(kwin_XRENDERUTILS_SRCS
|
||||||
kwinxrenderutils.cpp
|
kwinxrenderutils.cpp
|
||||||
logging.cpp
|
logging.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(kwinxrenderutils SHARED ${kwin_XRENDERUTILS_SRCS})
|
add_library(kwinxrenderutils SHARED ${kwin_XRENDERUTILS_SRCS})
|
||||||
generate_export_header(kwinxrenderutils EXPORT_FILE_NAME kwinxrenderutils_export.h)
|
generate_export_header(kwinxrenderutils EXPORT_FILE_NAME kwinxrenderutils_export.h)
|
||||||
target_link_libraries(kwinxrenderutils
|
target_link_libraries(kwinxrenderutils
|
||||||
PUBLIC
|
PUBLIC
|
||||||
|
KF5::WaylandServer
|
||||||
Qt5::Core
|
Qt5::Core
|
||||||
Qt5::Gui
|
Qt5::Gui
|
||||||
|
XCB::RENDER
|
||||||
XCB::XCB
|
XCB::XCB
|
||||||
XCB::XFIXES
|
XCB::XFIXES
|
||||||
XCB::RENDER
|
)
|
||||||
KF5::WaylandServer
|
|
||||||
)
|
|
||||||
|
|
||||||
set_target_properties(kwinxrenderutils PROPERTIES
|
set_target_properties(kwinxrenderutils PROPERTIES
|
||||||
VERSION ${KWINEFFECTS_VERSION_STRING}
|
VERSION ${KWINEFFECTS_VERSION_STRING}
|
||||||
|
@ -36,11 +36,11 @@ install(TARGETS kwinxrenderutils EXPORT kdeworkspaceLibraryTargets ${INSTALL_TAR
|
||||||
|
|
||||||
### effects lib ###
|
### effects lib ###
|
||||||
set(kwin_EFFECTSLIB_SRCS
|
set(kwin_EFFECTSLIB_SRCS
|
||||||
kwineffects.cpp
|
|
||||||
anidata.cpp
|
anidata.cpp
|
||||||
kwinanimationeffect.cpp
|
kwinanimationeffect.cpp
|
||||||
|
kwineffects.cpp
|
||||||
logging.cpp
|
logging.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(kwineffects_QT_LIBS
|
set(kwineffects_QT_LIBS
|
||||||
Qt5::DBus
|
Qt5::DBus
|
||||||
|
@ -60,12 +60,12 @@ set(kwineffects_XCB_LIBS
|
||||||
add_library(kwineffects SHARED ${kwin_EFFECTSLIB_SRCS})
|
add_library(kwineffects SHARED ${kwin_EFFECTSLIB_SRCS})
|
||||||
generate_export_header(kwineffects EXPORT_FILE_NAME kwineffects_export.h)
|
generate_export_header(kwineffects EXPORT_FILE_NAME kwineffects_export.h)
|
||||||
target_link_libraries(kwineffects
|
target_link_libraries(kwineffects
|
||||||
PUBLIC
|
PUBLIC
|
||||||
${kwineffects_QT_LIBS}
|
${kwineffects_QT_LIBS}
|
||||||
${kwineffects_KDE_LIBS}
|
${kwineffects_KDE_LIBS}
|
||||||
${kwineffects_XCB_LIBS}
|
${kwineffects_XCB_LIBS}
|
||||||
)
|
)
|
||||||
if( KWIN_HAVE_XRENDER_COMPOSITING )
|
if (KWIN_HAVE_XRENDER_COMPOSITING)
|
||||||
target_link_libraries(kwineffects PRIVATE kwinxrenderutils XCB::XFIXES)
|
target_link_libraries(kwineffects PRIVATE kwinxrenderutils XCB::XFIXES)
|
||||||
endif()
|
endif()
|
||||||
set_target_properties(kwineffects PROPERTIES
|
set_target_properties(kwineffects PROPERTIES
|
||||||
|
@ -78,14 +78,14 @@ install(TARGETS kwineffects EXPORT kdeworkspaceLibraryTargets ${INSTALL_TARGETS_
|
||||||
|
|
||||||
# kwingl(es)utils library
|
# kwingl(es)utils library
|
||||||
set(kwin_GLUTILSLIB_SRCS
|
set(kwin_GLUTILSLIB_SRCS
|
||||||
kwinglutils.cpp
|
|
||||||
kwingltexture.cpp
|
|
||||||
kwinglutils_funcs.cpp
|
|
||||||
kwinglplatform.cpp
|
kwinglplatform.cpp
|
||||||
|
kwingltexture.cpp
|
||||||
|
kwinglutils.cpp
|
||||||
|
kwinglutils_funcs.cpp
|
||||||
logging.cpp
|
logging.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
macro( KWIN4_ADD_GLUTILS_BACKEND name glinclude )
|
macro(KWIN4_ADD_GLUTILS_BACKEND name glinclude)
|
||||||
include_directories(${glinclude})
|
include_directories(${glinclude})
|
||||||
add_library(${name} SHARED ${kwin_GLUTILSLIB_SRCS})
|
add_library(${name} SHARED ${kwin_GLUTILSLIB_SRCS})
|
||||||
generate_export_header(${name} BASE_NAME kwinglutils EXPORT_FILE_NAME kwinglutils_export.h)
|
generate_export_header(${name} BASE_NAME kwinglutils EXPORT_FILE_NAME kwinglutils_export.h)
|
||||||
|
@ -104,17 +104,17 @@ set_target_properties(kwinglutils PROPERTIES OUTPUT_NAME ${KWIN_NAME}glutils)
|
||||||
|
|
||||||
target_link_libraries(kwinglutils PUBLIC ${epoxy_LIBRARY})
|
target_link_libraries(kwinglutils PUBLIC ${epoxy_LIBRARY})
|
||||||
|
|
||||||
install( FILES
|
install(FILES
|
||||||
kwinglobals.h
|
|
||||||
kwineffects.h
|
|
||||||
kwinanimationeffect.h
|
|
||||||
kwinglplatform.h
|
|
||||||
kwinglutils.h
|
|
||||||
kwinglutils_funcs.h
|
|
||||||
kwingltexture.h
|
|
||||||
kwinxrenderutils.h
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/kwinconfig.h
|
${CMAKE_CURRENT_BINARY_DIR}/kwinconfig.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/kwineffects_export.h
|
${CMAKE_CURRENT_BINARY_DIR}/kwineffects_export.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/kwinglutils_export.h
|
${CMAKE_CURRENT_BINARY_DIR}/kwinglutils_export.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/kwinxrenderutils_export.h
|
${CMAKE_CURRENT_BINARY_DIR}/kwinxrenderutils_export.h
|
||||||
|
kwinanimationeffect.h
|
||||||
|
kwineffects.h
|
||||||
|
kwinglobals.h
|
||||||
|
kwinglplatform.h
|
||||||
|
kwingltexture.h
|
||||||
|
kwinglutils.h
|
||||||
|
kwinglutils_funcs.h
|
||||||
|
kwinxrenderutils.h
|
||||||
DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|
DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|
||||||
|
|
|
@ -6,6 +6,6 @@ add_subdirectory(scenes)
|
||||||
add_subdirectory(windowsystem)
|
add_subdirectory(windowsystem)
|
||||||
add_subdirectory(kpackage)
|
add_subdirectory(kpackage)
|
||||||
|
|
||||||
if(KWIN_BUILD_DECORATIONS)
|
if (KWIN_BUILD_DECORATIONS)
|
||||||
add_subdirectory(kdecorations)
|
add_subdirectory(kdecorations)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -5,9 +5,9 @@ set(idletime_plugin_SRCS
|
||||||
add_library(KF5IdleTimeKWinWaylandPrivatePlugin MODULE ${idletime_plugin_SRCS})
|
add_library(KF5IdleTimeKWinWaylandPrivatePlugin MODULE ${idletime_plugin_SRCS})
|
||||||
set_target_properties(KF5IdleTimeKWinWaylandPrivatePlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/org.kde.kidletime.platforms/")
|
set_target_properties(KF5IdleTimeKWinWaylandPrivatePlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/org.kde.kidletime.platforms/")
|
||||||
target_link_libraries(KF5IdleTimeKWinWaylandPrivatePlugin
|
target_link_libraries(KF5IdleTimeKWinWaylandPrivatePlugin
|
||||||
kwin
|
|
||||||
KF5::IdleTime
|
KF5::IdleTime
|
||||||
KF5::WaylandClient
|
KF5::WaylandClient
|
||||||
|
kwin
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
add_definitions(-DTRANSLATION_DOMAIN=\"kwin_clients\")
|
add_definitions(-DTRANSLATION_DOMAIN=\"kwin_clients\")
|
||||||
add_subdirectory( aurorae )
|
add_subdirectory(aurorae)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
########### decoration ###############
|
########### decoration ###############
|
||||||
include_directories(
|
include_directories(
|
||||||
./lib
|
./lib
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(kwin5_aurorae_PART_SRCS
|
set(kwin5_aurorae_PART_SRCS
|
||||||
|
@ -28,41 +28,43 @@ target_link_libraries(kwin5_aurorae
|
||||||
install(TARGETS kwin5_aurorae DESTINATION ${PLUGIN_INSTALL_DIR}/org.kde.kdecoration2)
|
install(TARGETS kwin5_aurorae DESTINATION ${PLUGIN_INSTALL_DIR}/org.kde.kdecoration2)
|
||||||
|
|
||||||
set(decoration_plugin_SRCS
|
set(decoration_plugin_SRCS
|
||||||
decorationplugin.cpp
|
|
||||||
decorationoptions.cpp
|
|
||||||
colorhelper.cpp
|
colorhelper.cpp
|
||||||
)
|
decorationoptions.cpp
|
||||||
|
decorationplugin.cpp
|
||||||
|
)
|
||||||
|
|
||||||
add_library(decorationplugin SHARED ${decoration_plugin_SRCS})
|
add_library(decorationplugin SHARED ${decoration_plugin_SRCS})
|
||||||
set_target_properties(decorationplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org/kde/kwin/decoration/")
|
set_target_properties(decorationplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org/kde/kwin/decoration/")
|
||||||
target_link_libraries(decorationplugin
|
target_link_libraries(decorationplugin
|
||||||
Qt5::Quick
|
|
||||||
KDecoration2::KDecoration
|
KDecoration2::KDecoration
|
||||||
KF5::ConfigWidgets
|
KF5::ConfigWidgets
|
||||||
|
Qt5::Quick
|
||||||
)
|
)
|
||||||
install(TARGETS decorationplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/kwin/decoration)
|
install(TARGETS decorationplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/kwin/decoration)
|
||||||
|
|
||||||
########### install files ###############
|
########### install files ###############
|
||||||
|
|
||||||
install( FILES aurorae.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} )
|
install(FILES aurorae.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR})
|
||||||
install( FILES
|
install(
|
||||||
qml/aurorae.qml
|
FILES
|
||||||
qml/AuroraeButton.qml
|
qml/AppMenuButton.qml
|
||||||
qml/AuroraeButtonGroup.qml
|
qml/AuroraeButton.qml
|
||||||
qml/AuroraeMaximizeButton.qml
|
qml/AuroraeButtonGroup.qml
|
||||||
qml/Decoration.qml
|
qml/AuroraeMaximizeButton.qml
|
||||||
qml/DecorationButton.qml
|
qml/Decoration.qml
|
||||||
qml/MenuButton.qml
|
qml/DecorationButton.qml
|
||||||
qml/AppMenuButton.qml
|
qml/MenuButton.qml
|
||||||
DESTINATION ${DATA_INSTALL_DIR}/kwin/aurorae )
|
qml/aurorae.qml
|
||||||
|
DESTINATION
|
||||||
|
${DATA_INSTALL_DIR}/kwin/aurorae)
|
||||||
set(QMLFILES
|
set(QMLFILES
|
||||||
qml/Decoration.qml
|
|
||||||
qml/DecorationButton.qml
|
|
||||||
qml/MenuButton.qml
|
|
||||||
qml/AppMenuButton.qml
|
qml/AppMenuButton.qml
|
||||||
qml/ButtonGroup.qml
|
qml/ButtonGroup.qml
|
||||||
|
qml/Decoration.qml
|
||||||
|
qml/DecorationButton.qml
|
||||||
|
qml/MenuButton.qml
|
||||||
qml/qmldir
|
qml/qmldir
|
||||||
)
|
)
|
||||||
install( FILES ${QMLFILES} DESTINATION ${QML_INSTALL_DIR}/org/kde/kwin/decoration )
|
install(FILES ${QMLFILES} DESTINATION ${QML_INSTALL_DIR}/org/kde/kwin/decoration)
|
||||||
file(COPY ${QMLFILES} DESTINATION ${CMAKE_BINARY_DIR}/bin/org/kde/kwin/decoration/)
|
file(COPY ${QMLFILES} DESTINATION ${CMAKE_BINARY_DIR}/bin/org/kde/kwin/decoration/)
|
||||||
install( FILES kwindecoration.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
|
install(FILES kwindecoration.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
set(plastik_plugin_SRCS
|
set(plastik_plugin_SRCS
|
||||||
plastikbutton.cpp
|
plastikbutton.cpp
|
||||||
plastikplugin.cpp
|
plastikplugin.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(plastikplugin SHARED ${plastik_plugin_SRCS})
|
add_library(plastikplugin SHARED ${plastik_plugin_SRCS})
|
||||||
set_target_properties(plastikplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org/kde/kwin/decorations/plastik")
|
set_target_properties(plastikplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org/kde/kwin/decorations/plastik")
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
if(HAVE_DRM)
|
if (HAVE_DRM)
|
||||||
add_subdirectory(drm)
|
add_subdirectory(drm)
|
||||||
endif()
|
endif()
|
||||||
if (HAVE_LINUX_FB_H)
|
if (HAVE_LINUX_FB_H)
|
||||||
add_subdirectory(fbdev)
|
add_subdirectory(fbdev)
|
||||||
endif()
|
endif()
|
||||||
if(HAVE_LIBHYBRIS)
|
if (HAVE_LIBHYBRIS)
|
||||||
add_subdirectory(hwcomposer)
|
add_subdirectory(hwcomposer)
|
||||||
endif()
|
endif()
|
||||||
add_subdirectory(virtual)
|
add_subdirectory(virtual)
|
||||||
|
|
|
@ -13,7 +13,7 @@ set(DRM_SOURCES
|
||||||
screens_drm.cpp
|
screens_drm.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if(HAVE_GBM)
|
if (HAVE_GBM)
|
||||||
set(DRM_SOURCES ${DRM_SOURCES}
|
set(DRM_SOURCES ${DRM_SOURCES}
|
||||||
egl_gbm_backend.cpp
|
egl_gbm_backend.cpp
|
||||||
drm_buffer_gbm.cpp
|
drm_buffer_gbm.cpp
|
||||||
|
@ -22,7 +22,7 @@ if(HAVE_GBM)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_EGL_STREAMS)
|
if (HAVE_EGL_STREAMS)
|
||||||
set(DRM_SOURCES ${DRM_SOURCES}
|
set(DRM_SOURCES ${DRM_SOURCES}
|
||||||
egl_stream_backend.cpp
|
egl_stream_backend.cpp
|
||||||
)
|
)
|
||||||
|
@ -34,7 +34,7 @@ add_library(KWinWaylandDrmBackend MODULE ${DRM_SOURCES})
|
||||||
set_target_properties(KWinWaylandDrmBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
set_target_properties(KWinWaylandDrmBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
||||||
target_link_libraries(KWinWaylandDrmBackend kwin Libdrm::Libdrm SceneQPainterBackend SceneOpenGLBackend)
|
target_link_libraries(KWinWaylandDrmBackend kwin Libdrm::Libdrm SceneQPainterBackend SceneOpenGLBackend)
|
||||||
|
|
||||||
if(HAVE_GBM)
|
if (HAVE_GBM)
|
||||||
target_link_libraries(KWinWaylandDrmBackend gbm::gbm)
|
target_link_libraries(KWinWaylandDrmBackend gbm::gbm)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,11 @@ include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
||||||
add_library(KWinWaylandHwcomposerBackend MODULE ${HWCOMPOSER_SOURCES})
|
add_library(KWinWaylandHwcomposerBackend MODULE ${HWCOMPOSER_SOURCES})
|
||||||
set_target_properties(KWinWaylandHwcomposerBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
set_target_properties(KWinWaylandHwcomposerBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
||||||
target_link_libraries(KWinWaylandHwcomposerBackend
|
target_link_libraries(KWinWaylandHwcomposerBackend
|
||||||
|
SceneOpenGLBackend
|
||||||
kwin
|
kwin
|
||||||
libhybris::libhardware
|
|
||||||
libhybris::hwcomposer
|
libhybris::hwcomposer
|
||||||
libhybris::hybriseglplatform
|
libhybris::hybriseglplatform
|
||||||
SceneOpenGLBackend
|
libhybris::libhardware
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
set(VIRTUAL_SOURCES
|
set(VIRTUAL_SOURCES
|
||||||
egl_gbm_backend.cpp
|
egl_gbm_backend.cpp
|
||||||
virtual_backend.cpp
|
|
||||||
virtual_output.cpp
|
|
||||||
scene_qpainter_virtual_backend.cpp
|
scene_qpainter_virtual_backend.cpp
|
||||||
screens_virtual.cpp
|
screens_virtual.cpp
|
||||||
|
virtual_backend.cpp
|
||||||
|
virtual_output.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
||||||
|
|
|
@ -5,7 +5,7 @@ set(WAYLAND_BACKEND_SOURCES
|
||||||
wayland_output.cpp
|
wayland_output.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if(HAVE_WAYLAND_EGL)
|
if (HAVE_WAYLAND_EGL)
|
||||||
set(WAYLAND_BACKEND_SOURCES egl_wayland_backend.cpp ${WAYLAND_BACKEND_SOURCES})
|
set(WAYLAND_BACKEND_SOURCES egl_wayland_backend.cpp ${WAYLAND_BACKEND_SOURCES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ add_library(KWinWaylandWaylandBackend MODULE ${WAYLAND_BACKEND_SOURCES})
|
||||||
set_target_properties(KWinWaylandWaylandBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
set_target_properties(KWinWaylandWaylandBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
||||||
target_link_libraries(KWinWaylandWaylandBackend kwin KF5::WaylandClient SceneQPainterBackend)
|
target_link_libraries(KWinWaylandWaylandBackend kwin KF5::WaylandClient SceneQPainterBackend)
|
||||||
|
|
||||||
if(HAVE_WAYLAND_EGL)
|
if (HAVE_WAYLAND_EGL)
|
||||||
target_link_libraries(KWinWaylandWaylandBackend SceneOpenGLBackend Wayland::Egl)
|
target_link_libraries(KWinWaylandWaylandBackend SceneOpenGLBackend Wayland::Egl)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
add_subdirectory(common)
|
add_subdirectory(common)
|
||||||
add_subdirectory(standalone)
|
add_subdirectory(standalone)
|
||||||
if(X11_XCB_FOUND)
|
if (X11_XCB_FOUND)
|
||||||
add_subdirectory(windowed)
|
add_subdirectory(windowed)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-int-to-pointer-cast")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-int-to-pointer-cast")
|
||||||
endif()
|
endif()
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-int-to-void-pointer-cast")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-int-to-void-pointer-cast")
|
||||||
endif()
|
endif()
|
||||||
include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
set(X11PLATFORM_SOURCES
|
set(X11PLATFORM_SOURCES
|
||||||
edge.cpp
|
edge.cpp
|
||||||
|
effects_mouse_interception_x11_filter.cpp
|
||||||
|
effects_x11.cpp
|
||||||
logging.cpp
|
logging.cpp
|
||||||
x11cursor.cpp
|
non_composited_outline.cpp
|
||||||
x11_platform.cpp
|
|
||||||
x11_output.cpp
|
|
||||||
screens_xrandr.cpp
|
|
||||||
windowselector.cpp
|
|
||||||
overlaywindow_x11.cpp
|
overlaywindow_x11.cpp
|
||||||
screenedges_filter.cpp
|
screenedges_filter.cpp
|
||||||
non_composited_outline.cpp
|
screens_xrandr.cpp
|
||||||
x11_decoration_renderer.cpp
|
|
||||||
xfixes_cursor_event_filter.cpp
|
|
||||||
effects_x11.cpp
|
|
||||||
effects_mouse_interception_x11_filter.cpp
|
|
||||||
sync_filter.cpp
|
sync_filter.cpp
|
||||||
|
windowselector.cpp
|
||||||
|
x11_decoration_renderer.cpp
|
||||||
|
x11_output.cpp
|
||||||
|
x11_platform.cpp
|
||||||
|
x11cursor.cpp
|
||||||
|
xfixes_cursor_event_filter.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if(X11_Xinput_FOUND)
|
if (X11_Xinput_FOUND)
|
||||||
set(X11PLATFORM_SOURCES ${X11PLATFORM_SOURCES} xinputintegration.cpp)
|
set(X11PLATFORM_SOURCES ${X11PLATFORM_SOURCES} xinputintegration.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_EPOXY_GLX)
|
if (HAVE_EPOXY_GLX)
|
||||||
set(X11PLATFORM_SOURCES ${X11PLATFORM_SOURCES} glxbackend.cpp glx_context_attribute_builder.cpp)
|
set(X11PLATFORM_SOURCES ${X11PLATFORM_SOURCES} glxbackend.cpp glx_context_attribute_builder.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -29,11 +29,11 @@ include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
||||||
add_library(KWinX11Platform MODULE ${X11PLATFORM_SOURCES})
|
add_library(KWinX11Platform MODULE ${X11PLATFORM_SOURCES})
|
||||||
set_target_properties(KWinX11Platform PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.platforms/")
|
set_target_properties(KWinX11Platform PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.platforms/")
|
||||||
target_link_libraries(KWinX11Platform eglx11common kwin kwinxrenderutils SceneOpenGLBackend Qt5::X11Extras XCB::CURSOR KF5::Crash)
|
target_link_libraries(KWinX11Platform eglx11common kwin kwinxrenderutils SceneOpenGLBackend Qt5::X11Extras XCB::CURSOR KF5::Crash)
|
||||||
if(X11_Xinput_FOUND)
|
if (X11_Xinput_FOUND)
|
||||||
target_link_libraries(KWinX11Platform ${X11_Xinput_LIB})
|
target_link_libraries(KWinX11Platform ${X11_Xinput_LIB})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(HAVE_DL_LIBRARY)
|
if (HAVE_DL_LIBRARY)
|
||||||
target_link_libraries(KWinX11Platform ${DL_LIBRARY})
|
target_link_libraries(KWinX11Platform ${DL_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
set(X11BACKEND_SOURCES
|
set(X11BACKEND_SOURCES
|
||||||
logging.cpp
|
|
||||||
egl_x11_backend.cpp
|
egl_x11_backend.cpp
|
||||||
|
logging.cpp
|
||||||
scene_qpainter_x11_backend.cpp
|
scene_qpainter_x11_backend.cpp
|
||||||
x11windowed_backend.cpp
|
x11windowed_backend.cpp
|
||||||
x11windowed_output.cpp
|
x11windowed_output.cpp
|
||||||
|
@ -10,7 +10,7 @@ include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
||||||
add_library(KWinWaylandX11Backend MODULE ${X11BACKEND_SOURCES})
|
add_library(KWinWaylandX11Backend MODULE ${X11BACKEND_SOURCES})
|
||||||
set_target_properties(KWinWaylandX11Backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
set_target_properties(KWinWaylandX11Backend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
||||||
target_link_libraries(KWinWaylandX11Backend eglx11common kwin kwinxrenderutils X11::XCB SceneQPainterBackend SceneOpenGLBackend)
|
target_link_libraries(KWinWaylandX11Backend eglx11common kwin kwinxrenderutils X11::XCB SceneQPainterBackend SceneOpenGLBackend)
|
||||||
if(X11_Xinput_FOUND)
|
if (X11_Xinput_FOUND)
|
||||||
target_link_libraries(KWinWaylandX11Backend ${X11_Xinput_LIB})
|
target_link_libraries(KWinWaylandX11Backend ${X11_Xinput_LIB})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -22,17 +22,17 @@ add_library(KWinQpaPlugin MODULE ${QPA_SOURCES})
|
||||||
set_target_properties(KWinQpaPlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/platforms/")
|
set_target_properties(KWinQpaPlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/platforms/")
|
||||||
|
|
||||||
set(QT5PLATFORMSUPPORT_LIBS
|
set(QT5PLATFORMSUPPORT_LIBS
|
||||||
Qt5FontDatabaseSupport::Qt5FontDatabaseSupport
|
Qt5FontDatabaseSupport::Qt5FontDatabaseSupport
|
||||||
Qt5ThemeSupport::Qt5ThemeSupport
|
Qt5ThemeSupport::Qt5ThemeSupport
|
||||||
Qt5EventDispatcherSupport::Qt5EventDispatcherSupport
|
Qt5EventDispatcherSupport::Qt5EventDispatcherSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(KWinQpaPlugin
|
target_link_libraries(KWinQpaPlugin
|
||||||
kwin
|
${FREETYPE_LIBRARIES}
|
||||||
KF5::WaylandClient
|
|
||||||
${QT5PLATFORMSUPPORT_LIBS}
|
${QT5PLATFORMSUPPORT_LIBS}
|
||||||
Fontconfig::Fontconfig
|
Fontconfig::Fontconfig
|
||||||
${FREETYPE_LIBRARIES}
|
KF5::WaylandClient
|
||||||
|
kwin
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
add_subdirectory(opengl)
|
add_subdirectory(opengl)
|
||||||
add_subdirectory(qpainter)
|
add_subdirectory(qpainter)
|
||||||
if( KWIN_BUILD_XRENDER_COMPOSITING )
|
if (KWIN_BUILD_XRENDER_COMPOSITING)
|
||||||
add_subdirectory(xrender)
|
add_subdirectory(xrender)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
set(SCENE_OPENGL_SRCS
|
set(SCENE_OPENGL_SRCS
|
||||||
scene_opengl.cpp
|
|
||||||
lanczosfilter.cpp
|
lanczosfilter.cpp
|
||||||
|
scene_opengl.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
include(ECMQtDeclareLoggingCategory)
|
include(ECMQtDeclareLoggingCategory)
|
||||||
|
@ -20,8 +20,8 @@ qt5_add_resources(SCENE_OPENGL_SRCS resources.qrc)
|
||||||
add_library(KWinSceneOpenGL MODULE ${SCENE_OPENGL_SRCS})
|
add_library(KWinSceneOpenGL MODULE ${SCENE_OPENGL_SRCS})
|
||||||
set_target_properties(KWinSceneOpenGL PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.scenes/")
|
set_target_properties(KWinSceneOpenGL PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.scenes/")
|
||||||
target_link_libraries(KWinSceneOpenGL
|
target_link_libraries(KWinSceneOpenGL
|
||||||
kwin
|
|
||||||
SceneOpenGLBackend
|
SceneOpenGLBackend
|
||||||
|
kwin
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
|
|
|
@ -3,8 +3,8 @@ set(SCENE_QPAINTER_SRCS scene_qpainter.cpp)
|
||||||
add_library(KWinSceneQPainter MODULE scene_qpainter.cpp)
|
add_library(KWinSceneQPainter MODULE scene_qpainter.cpp)
|
||||||
set_target_properties(KWinSceneQPainter PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.scenes/")
|
set_target_properties(KWinSceneQPainter PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.scenes/")
|
||||||
target_link_libraries(KWinSceneQPainter
|
target_link_libraries(KWinSceneQPainter
|
||||||
kwin
|
|
||||||
SceneQPainterBackend
|
SceneQPainterBackend
|
||||||
|
kwin
|
||||||
)
|
)
|
||||||
|
|
||||||
install(
|
install(
|
||||||
|
|
|
@ -4,12 +4,9 @@ set(kwindowsystem_plugin_SRCS
|
||||||
windowsystem.cpp
|
windowsystem.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
add_library(KF5WindowSystemKWinPrivatePlugin MODULE ${kwindowsystem_plugin_SRCS})
|
add_library(KF5WindowSystemKWinPrivatePlugin MODULE ${kwindowsystem_plugin_SRCS})
|
||||||
set_target_properties(KF5WindowSystemKWinPrivatePlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/org.kde.kwindowsystem.platforms/")
|
set_target_properties(KF5WindowSystemKWinPrivatePlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/kf5/org.kde.kwindowsystem.platforms/")
|
||||||
target_link_libraries(KF5WindowSystemKWinPrivatePlugin
|
target_link_libraries(KF5WindowSystemKWinPrivatePlugin kwin)
|
||||||
kwin
|
|
||||||
)
|
|
||||||
|
|
||||||
install(
|
install(
|
||||||
TARGETS
|
TARGETS
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
install( DIRECTORY outline/plasma DESTINATION ${DATA_INSTALL_DIR}/${KWIN_NAME}/outline )
|
install(DIRECTORY outline/plasma DESTINATION ${DATA_INSTALL_DIR}/${KWIN_NAME}/outline)
|
||||||
install( DIRECTORY onscreennotification/plasma DESTINATION ${DATA_INSTALL_DIR}/${KWIN_NAME}/onscreennotification )
|
install(DIRECTORY onscreennotification/plasma DESTINATION ${DATA_INSTALL_DIR}/${KWIN_NAME}/onscreennotification)
|
||||||
install( DIRECTORY virtualkeyboard DESTINATION ${DATA_INSTALL_DIR}/${KWIN_NAME} )
|
install(DIRECTORY virtualkeyboard DESTINATION ${DATA_INSTALL_DIR}/${KWIN_NAME})
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
set(kcm_kwin4_genericscripted_SRCS genericscriptedconfig.cpp)
|
set(kcm_kwin4_genericscripted_SRCS genericscriptedconfig.cpp)
|
||||||
qt5_add_dbus_interface(kcm_kwin4_genericscripted_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
qt5_add_dbus_interface(kcm_kwin4_genericscripted_SRCS ${kwin_effects_dbus_xml} kwineffects_interface)
|
||||||
add_library(kcm_kwin4_genericscripted MODULE ${kcm_kwin4_genericscripted_SRCS})
|
add_library(kcm_kwin4_genericscripted MODULE ${kcm_kwin4_genericscripted_SRCS})
|
||||||
target_link_libraries( kcm_kwin4_genericscripted
|
target_link_libraries(kcm_kwin4_genericscripted
|
||||||
KF5::ConfigWidgets #KCModule
|
KF5::ConfigWidgets #KCModule
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::Service
|
KF5::Service
|
||||||
Qt5::DBus
|
Qt5::DBus
|
||||||
Qt5::UiTools )
|
Qt5::UiTools
|
||||||
install( TARGETS kcm_kwin4_genericscripted DESTINATION ${PLUGIN_INSTALL_DIR}/kwin/effects/configs )
|
)
|
||||||
|
install(TARGETS kcm_kwin4_genericscripted DESTINATION ${PLUGIN_INSTALL_DIR}/kwin/effects/configs)
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Install the KWin/WindowSwitcher service type
|
# Install the KWin/WindowSwitcher service type
|
||||||
install( FILES kwinwindowswitcher.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
|
install(FILES kwinwindowswitcher.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
||||||
install( FILES kwindesktopswitcher.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
|
install(FILES kwindesktopswitcher.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
||||||
|
|
|
@ -11,22 +11,20 @@ target_link_libraries(screenedgeshowtest Qt5::Widgets Qt5::X11Extras KF5::Config
|
||||||
|
|
||||||
if (KF5Wayland_FOUND)
|
if (KF5Wayland_FOUND)
|
||||||
add_definitions(-DSOURCE_DIR="${KWIN_SOURCE_DIR}")
|
add_definitions(-DSOURCE_DIR="${KWIN_SOURCE_DIR}")
|
||||||
set(waylandclienttest_SRCS
|
set(waylandclienttest_SRCS waylandclienttest.cpp)
|
||||||
waylandclienttest.cpp
|
|
||||||
)
|
|
||||||
add_executable(waylandclienttest ${waylandclienttest_SRCS})
|
add_executable(waylandclienttest ${waylandclienttest_SRCS})
|
||||||
target_link_libraries(waylandclienttest Qt5::Core Qt5::Gui KF5::WaylandClient)
|
target_link_libraries(waylandclienttest Qt5::Core Qt5::Gui KF5::WaylandClient)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(libinputtest_SRCS
|
set(libinputtest_SRCS
|
||||||
libinputtest.cpp
|
${KWIN_SOURCE_DIR}/libinput/connection.cpp
|
||||||
${KWIN_SOURCE_DIR}/libinput/context.cpp
|
${KWIN_SOURCE_DIR}/libinput/context.cpp
|
||||||
${KWIN_SOURCE_DIR}/libinput/connection.cpp
|
${KWIN_SOURCE_DIR}/libinput/device.cpp
|
||||||
${KWIN_SOURCE_DIR}/libinput/device.cpp
|
${KWIN_SOURCE_DIR}/libinput/events.cpp
|
||||||
${KWIN_SOURCE_DIR}/libinput/events.cpp
|
${KWIN_SOURCE_DIR}/libinput/libinput_logging.cpp
|
||||||
${KWIN_SOURCE_DIR}/libinput/libinput_logging.cpp
|
${KWIN_SOURCE_DIR}/logind.cpp
|
||||||
${KWIN_SOURCE_DIR}/logind.cpp
|
${KWIN_SOURCE_DIR}/udev.cpp
|
||||||
${KWIN_SOURCE_DIR}/udev.cpp
|
libinputtest.cpp
|
||||||
)
|
)
|
||||||
add_executable(libinputtest ${libinputtest_SRCS})
|
add_executable(libinputtest ${libinputtest_SRCS})
|
||||||
add_definitions(-DKWIN_BUILD_TESTING)
|
add_definitions(-DKWIN_BUILD_TESTING)
|
||||||
|
@ -47,10 +45,10 @@ add_executable(cursorhotspottest cursorhotspottest.cpp)
|
||||||
target_link_libraries(cursorhotspottest Qt5::Widgets)
|
target_link_libraries(cursorhotspottest Qt5::Widgets)
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
set( orientationtest_SRCS
|
set(orientationtest_SRCS
|
||||||
orientationtest.cpp
|
|
||||||
../orientation_sensor.cpp
|
../orientation_sensor.cpp
|
||||||
|
orientationtest.cpp
|
||||||
)
|
)
|
||||||
qt5_add_dbus_adaptor( orientationtest_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../org.kde.kwin.OrientationSensor.xml ${CMAKE_CURRENT_SOURCE_DIR}/../orientation_sensor.h KWin::OrientationSensor)
|
qt5_add_dbus_adaptor(orientationtest_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../org.kde.kwin.OrientationSensor.xml ${CMAKE_CURRENT_SOURCE_DIR}/../orientation_sensor.h KWin::OrientationSensor)
|
||||||
add_executable(orientationtest ${orientationtest_SRCS})
|
add_executable(orientationtest ${orientationtest_SRCS})
|
||||||
target_link_libraries(orientationtest Qt5::DBus Qt5::Widgets Qt5::Sensors KF5::ConfigCore KF5::Notifications KF5::I18n)
|
target_link_libraries(orientationtest Qt5::DBus Qt5::Widgets Qt5::Sensors KF5::ConfigCore KF5::Notifications KF5::I18n)
|
||||||
|
|
Loading…
Reference in New Issue