Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
KWin
Commits
3dc00de8
Commit
3dc00de8
authored
Jan 05, 2021
by
Vlad Zahorodnii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
platformsupport: Set PUBLIC include directories
This makes using platform support libs easier.
parent
605988d2
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
17 additions
and
25 deletions
+17
-25
autotests/integration/CMakeLists.txt
autotests/integration/CMakeLists.txt
+1
-1
platformsupport/scenes/opengl/CMakeLists.txt
platformsupport/scenes/opengl/CMakeLists.txt
+1
-0
platformsupport/scenes/qpainter/CMakeLists.txt
platformsupport/scenes/qpainter/CMakeLists.txt
+1
-0
platformsupport/scenes/xrender/CMakeLists.txt
platformsupport/scenes/xrender/CMakeLists.txt
+1
-0
plugins/platforms/drm/CMakeLists.txt
plugins/platforms/drm/CMakeLists.txt
+0
-2
plugins/platforms/drm/gbm_dmabuf.cpp
plugins/platforms/drm/gbm_dmabuf.cpp
+1
-1
plugins/platforms/drm/scene_qpainter_drm_backend.h
plugins/platforms/drm/scene_qpainter_drm_backend.h
+2
-1
plugins/platforms/fbdev/scene_qpainter_fb_backend.h
plugins/platforms/fbdev/scene_qpainter_fb_backend.h
+1
-1
plugins/platforms/virtual/CMakeLists.txt
plugins/platforms/virtual/CMakeLists.txt
+0
-2
plugins/platforms/virtual/scene_qpainter_virtual_backend.h
plugins/platforms/virtual/scene_qpainter_virtual_backend.h
+1
-1
plugins/platforms/wayland/CMakeLists.txt
plugins/platforms/wayland/CMakeLists.txt
+0
-1
plugins/platforms/wayland/scene_qpainter_wayland_backend.h
plugins/platforms/wayland/scene_qpainter_wayland_backend.h
+1
-1
plugins/platforms/x11/common/CMakeLists.txt
plugins/platforms/x11/common/CMakeLists.txt
+1
-2
plugins/platforms/x11/standalone/CMakeLists.txt
plugins/platforms/x11/standalone/CMakeLists.txt
+0
-3
plugins/platforms/x11/windowed/CMakeLists.txt
plugins/platforms/x11/windowed/CMakeLists.txt
+0
-3
plugins/platforms/x11/windowed/scene_qpainter_x11_backend.h
plugins/platforms/x11/windowed/scene_qpainter_x11_backend.h
+1
-1
plugins/scenes/opengl/scene_opengl.cpp
plugins/scenes/opengl/scene_opengl.cpp
+1
-1
plugins/scenes/opengl/scene_opengl.h
plugins/scenes/opengl/scene_opengl.h
+2
-1
plugins/scenes/qpainter/scene_qpainter.h
plugins/scenes/qpainter/scene_qpainter.h
+2
-1
plugins/scenes/xrender/CMakeLists.txt
plugins/scenes/xrender/CMakeLists.txt
+0
-2
No files found.
autotests/integration/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -116,7 +116,7 @@ if (XCB_ICCCM_FOUND)
integrationTest
(
NAME testQuickTiling SRCS quick_tiling_test.cpp LIBS XCB::ICCCM
)
integrationTest
(
NAME testGlobalShortcuts SRCS globalshortcuts_test.cpp LIBS XCB::ICCCM
)
integrationTest
(
NAME testSceneQPainter SRCS scene_qpainter_test.cpp LIBS XCB::ICCCM
)
integrationTest
(
NAME testSceneQPainterShadow SRCS scene_qpainter_shadow_test.cpp LIBS XCB::ICCCM
)
integrationTest
(
NAME testSceneQPainterShadow SRCS scene_qpainter_shadow_test.cpp LIBS
SceneQPainterBackend
XCB::ICCCM
)
integrationTest
(
NAME testStackingOrder SRCS stacking_order_test.cpp LIBS XCB::ICCCM
)
integrationTest
(
NAME testDbusInterface SRCS dbus_interface_test.cpp LIBS XCB::ICCCM
)
integrationTest
(
NAME testXwaylandServerCrash SRCS xwaylandserver_crash_test.cpp LIBS XCB::ICCCM
)
...
...
platformsupport/scenes/opengl/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -21,3 +21,4 @@ ecm_qt_declare_logging_category(SCENE_OPENGL_BACKEND_SRCS
add_library
(
SceneOpenGLBackend STATIC
${
SCENE_OPENGL_BACKEND_SRCS
}
)
target_link_libraries
(
SceneOpenGLBackend Qt5::Core Qt5::Widgets KF5::CoreAddons KF5::ConfigCore KF5::WindowSystem Plasma::KWaylandServer
)
target_include_directories
(
SceneOpenGLBackend PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
)
platformsupport/scenes/qpainter/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -14,3 +14,4 @@ ecm_qt_declare_logging_category(SCENE_QPAINTER_BACKEND_SRCS
add_library
(
SceneQPainterBackend STATIC
${
SCENE_QPAINTER_BACKEND_SRCS
}
)
target_link_libraries
(
SceneQPainterBackend Qt5::Core
)
target_include_directories
(
SceneQPainterBackend PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
)
platformsupport/scenes/xrender/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -9,3 +9,4 @@ ecm_qt_declare_logging_category(xrenderbackend_SOURCES
add_library
(
SceneXRenderBackend STATIC
${
xrenderbackend_SOURCES
}
)
target_link_libraries
(
SceneXRenderBackend kwin Qt5::Core Qt5::Gui
)
target_include_directories
(
SceneXRenderBackend PUBLIC
${
CMAKE_CURRENT_SOURCE_DIR
}
)
plugins/platforms/drm/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -30,8 +30,6 @@ if (HAVE_EGL_STREAMS)
)
endif
()
include_directories
(
${
CMAKE_SOURCE_DIR
}
/platformsupport/scenes/opengl
)
add_library
(
KWinWaylandDrmBackend MODULE
${
DRM_SOURCES
}
)
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
)
...
...
plugins/platforms/drm/gbm_dmabuf.cpp
View file @
3dc00de8
...
...
@@ -5,8 +5,8 @@
*/
#include "gbm_dmabuf.h"
#include "drm_fourcc.h"
#include "kwineglimagetexture.h"
#include "platformsupport/scenes/opengl/drm_fourcc.h"
#include "main.h"
#include "platform.h"
#include <unistd.h>
...
...
plugins/platforms/drm/scene_qpainter_drm_backend.h
View file @
3dc00de8
...
...
@@ -8,7 +8,8 @@
*/
#ifndef KWIN_SCENE_QPAINTER_DRM_BACKEND_H
#define KWIN_SCENE_QPAINTER_DRM_BACKEND_H
#include <platformsupport/scenes/qpainter/qpainterbackend.h>
#include "qpainterbackend.h"
#include <QObject>
#include <QVector>
...
...
plugins/platforms/fbdev/scene_qpainter_fb_backend.h
View file @
3dc00de8
...
...
@@ -8,7 +8,7 @@
*/
#ifndef KWIN_SCENE_QPAINTER_FB_BACKEND_H
#define KWIN_SCENE_QPAINTER_FB_BACKEND_H
#include
<platformsupport/scenes/qpainter/
qpainterbackend.h
>
#include
"
qpainterbackend.h
"
#include <QObject>
#include <QImage>
...
...
plugins/platforms/virtual/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -5,8 +5,6 @@ set(VIRTUAL_SOURCES
virtual_output.cpp
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/platformsupport/scenes/opengl
)
include
(
ECMQtDeclareLoggingCategory
)
ecm_qt_declare_logging_category
(
VIRTUAL_SOURCES HEADER logging.h IDENTIFIER KWIN_VIRTUAL CATEGORY_NAME kwin_platform_virtual DEFAULT_SEVERITY Critical
)
...
...
plugins/platforms/virtual/scene_qpainter_virtual_backend.h
View file @
3dc00de8
...
...
@@ -9,7 +9,7 @@
#ifndef KWIN_SCENE_QPAINTER_VIRTUAL_BACKEND_H
#define KWIN_SCENE_QPAINTER_VIRTUAL_BACKEND_H
#include
<platformsupport/scenes/qpainter/
qpainterbackend.h
>
#include
"
qpainterbackend.h
"
#include <QObject>
#include <QVector>
...
...
plugins/platforms/wayland/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -12,7 +12,6 @@ if (HAVE_WAYLAND_EGL)
endif
()
endif
()
include_directories
(
${
CMAKE_SOURCE_DIR
}
/platformsupport/scenes/opengl
)
add_library
(
KWinWaylandWaylandBackend MODULE
${
WAYLAND_BACKEND_SOURCES
}
)
set_target_properties
(
KWinWaylandWaylandBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/bin/org.kde.kwin.waylandbackends/"
)
target_link_libraries
(
KWinWaylandWaylandBackend kwin KF5::WaylandClient SceneQPainterBackend
)
...
...
plugins/platforms/wayland/scene_qpainter_wayland_backend.h
View file @
3dc00de8
...
...
@@ -10,7 +10,7 @@
#ifndef KWIN_SCENE_QPAINTER_WAYLAND_BACKEND_H
#define KWIN_SCENE_QPAINTER_WAYLAND_BACKEND_H
#include
<platformsupport/scenes/qpainter/
qpainterbackend.h
>
#include
"
qpainterbackend.h
"
#include <QObject>
#include <QImage>
...
...
plugins/platforms/x11/common/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -4,6 +4,5 @@ endif()
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Clang"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wno-int-to-void-pointer-cast"
)
endif
()
include_directories
(
${
CMAKE_SOURCE_DIR
}
/platformsupport/scenes/opengl
)
add_library
(
eglx11common STATIC eglonxbackend.cpp
)
target_link_libraries
(
eglx11common kwin
)
target_link_libraries
(
eglx11common kwin
SceneOpenGLBackend
)
plugins/platforms/x11/standalone/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -26,9 +26,6 @@ if (HAVE_EPOXY_GLX)
set
(
X11PLATFORM_SOURCES
${
X11PLATFORM_SOURCES
}
glxbackend.cpp glx_context_attribute_builder.cpp
)
endif
()
include_directories
(
${
CMAKE_SOURCE_DIR
}
/platformsupport/scenes/opengl
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/platformsupport/scenes/xrender
)
add_library
(
KWinX11Platform MODULE
${
X11PLATFORM_SOURCES
}
)
set_target_properties
(
KWinX11Platform PROPERTIES LIBRARY_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/bin/org.kde.kwin.platforms/"
)
target_link_libraries
(
KWinX11Platform eglx11common kwin kwinxrenderutils SceneOpenGLBackend VsyncSupport Qt5::X11Extras XCB::CURSOR KF5::Crash
)
...
...
plugins/platforms/x11/windowed/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -6,9 +6,6 @@ set(X11BACKEND_SOURCES
x11windowed_output.cpp
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/platformsupport/scenes/opengl
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/platformsupport/vsyncconvenience
)
add_library
(
KWinWaylandX11Backend MODULE
${
X11BACKEND_SOURCES
}
)
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 VsyncSupport
)
...
...
plugins/platforms/x11/windowed/scene_qpainter_x11_backend.h
View file @
3dc00de8
...
...
@@ -9,7 +9,7 @@
#ifndef KWIN_SCENE_QPAINTER_X11_BACKEND_H
#define KWIN_SCENE_QPAINTER_X11_BACKEND_H
#include
<platformsupport/scenes/qpainter/
qpainterbackend.h
>
#include
"
qpainterbackend.h
"
#include <QObject>
#include <QImage>
...
...
plugins/scenes/opengl/scene_opengl.cpp
View file @
3dc00de8
...
...
@@ -17,10 +17,10 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "scene_opengl.h"
#include "texture.h"
#include "platform.h"
#include "wayland_server.h"
#include "platformsupport/scenes/opengl/texture.h"
#include <kwinglplatform.h>
#include <kwineffectquickview.h>
...
...
plugins/scenes/opengl/scene_opengl.h
View file @
3dc00de8
...
...
@@ -11,13 +11,14 @@
#ifndef KWIN_SCENE_OPENGL_H
#define KWIN_SCENE_OPENGL_H
#include "openglbackend.h"
#include "scene.h"
#include "shadow.h"
#include "kwinglutils.h"
#include "decorations/decorationrenderer.h"
#include "platformsupport/scenes/opengl/openglbackend.h"
namespace
KWin
{
...
...
plugins/scenes/qpainter/scene_qpainter.h
View file @
3dc00de8
...
...
@@ -9,8 +9,9 @@
#ifndef KWIN_SCENE_QPAINTER_H
#define KWIN_SCENE_QPAINTER_H
#include "qpainterbackend.h"
#include "scene.h"
#include <platformsupport/scenes/qpainter/qpainterbackend.h>
#include "shadow.h"
#include "decorations/decorationrenderer.h"
...
...
plugins/scenes/xrender/CMakeLists.txt
View file @
3dc00de8
...
...
@@ -12,8 +12,6 @@ ecm_qt_declare_logging_category(
Critical
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/platformsupport/scenes/xrender
)
add_library
(
KWinSceneXRender MODULE
${
SCENE_XRENDER_SRCS
}
)
set_target_properties
(
KWinSceneXRender PROPERTIES LIBRARY_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/bin/org.kde.kwin.scenes/"
)
target_link_libraries
(
KWinSceneXRender kwin kwinxrenderutils SceneXRenderBackend
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment