kwin/plugins/qpa/CMakeLists.txt
Martin Flöser e48d9df14f [qpa] Drop PlatformContextWayland which uses wayland egl for OpenGL
Summary:
Using the Wayland protocol for OpenGL is no longer used or useful. KWin
internal windows only use OpenGL through QtQuick. We either have the
sharing context (KWin uses OpenGL for compositing) or we have the
QPainter compositor which also turns QtQuick to use software renderer.

Thus a situation where the Wayland platform context is useful doesn't
exist any more. Removing it helps getting the QPA plugin Wayland free.

Test Plan:
Run nested KWin triggering Outline once with OpenGL and once
with QPainter compositor.

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D19012
2019-02-22 16:57:29 +01:00

41 lines
1.1 KiB
CMake

include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
set(QPA_SOURCES
abstractplatformcontext.cpp
backingstore.cpp
integration.cpp
main.cpp
nativeinterface.cpp
platformcursor.cpp
screen.cpp
sharingplatformcontext.cpp
window.cpp
)
include(ECMQtDeclareLoggingCategory)
ecm_qt_declare_logging_category(QPA_SOURCES HEADER logging.h IDENTIFIER KWIN_QPA CATEGORY_NAME kwin_qpa_plugin DEFAULT_SEVERITY Critical)
add_library(KWinQpaPlugin MODULE ${QPA_SOURCES})
set_target_properties(KWinQpaPlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/platforms/")
set(QT5PLATFORMSUPPORT_LIBS
Qt5FontDatabaseSupport::Qt5FontDatabaseSupport
Qt5ThemeSupport::Qt5ThemeSupport
Qt5EventDispatcherSupport::Qt5EventDispatcherSupport
)
target_link_libraries(KWinQpaPlugin
kwin
KF5::WaylandClient
${QT5PLATFORMSUPPORT_LIBS}
Fontconfig::Fontconfig
${FREETYPE_LIBRARIES}
)
install(
TARGETS
KWinQpaPlugin
DESTINATION
${PLUGIN_INSTALL_DIR}/platforms/
)