[wayland] Move backend implementations into a backends/<name> directory
The aim is to be able to create a plugin for each of the backends. The following directories are created: * backends/drm * backends/fbdev * backends/wayland * backends/x11
This commit is contained in:
parent
300a576d32
commit
72db1e63a3
26 changed files with 20 additions and 23 deletions
|
@ -436,29 +436,29 @@ if(HAVE_WAYLAND)
|
|||
set(kwin_KDEINIT_SRCS
|
||||
${kwin_KDEINIT_SRCS}
|
||||
abstract_backend.cpp
|
||||
fb_backend.cpp
|
||||
screens_fb.cpp
|
||||
screens_wayland.cpp
|
||||
screens_x11windowed.cpp
|
||||
backends/fbdev/fb_backend.cpp
|
||||
backends/fbdev/screens_fb.cpp
|
||||
backends/wayland/screens_wayland.cpp
|
||||
backends/x11/screens_x11windowed.cpp
|
||||
virtual_terminal.cpp
|
||||
wayland_backend.cpp
|
||||
backends/wayland/wayland_backend.cpp
|
||||
wayland_server.cpp
|
||||
x11windowed_backend.cpp
|
||||
backends/x11/x11windowed_backend.cpp
|
||||
)
|
||||
if(KWIN_HAVE_EGL AND Wayland_Egl_FOUND)
|
||||
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} egl_wayland_backend.cpp)
|
||||
set(kwin_KDEINIT_SRCS ${kwin_KDEINIT_SRCS} backends/wayland/egl_wayland_backend.cpp)
|
||||
endif()
|
||||
if(HAVE_DRM)
|
||||
set(kwin_KDEINIT_SRCS
|
||||
${kwin_KDEINIT_SRCS}
|
||||
drm_backend.cpp
|
||||
screens_drm.cpp
|
||||
backends/drm/drm_backend.cpp
|
||||
backends/drm/screens_drm.cpp
|
||||
)
|
||||
endif()
|
||||
if(HAVE_GBM)
|
||||
set(kwin_KDEINIT_SRCS
|
||||
${kwin_KDEINIT_SRCS}
|
||||
egl_gbm_backend.cpp
|
||||
backends/drm/egl_gbm_backend.cpp
|
||||
)
|
||||
endif()
|
||||
if(HAVE_WAYLAND_CURSOR)
|
||||
|
|
|
@ -38,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "compositingprefs.h"
|
||||
#include "xcbutils.h"
|
||||
#if HAVE_WAYLAND
|
||||
#include "wayland_backend.h"
|
||||
#include "backends/wayland/wayland_backend.h"
|
||||
#include "wayland_server.h"
|
||||
#endif
|
||||
#include "decorations/decoratedclient.h"
|
||||
|
|
|
@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "screens.h"
|
||||
#include "xcbutils.h"
|
||||
#if HAVE_X11_XCB
|
||||
#include "x11windowed_backend.h"
|
||||
#include "backends/x11/x11windowed_backend.h"
|
||||
#endif
|
||||
// kwin libs
|
||||
#include <kwinglplatform.h>
|
||||
|
|
|
@ -21,14 +21,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "workspace.h"
|
||||
#include <config-kwin.h>
|
||||
// kwin
|
||||
#include "fb_backend.h"
|
||||
#include "backends/fbdev/fb_backend.h"
|
||||
#if HAVE_DRM
|
||||
#include "drm_backend.h"
|
||||
#include "backends/drm/drm_backend.h"
|
||||
#endif
|
||||
#include "wayland_backend.h"
|
||||
#include "backends/wayland/wayland_backend.h"
|
||||
#include "wayland_server.h"
|
||||
#include "xcbutils.h"
|
||||
#include "x11windowed_backend.h"
|
||||
#include "backends/x11/x11windowed_backend.h"
|
||||
|
||||
// KWayland
|
||||
#include <KWayland/Server/display.h>
|
||||
|
|
|
@ -29,13 +29,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "toplevel.h"
|
||||
#if HAVE_WAYLAND
|
||||
#if HAVE_DRM
|
||||
#include "drm_backend.h"
|
||||
#include "backends/drm/drm_backend.h"
|
||||
#endif
|
||||
#include "fb_backend.h"
|
||||
#include "backends/fbdev/fb_backend.h"
|
||||
#include "virtual_terminal.h"
|
||||
#include "wayland_backend.h"
|
||||
#include "backends/wayland/wayland_backend.h"
|
||||
#include "wayland_server.h"
|
||||
#include "x11windowed_backend.h"
|
||||
#include "backends/x11/x11windowed_backend.h"
|
||||
#include <KWayland/Client/buffer.h>
|
||||
#include <KWayland/Client/shm_pool.h>
|
||||
#include <KWayland/Client/surface.h>
|
||||
|
|
|
@ -52,9 +52,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "unmanaged.h"
|
||||
#include "useractions.h"
|
||||
#include "virtualdesktops.h"
|
||||
#if HAVE_WAYLAND
|
||||
#include "wayland_backend.h"
|
||||
#endif
|
||||
#include "xcbutils.h"
|
||||
#include "main.h"
|
||||
#include "decorations/decorationbridge.h"
|
||||
|
|
Loading…
Reference in a new issue