Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWayland Server
Commits
c286a4b0
Commit
c286a4b0
authored
Apr 29, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
Fix build
parent
b3e930f9
Changes
62
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
c286a4b0
cmake_minimum_required
(
VERSION 3.5
)
set
(
PROJECT_VERSION
"5.18.80"
)
set
(
PROJECT_VERSION_MAJOR 5
)
set
(
KF5_VERSION
"5.70.0"
)
# handled by release scripts
project
(
KWayland VERSION
${
KF5_VERSION
}
)
set
(
QT_MIN_VERSION
"5.14.0"
)
set
(
KF5_MIN_VERSION
"5.70.0"
)
project
(
KWaylandServer VERSION
${
PROJECT_VERSION
}
)
# ECM setup
include
(
FeatureSummary
)
find_package
(
ECM 5.69.0 NO_MODULE
)
set_package_properties
(
ECM PROPERTIES TYPE REQUIRED DESCRIPTION
"Extra CMake Modules."
URL
"https://commits.kde.org/extra-cmake-modules"
)
feature_summary
(
WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES
)
find_package
(
ECM
${
KF5_MIN_VERSION
}
NO_MODULE REQUIRED
)
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
${
CMAKE_SOURCE_DIR
}
/cmake/Modules
)
include
(
CheckIncludeFile
)
include
(
CMakeFindFrameworks
)
include
(
CMakePackageConfigHelpers
)
include
(
FeatureSummary
)
include
(
ECMGenerateExportHeader
)
include
(
CMakePackageConfigHelpers
)
include
(
ECMSetupVersion
)
include
(
ECMGenerateHeaders
)
include
(
CMakeFindFrameworks
)
include
(
ECMQtDeclareLoggingCategory
)
include
(
ECMPoQmTools
)
include
(
ECMAddQch
)
include
(
KDEInstallDirs
)
include
(
KDEFrameworkCompilerSettings NO_POLICY_SCOPE
)
include
(
KDECMakeSettings
)
option
(
BUILD_QCH
"Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)"
OFF
)
add_feature_info
(
QCH
${
BUILD_QCH
}
"API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)"
)
ecm_setup_version
(
PROJECT VARIABLE_PREFIX KWAYLAND
VERSION_HEADER
"
${
CMAKE_CURRENT_BINARY_DIR
}
/kwayland_version.h"
PACKAGE_VERSION_FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/K
F5
WaylandConfigVersion.cmake"
ecm_setup_version
(
PROJECT VARIABLE_PREFIX KWAYLAND
SERVER
VERSION_HEADER
"
${
CMAKE_CURRENT_BINARY_DIR
}
/kwayland
server
_version.h"
PACKAGE_VERSION_FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/KWayland
Server
ConfigVersion.cmake"
SOVERSION 5
)
# Dependencies
set
(
REQUIRED_QT_VERSION 5.12.0
)
find_package
(
Qt5
${
REQUIRED_QT_VERSION
}
CONFIG REQUIRED Concurrent Gui WaylandClient
)
find_package
(
Qt5
${
QT_MIN_VERSION
}
CONFIG REQUIRED Concurrent Gui WaylandClient
)
find_package
(
KF5Wayland
${
KF5_MIN_VERSION
}
CONFIG REQUIRED
)
find_package
(
KF5PlasmaWaylandProtocols
${
KF5_MIN_VERSION
}
CONFIG REQUIRED
)
find_package
(
QtWaylandScanner REQUIRED
)
...
...
@@ -48,13 +54,8 @@ set_package_properties(WaylandProtocols PROPERTIES TYPE REQUIRED)
find_package
(
EGL
)
set_package_properties
(
EGL PROPERTIES TYPE REQUIRED
)
include
(
KDEInstallDirs
)
include
(
KDEFrameworkCompilerSettings NO_POLICY_SCOPE
)
include
(
KDECMakeSettings
)
include
(
CheckIncludeFile
)
check_include_file
(
"linux/input.h"
HAVE_LINUX_INPUT_H
)
configure_file
(
config-kwayland.h.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/config-kwayland.h
)
configure_file
(
config-kwayland
server
.h.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/config-kwayland
server
.h
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
# adjusting CMAKE_C_FLAGS to get wayland protocols to compile
...
...
@@ -76,32 +77,32 @@ if (BUILD_TESTING)
endif
()
# create a Config.cmake and a ConfigVersion.cmake file and install them
set
(
CMAKECONFIG_INSTALL_DIR
"
${
CMAKECONFIG_INSTALL_PREFIX
}
/K
F5
Wayland"
)
set
(
CMAKECONFIG_INSTALL_DIR
"
${
CMAKECONFIG_INSTALL_PREFIX
}
/KWayland
Server
"
)
if
(
BUILD_QCH
)
ecm_install_qch_export
(
TARGETS K
F5
Wayland_QCH
FILE K
F5
WaylandQchTargets.cmake
TARGETS KWayland
Server
_QCH
FILE KWayland
Server
QchTargets.cmake
DESTINATION
"
${
CMAKECONFIG_INSTALL_DIR
}
"
COMPONENT Devel
)
set
(
PACKAGE_INCLUDE_QCHTARGETS
"include(
\"\$
{CMAKE_CURRENT_LIST_DIR}/K
F5
WaylandQchTargets.cmake
\"
)"
)
set
(
PACKAGE_INCLUDE_QCHTARGETS
"include(
\"\$
{CMAKE_CURRENT_LIST_DIR}/KWayland
Server
QchTargets.cmake
\"
)"
)
endif
()
configure_package_config_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/K
F5
WaylandConfig.cmake.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/K
F5
WaylandConfig.cmake"
configure_package_config_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/KWayland
Server
Config.cmake.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/KWayland
Server
Config.cmake"
INSTALL_DESTINATION
${
CMAKECONFIG_INSTALL_DIR
}
)
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/K
F5
WaylandConfig.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/K
F5
WaylandConfigVersion.cmake"
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/KWayland
Server
Config.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/KWayland
Server
ConfigVersion.cmake"
DESTINATION
"
${
CMAKECONFIG_INSTALL_DIR
}
"
COMPONENT Devel
)
install
(
EXPORT K
F5
WaylandTargets DESTINATION
"
${
CMAKECONFIG_INSTALL_DIR
}
"
FILE K
F5
WaylandTargets.cmake NAMESPACE
KF5
::
)
install
(
EXPORT KWayland
Server
Targets DESTINATION
"
${
CMAKECONFIG_INSTALL_DIR
}
"
FILE KWayland
Server
Targets.cmake NAMESPACE
Plasma
::
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/kwayland_version.h
DESTINATION
${
K
F5_INCLU
DE_INSTALL_DIR
}
COMPONENT Devel
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/kwayland
server
_version.h
DESTINATION
${
KDE_INSTALL_
INCLUDE
DIR
}
COMPONENT Devel
)
feature_summary
(
WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES
)
KF5WaylandConfig.cmake.in
deleted
100644 → 0
View file @
b3e930f9
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(Qt5Gui @REQUIRED_QT_VERSION@)
include("${CMAKE_CURRENT_LIST_DIR}/KF5WaylandTargets.cmake")
@PACKAGE_INCLUDE_QCHTARGETS@
function(kwaylandtest testBinaryName)
add_test(NAME ${testBinaryName}-kwayland-test COMMAND
@CMAKE_INSTALL_FULL_LIBEXECDIR@/org-kde-kf5-kwayland-testserver ${CMAKE_CURRENT_BINARY_DIR}/${testBinaryName}
)
endfunction()
README.md
View file @
c286a4b0
...
...
@@ -149,7 +149,7 @@ Now to link against the Client library use:
To link against the Server library use:
add_executable(exampleServer exampleServer.cpp)
target_link_libraries(exampleServer
KF5
::WaylandServer)
target_link_libraries(exampleServer
Plasma
::
K
WaylandServer)
### With QMake
...
...
autotests/client/CMakeLists.txt
View file @
c286a4b0
...
...
@@ -5,7 +5,7 @@ set( testWaylandConnectionThread_SRCS
test_wayland_connection_thread.cpp
)
add_executable
(
testWaylandConnectionThread
${
testWaylandConnectionThread_SRCS
}
)
target_link_libraries
(
testWaylandConnectionThread Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client Wayland::Server
)
target_link_libraries
(
testWaylandConnectionThread Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client Wayland::Server
)
add_test
(
NAME kwayland-testWaylandConnectionThread COMMAND testWaylandConnectionThread
)
ecm_mark_as_test
(
testWaylandConnectionThread
)
...
...
@@ -16,7 +16,7 @@ set( testWaylandRegistry_SRCS
test_wayland_registry.cpp
)
add_executable
(
testWaylandRegistry
${
testWaylandRegistry_SRCS
}
)
target_link_libraries
(
testWaylandRegistry Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client Wayland::Server
)
target_link_libraries
(
testWaylandRegistry Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client Wayland::Server
)
add_test
(
NAME kwayland-testWaylandRegistry COMMAND testWaylandRegistry
)
ecm_mark_as_test
(
testWaylandRegistry
)
...
...
@@ -45,7 +45,7 @@ set( testWaylandOutput_SRCS
test_wayland_output.cpp
)
add_executable
(
testWaylandOutput
${
testWaylandOutput_SRCS
}
)
target_link_libraries
(
testWaylandOutput Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client Wayland::Server
)
target_link_libraries
(
testWaylandOutput Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client Wayland::Server
)
add_test
(
NAME kwayland-testWaylandOutput COMMAND testWaylandOutput
)
ecm_mark_as_test
(
testWaylandOutput
)
...
...
@@ -56,7 +56,7 @@ set( testWaylandShell_SRCS
test_wayland_shell.cpp
)
add_executable
(
testWaylandShell
${
testWaylandShell_SRCS
}
)
target_link_libraries
(
testWaylandShell Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client Wayland::Server
)
target_link_libraries
(
testWaylandShell Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client Wayland::Server
)
add_test
(
NAME kwayland-testWaylandShell COMMAND testWaylandShell
)
ecm_mark_as_test
(
testWaylandShell
)
...
...
@@ -67,7 +67,7 @@ set( testWaylandSurface_SRCS
test_wayland_surface.cpp
)
add_executable
(
testWaylandSurface
${
testWaylandSurface_SRCS
}
)
target_link_libraries
(
testWaylandSurface Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client Wayland::Server
)
target_link_libraries
(
testWaylandSurface Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client Wayland::Server
)
add_test
(
NAME kwayland-testWaylandSurface COMMAND testWaylandSurface
)
ecm_mark_as_test
(
testWaylandSurface
)
...
...
@@ -79,7 +79,7 @@ if (HAVE_LINUX_INPUT_H)
test_wayland_seat.cpp
)
add_executable
(
testWaylandSeat
${
testWaylandSeat_SRCS
}
)
target_link_libraries
(
testWaylandSeat Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client Wayland::Server
)
target_link_libraries
(
testWaylandSeat Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client Wayland::Server
)
add_test
(
NAME kwayland-testWaylandSeat COMMAND testWaylandSeat
)
ecm_mark_as_test
(
testWaylandSeat
)
endif
()
...
...
@@ -91,7 +91,7 @@ set( testShmPool_SRCS
test_shm_pool.cpp
)
add_executable
(
testShmPool
${
testShmPool_SRCS
}
)
target_link_libraries
(
testShmPool Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testShmPool Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testShmPool COMMAND testShmPool
)
ecm_mark_as_test
(
testShmPool
)
...
...
@@ -102,7 +102,7 @@ set( test_wayland_outputmanagement_SRCS
test_wayland_outputmanagement.cpp
)
add_executable
(
testWaylandOutputManagement
${
test_wayland_outputmanagement_SRCS
}
)
target_link_libraries
(
testWaylandOutputManagement Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testWaylandOutputManagement Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testWaylandOutputManagement COMMAND testWaylandOutputManagement
)
ecm_mark_as_test
(
testWaylandOutputManagement
)
...
...
@@ -113,7 +113,7 @@ set( test_wayland_outputdevice_SRCS
test_wayland_outputdevice.cpp
)
add_executable
(
testWaylandOutputDevice
${
test_wayland_outputdevice_SRCS
}
)
target_link_libraries
(
testWaylandOutputDevice Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testWaylandOutputDevice Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testWaylandOutputDevice COMMAND testWaylandOutputDevice
)
ecm_mark_as_test
(
testWaylandOutputDevice
)
...
...
@@ -124,7 +124,7 @@ set( testCompositor_SRCS
test_compositor.cpp
)
add_executable
(
testCompositor
${
testCompositor_SRCS
}
)
target_link_libraries
(
testCompositor Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testCompositor Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testCompositor COMMAND testCompositor
)
ecm_mark_as_test
(
testCompositor
)
...
...
@@ -135,7 +135,7 @@ set( testSubCompositor_SRCS
test_wayland_subcompositor.cpp
)
add_executable
(
testSubCompositor
${
testSubCompositor_SRCS
}
)
target_link_libraries
(
testSubCompositor Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testSubCompositor Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testSubCompositor COMMAND testSubCompositor
)
ecm_mark_as_test
(
testSubCompositor
)
...
...
@@ -147,7 +147,7 @@ set( testSubSurface_SRCS
test_wayland_subsurface.cpp
)
add_executable
(
testSubSurface
${
testSubSurface_SRCS
}
)
target_link_libraries
(
testSubSurface Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testSubSurface Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testSubSurface COMMAND testSubSurface
)
ecm_mark_as_test
(
testSubSurface
)
...
...
@@ -158,7 +158,7 @@ set( testRegion_SRCS
test_wayland_region.cpp
)
add_executable
(
testRegion
${
testRegion_SRCS
}
)
target_link_libraries
(
testRegion Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testRegion Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testRegion COMMAND testRegion
)
ecm_mark_as_test
(
testRegion
)
...
...
@@ -169,7 +169,7 @@ set( testBlur_SRCS
test_wayland_blur.cpp
)
add_executable
(
testBlur
${
testBlur_SRCS
}
)
target_link_libraries
(
testBlur Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testBlur Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testBlur COMMAND testBlur
)
ecm_mark_as_test
(
testBlur
)
...
...
@@ -180,7 +180,7 @@ set( testContrast_SRCS
test_wayland_contrast.cpp
)
add_executable
(
testContrast
${
testContrast_SRCS
}
)
target_link_libraries
(
testContrast Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testContrast Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testContrast COMMAND testContrast
)
ecm_mark_as_test
(
testContrast
)
...
...
@@ -191,7 +191,7 @@ set( testSlide_SRCS
test_wayland_slide.cpp
)
add_executable
(
testSlide
${
testSlide_SRCS
}
)
target_link_libraries
(
testSlide Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testSlide Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testSlide COMMAND testSlide
)
ecm_mark_as_test
(
testSlide
)
...
...
@@ -202,7 +202,7 @@ set( testWindowmanagement_SRCS
test_wayland_windowmanagement.cpp
)
add_executable
(
testWindowmanagement
${
testWindowmanagement_SRCS
}
)
target_link_libraries
(
testWindowmanagement Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testWindowmanagement Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testWindowmanagement COMMAND testWindowmanagement
)
ecm_mark_as_test
(
testWindowmanagement
)
...
...
@@ -213,7 +213,7 @@ set( testDataSource_SRCS
test_datasource.cpp
)
add_executable
(
testDataSource
${
testDataSource_SRCS
}
)
target_link_libraries
(
testDataSource Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testDataSource Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testDataSource COMMAND testDataSource
)
ecm_mark_as_test
(
testDataSource
)
...
...
@@ -224,7 +224,7 @@ set( testDataDevice_SRCS
test_datadevice.cpp
)
add_executable
(
testDataDevice
${
testDataDevice_SRCS
}
)
target_link_libraries
(
testDataDevice Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testDataDevice Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testDataDevice COMMAND testDataDevice
)
ecm_mark_as_test
(
testDataDevice
)
...
...
@@ -235,7 +235,7 @@ set( testServerSideDecoration_SRCS
test_server_side_decoration.cpp
)
add_executable
(
testServerSideDecoration
${
testServerSideDecoration_SRCS
}
)
target_link_libraries
(
testServerSideDecoration Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testServerSideDecoration Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testServerSideDecoration COMMAND testServerSideDecoration
)
ecm_mark_as_test
(
testServerSideDecoration
)
...
...
@@ -246,7 +246,7 @@ set( testDragAndDrop_SRCS
test_drag_drop.cpp
)
add_executable
(
testDragAndDrop
${
testDragAndDrop_SRCS
}
)
target_link_libraries
(
testDragAndDrop Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testDragAndDrop Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testDragAndDrop COMMAND testDragAndDrop
)
ecm_mark_as_test
(
testDragAndDrop
)
...
...
@@ -257,7 +257,7 @@ set( testPlasmaShell_SRCS
test_plasmashell.cpp
)
add_executable
(
testPlasmaShell
${
testPlasmaShell_SRCS
}
)
target_link_libraries
(
testPlasmaShell Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testPlasmaShell Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testPlasmaShell COMMAND testPlasmaShell
)
ecm_mark_as_test
(
testPlasmaShell
)
...
...
@@ -268,7 +268,7 @@ set( testIdle_SRCS
test_idle.cpp
)
add_executable
(
testIdle
${
testIdle_SRCS
}
)
target_link_libraries
(
testIdle Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testIdle Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testIdle COMMAND testIdle
)
ecm_mark_as_test
(
testIdle
)
...
...
@@ -279,7 +279,7 @@ set( testShadow_SRCS
test_shadow.cpp
)
add_executable
(
testShadow
${
testShadow_SRCS
}
)
target_link_libraries
(
testShadow Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testShadow Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testShadow COMMAND testShadow
)
ecm_mark_as_test
(
testShadow
)
...
...
@@ -291,7 +291,7 @@ if (HAVE_LINUX_INPUT_H)
test_fake_input.cpp
)
add_executable
(
testFakeInput
${
testFakeInput_SRCS
}
)
target_link_libraries
(
testFakeInput Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testFakeInput Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testFakeInput COMMAND testFakeInput
)
ecm_mark_as_test
(
testFakeInput
)
endif
()
...
...
@@ -304,7 +304,7 @@ if (HAVE_LINUX_INPUT_H)
test_plasma_window_model.cpp
)
add_executable
(
testPlasmaWindowModel
${
testPlasmaWindowModel_SRCS
}
)
target_link_libraries
(
testPlasmaWindowModel Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testPlasmaWindowModel Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testPlasmaWindowModel COMMAND testPlasmaWindowModel
)
ecm_mark_as_test
(
testPlasmaWindowModel
)
endif
()
...
...
@@ -316,7 +316,7 @@ set( testTextInput_SRCS
test_text_input.cpp
)
add_executable
(
testTextInput
${
testTextInput_SRCS
}
)
target_link_libraries
(
testTextInput Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testTextInput Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testTextInput COMMAND testTextInput
)
ecm_mark_as_test
(
testTextInput
)
...
...
@@ -327,7 +327,7 @@ set( testError_SRCS
test_error.cpp
)
add_executable
(
testError
${
testError_SRCS
}
)
target_link_libraries
(
testError Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testError Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testError COMMAND testError
)
ecm_mark_as_test
(
testError
)
...
...
@@ -338,7 +338,7 @@ set( testSelection_SRCS
test_selection.cpp
)
add_executable
(
testSelection
${
testSelection_SRCS
}
)
target_link_libraries
(
testSelection Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client
)
target_link_libraries
(
testSelection Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client
)
add_test
(
NAME kwayland-testSelection COMMAND testSelection
)
ecm_mark_as_test
(
testSelection
)
...
...
@@ -350,7 +350,7 @@ set( testXdgShellV5_SRCS
test_xdg_shell_v5.cpp
)
add_executable
(
testXdgShellV5
${
testXdgShellV5_SRCS
}
)
target_link_libraries
(
testXdgShellV5 Qt5::Test Qt5::Gui
KF5
::WaylandServer KF5::WaylandClient Wayland::Client
)
target_link_libraries
(
testXdgShellV5 Qt5::Test Qt5::Gui
Plasma
::
K
WaylandServer KF5::WaylandClient Wayland::Client
)
add_test
(
NAME kwayland-testXdgShellV5 COMMAND testXdgShellV5
)
ecm_mark_as_test
(
testXdgShellV5
)
...
...
@@ -361,7 +361,7 @@ set( testXdgForeign_SRCS
test_xdg_foreign.cpp
)
add_executable
(
testXdgForeign
${
testXdgForeign_SRCS
}
)
target_link_libraries
(
testXdgForeign Qt5::Test Qt5::Gui
KF5
::WaylandServer KF5::WaylandClient Wayland::Client
)
target_link_libraries
(
testXdgForeign Qt5::Test Qt5::Gui
Plasma
::
K
WaylandServer KF5::WaylandClient Wayland::Client
)
add_test
(
NAME kwayland-testXdgForeign COMMAND testXdgForeign
)
ecm_mark_as_test
(
testXdgForeign
)
...
...
@@ -373,7 +373,7 @@ set( testXdgShellV6_SRCS
test_xdg_shell_v6.cpp
)
add_executable
(
testXdgShellV6
${
testXdgShellV6_SRCS
}
)
target_link_libraries
(
testXdgShellV6 Qt5::Test Qt5::Gui
KF5
::WaylandServer KF5::WaylandClient Wayland::Client
)
target_link_libraries
(
testXdgShellV6 Qt5::Test Qt5::Gui
Plasma
::
K
WaylandServer KF5::WaylandClient Wayland::Client
)
add_test
(
NAME kwayland-testXdgShellV6 COMMAND testXdgShellV6
)
ecm_mark_as_test
(
testXdgShellV6
)
########################################################
...
...
@@ -384,7 +384,7 @@ set( testXdgShellStable_SRCS
test_xdg_shell_stable.cpp
)
add_executable
(
testXdgShellStable
${
testXdgShellStable_SRCS
}
)
target_link_libraries
(
testXdgShellStable Qt5::Test Qt5::Gui
KF5
::WaylandServer KF5::WaylandClient Wayland::Client
)
target_link_libraries
(
testXdgShellStable Qt5::Test Qt5::Gui
Plasma
::
K
WaylandServer KF5::WaylandClient Wayland::Client
)
add_test
(
NAME kwayland-testXdgShellStable COMMAND testXdgShellStable
)
ecm_mark_as_test
(
testXdgShellStable
)
...
...
@@ -392,7 +392,7 @@ ecm_mark_as_test(testXdgShellStable)
# Test Pointer Constraints
########################################################
add_executable
(
testPointerConstraints test_pointer_constraints.cpp
)
target_link_libraries
(
testPointerConstraints Qt5::Test Qt5::Gui
KF5
::WaylandServer KF5::WaylandClient Wayland::Client
)
target_link_libraries
(
testPointerConstraints Qt5::Test Qt5::Gui
Plasma
::
K
WaylandServer KF5::WaylandClient Wayland::Client
)
add_test
(
NAME kwayland-testPointerConstraints COMMAND testPointerConstraints
)
ecm_mark_as_test
(
testPointerConstraints
)
...
...
@@ -404,7 +404,7 @@ set( testFilter_SRCS
test_wayland_filter.cpp
)
add_executable
(
testFilter
${
testFilter_SRCS
}
)
target_link_libraries
(
testFilter Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Server
)
target_link_libraries
(
testFilter Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Server
)
add_test
(
NAME kwayland-testFilter COMMAND testFilter
)
ecm_mark_as_test
(
testFilter
)
...
...
@@ -415,7 +415,7 @@ set( testAppmenu_SRCS
test_wayland_appmenu.cpp
)
add_executable
(
testAppmenu
${
testAppmenu_SRCS
}
)
target_link_libraries
(
testAppmenu Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testAppmenu Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testAppmenu COMMAND testAppmenu
)
ecm_mark_as_test
(
testAppmenu
)
...
...
@@ -426,7 +426,7 @@ set( testServerSideDecorationPalette_SRCS
test_server_side_decoration_palette.cpp
)
add_executable
(
testServerSideDecorationPalette
${
testServerSideDecorationPalette_SRCS
}
)
target_link_libraries
(
testServerSideDecorationPalette Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testServerSideDecorationPalette Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testServerSideDecorationPalette COMMAND testServerSideDecorationPalette
)
ecm_mark_as_test
(
testServerSideDecorationPalette
)
...
...
@@ -437,7 +437,7 @@ set( testRemoteAccess_SRCS
test_remote_access.cpp
)
add_executable
(
testRemoteAccess
${
testRemoteAccess_SRCS
}
)
target_link_libraries
(
testRemoteAccess Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testRemoteAccess Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testRemoteAccess COMMAND testRemoteAccess
)
ecm_mark_as_test
(
testRemoteAccess
)
...
...
@@ -448,7 +448,7 @@ set( testPlasmaVirtualDesktop_SRCS
test_plasma_virtual_desktop.cpp
)
add_executable
(
testPlasmaVirtualDesktop
${
testPlasmaVirtualDesktop_SRCS
}
)
target_link_libraries
(
testPlasmaVirtualDesktop Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer
)
target_link_libraries
(
testPlasmaVirtualDesktop Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer
)
add_test
(
NAME kwayland-testPlasmaVirtualDesktop COMMAND testPlasmaVirtualDesktop
)
ecm_mark_as_test
(
testPlasmaVirtualDesktop
)
...
...
@@ -459,7 +459,7 @@ set( testXdgOutput_SRCS
test_xdg_output.cpp
)
add_executable
(
testXdgOutput
${
testXdgOutput_SRCS
}
)
target_link_libraries
(
testXdgOutput Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client Wayland::Server
)
target_link_libraries
(
testXdgOutput Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client Wayland::Server
)
add_test
(
NAME kwayland-testXdgOutput COMMAND testXdgOutput
)
ecm_mark_as_test
(
testXdgOutput
)
...
...
@@ -470,7 +470,7 @@ set( testXdgdecoration_SRCS
test_xdg_decoration.cpp
)
add_executable
(
testXdgDecoration
${
testXdgdecoration_SRCS
}
)
target_link_libraries
(
testXdgDecoration Qt5::Test Qt5::Gui KF5::WaylandClient
KF5
::WaylandServer Wayland::Client Wayland::Server
)
target_link_libraries
(
testXdgDecoration Qt5::Test Qt5::Gui KF5::WaylandClient
Plasma
::
K
WaylandServer Wayland::Client Wayland::Server
)
add_test
(
NAME kwayland-testXdgDecoration COMMAND testXdgDecoration
)
ecm_mark_as_test
(
testXdgDecoration
)
autotests/client/test_compositor.cpp
View file @
c286a4b0
...
...
@@ -6,11 +6,11 @@
// Qt
#include
<QtTest>
// KWin
#include
"
../../src/c
lient/compositor.h"
#include
"
../../src/c
lient/connection_thread.h"
#include
"
../../src/c
lient/surface.h"
#include
"
../../src/c
lient/registry.h"
#include
"
../../src/c
lient/shm_pool.h"
#include
"
KWayland/C
lient/compositor.h"
#include
"
KWayland/C
lient/connection_thread.h"
#include
"
KWayland/C
lient/surface.h"
#include
"
KWayland/C
lient/registry.h"
#include
"
KWayland/C
lient/shm_pool.h"
#include
"../../src/server/buffer_interface.h"
#include
"../../src/server/compositor_interface.h"
#include
"../../src/server/display.h"
...
...
autotests/client/test_datadevice.cpp
View file @
c286a4b0
...
...
@@ -6,17 +6,17 @@
// Qt
#include
<QtTest>
// KWayland
#include
"
../../src/c
lient/connection_thread.h"
#include
"
../../src/c
lient/event_queue.h"
#include
"
../../src/c
lient/datadevice.h"
#include
"
../../src/c
lient/datadevicemanager.h"
#include
"
../../src/c
lient/datasource.h"
#include
"
../../src/c
lient/compositor.h"
#include
"
../../src/c
lient/keyboard.h"
#include
"
../../src/c
lient/pointer.h"
#include
"
../../src/c
lient/registry.h"
#include
"
../../src/c
lient/seat.h"
#include
"
../../src/c
lient/surface.h"
#include
"
KWayland/C
lient/connection_thread.h"
#include
"
KWayland/C
lient/event_queue.h"
#include
"
KWayland/C
lient/datadevice.h"
#include
"
KWayland/C
lient/datadevicemanager.h"
#include
"
KWayland/C
lient/datasource.h"
#include
"
KWayland/C
lient/compositor.h"
#include
"
KWayland/C
lient/keyboard.h"
#include
"
KWayland/C
lient/pointer.h"
#include
"
KWayland/C
lient/registry.h"
#include
"
KWayland/C
lient/seat.h"
#include
"
KWayland/C
lient/surface.h"
#include
"../../src/server/display.h"
#include
"../../src/server/datadevicemanager_interface.h"
#include
"../../src/server/datasource_interface.h"
...
...
autotests/client/test_datasource.cpp
View file @
c286a4b0
...
...
@@ -7,11 +7,11 @@
#include
<QtTest>
#include
<QMimeDatabase>
// KWayland
#include
"
../../src/c
lient/connection_thread.h"
#include
"
../../src/c
lient/event_queue.h"
#include
"
../../src/c
lient/datadevicemanager.h"
#include
"
../../src/c
lient/datasource.h"
#include
"
../../src/c
lient/registry.h"
#include
"
KWayland/C
lient/connection_thread.h"
#include
"
KWayland/C
lient/event_queue.h"
#include
"
KWayland/C
lient/datadevicemanager.h"
#include
"
KWayland/C
lient/datasource.h"
#include
"
KWayland/C
lient/registry.h"
#include
"../../src/server/display.h"
#include
"../../src/server/datadevicemanager_interface.h"
#include
"../../src/server/datasource_interface.h"
...
...
autotests/client/test_drag_drop.cpp
View file @
c286a4b0
...
...
@@ -6,19 +6,19 @@
// Qt
#include
<QtTest>
// KWin
#include
"
../../src/c
lient/compositor.h"
#include
"
../../src/c
lient/connection_thread.h"
#include
"
../../src/c
lient/datadevice.h"
#include
"
../../src/c
lient/datadevicemanager.h"
#include
"
../../src/c
lient/datasource.h"
#include
"
../../src/c
lient/event_queue.h"
#include
"
../../src/c
lient/pointer.h"
#include
"
../../src/c
lient/touch.h"
#include
"
../../src/c
lient/registry.h"
#include
"
../../src/c
lient/seat.h"
#include
"
../../src/c
lient/shell.h"
#include
"
../../src/c
lient/shm_pool.h"
#include
"
../../src/c
lient/surface.h"
#include
"
KWayland/C
lient/compositor.h"
#include
"
KWayland/C
lient/connection_thread.h"
#include
"
KWayland/C
lient/datadevice.h"
#include
"
KWayland/C
lient/datadevicemanager.h"
#include
"
KWayland/C
lient/datasource.h"
#include
"
KWayland/C
lient/event_queue.h"
#include
"
KWayland/C
lient/pointer.h"
#include
"
KWayland/C
lient/touch.h"
#include
"
KWayland/C
lient/registry.h"
#include
"
KWayland/C
lient/seat.h"
#include
"
KWayland/C
lient/shell.h"
#include
"
KWayland/C
lient/shm_pool.h"
#include
"
KWayland/C
lient/surface.h"
#include
"../../src/server/display.h"
#include
"../../src/server/compositor_interface.h"
#include
"../../src/server/datadevicemanager_interface.h"
...
...
autotests/client/test_error.cpp
View file @
c286a4b0
...
...
@@ -6,13 +6,13 @@
// Qt
#include
<QtTest>
// client
#include
"
../../src/c
lient/compositor.h"
#include
"
../../src/c
lient/connection_thread.h"
#include
"
../../src/c
lient/event_queue.h"
#include
"
../../src/c
lient/plasmashell.h"
#include
"
../../src/c
lient/registry.h"
#include
"
../../src/c
lient/shell.h"
#include
"
../../src/c
lient/surface.h"
#include
"
KWayland/C
lient/compositor.h"
#include
"
KWayland/C
lient/connection_thread.h"
#include
"
KWayland/C
lient/event_queue.h"
#include
"
KWayland/C
lient/plasmashell.h"
#include
"
KWayland/C
lient/registry.h"
#include
"
KWayland/C
lient/shell.h"
#include
"
KWayland/C
lient/surface.h"
// server
#include
"../../src/server/display.h"
#include
"../../src/server/compositor_interface.h"
...
...
autotests/client/test_fake_input.cpp
View file @
c286a4b0
...
...
@@ -6,10 +6,10 @@
// Qt
#include
<QtTest>
// client
#include
"
../../src/c
lient/connection_thread.h"
#include
"
../../src/c
lient/event_queue.h"
#include
"
../../src/c
lient/fakeinput.h"
#include
"
../../src/c
lient/registry.h"
#include
"
KWayland/C
lient/connection_thread.h"
#include
"
KWayland/C
lient/event_queue.h"
#include
"
KWayland/C
lient/fakeinput.h"
#include
"
KWayland/C
lient/registry.h"
// server
#include
"../../src/server/display.h"
#include
"../../src/server/fakeinput_interface.h"
...
...
autotests/client/test_idle.cpp
View file @
c286a4b0
...
...
@@ -6,11 +6,11 @@
// Qt
#include
<QtTest>