From 06aacf4f65fe06b074dc2444f857dbcb02ad207f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 11 Aug 2015 12:20:52 +0200 Subject: [PATCH] Drop cmakedefine HAVE_WAYLAND_EGL Now a required build dependency. --- CMakeLists.txt | 1 - backends/wayland/CMakeLists.txt | 10 ++-------- backends/wayland/wayland_backend.cpp | 6 ------ config-kwin.h.cmake | 1 - workspace.cpp | 6 ------ 5 files changed, 2 insertions(+), 22 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 23c00eb7c1..c1b9c6c361 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -261,7 +261,6 @@ include_directories(${epoxy_INCLUDE_DIR}) # for things that are also used by kwin libraries configure_file(libkwineffects/kwinconfig.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/libkwineffects/kwinconfig.h ) # for kwin internal things -set(HAVE_WAYLAND_EGL ${Wayland_Egl_FOUND}) set(HAVE_X11_XCB ${X11_XCB_FOUND}) include(CheckIncludeFiles) diff --git a/backends/wayland/CMakeLists.txt b/backends/wayland/CMakeLists.txt index 7f643df2e1..0f844b0b8d 100644 --- a/backends/wayland/CMakeLists.txt +++ b/backends/wayland/CMakeLists.txt @@ -3,17 +3,11 @@ set(WAYLAND_BACKEND_SOURCES scene_qpainter_wayland_backend.cpp screens_wayland.cpp wayland_backend.cpp + egl_wayland_backend.cpp ) -if(Wayland_Egl_FOUND) - set(WAYLAND_BACKEND_SOURCES ${WAYLAND_BACKEND_SOURCES} egl_wayland_backend.cpp) -endif() add_library(KWinWaylandWaylandBackend MODULE ${WAYLAND_BACKEND_SOURCES}) -target_link_libraries(KWinWaylandWaylandBackend kwin KF5::WaylandClient) - -if(Wayland_Egl_FOUND) - target_link_libraries(KWinWaylandWaylandBackend Wayland::Egl) -endif() +target_link_libraries(KWinWaylandWaylandBackend kwin KF5::WaylandClient Wayland::Egl) install( TARGETS diff --git a/backends/wayland/wayland_backend.cpp b/backends/wayland/wayland_backend.cpp index a708be4b19..d7c6ea2cff 100644 --- a/backends/wayland/wayland_backend.cpp +++ b/backends/wayland/wayland_backend.cpp @@ -27,9 +27,7 @@ along with this program. If not, see . #include "screens_wayland.h" #include "wayland_server.h" #include "wayland_cursor_theme.h" -#if HAVE_WAYLAND_EGL #include "egl_wayland_backend.h" -#endif #include #include #include @@ -585,11 +583,7 @@ Screens *WaylandBackend::createScreens(QObject *parent) OpenGLBackend *WaylandBackend::createOpenGLBackend() { -#if HAVE_WAYLAND_EGL return new EglWaylandBackend(this); -#else - return nullptr; -#endif } QPainterBackend *WaylandBackend::createQPainterBackend() diff --git a/config-kwin.h.cmake b/config-kwin.h.cmake index 0633131138..e1ff0117e2 100644 --- a/config-kwin.h.cmake +++ b/config-kwin.h.cmake @@ -8,7 +8,6 @@ #define XCB_VERSION_STRING "${XCB_VERSION}" #define KWIN_KILLER_BIN "${CMAKE_INSTALL_PREFIX}/${LIBEXEC_INSTALL_DIR}/kwin_killer_helper" #define KWIN_RULES_DIALOG_BIN "${CMAKE_INSTALL_PREFIX}/${LIBEXEC_INSTALL_DIR}/kwin_rules_dialog" -#cmakedefine01 HAVE_WAYLAND_EGL #cmakedefine01 HAVE_INPUT #cmakedefine01 HAVE_X11_XCB #cmakedefine01 HAVE_DRM diff --git a/workspace.cpp b/workspace.cpp index f9100ab773..43ec3df4bd 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1346,12 +1346,6 @@ QString Workspace::supportInformation() const support.append(yes); #else support.append(no); -#endif - support.append(QStringLiteral("HAVE_WAYLAND_EGL: ")); -#if HAVE_WAYLAND_EGL - support.append(yes); -#else - support.append(no); #endif support.append(QStringLiteral("HAVE_INPUT: ")); #if HAVE_INPUT