7d81e9cf22
This makes QCursor::pos and QCursor::setPos function correctly. KWin actually wouldn't need it as KWin has the KWin::Cursor replacement, but it allows Qt internal API to have it function correctly and also the zoom effect does use QCursor::setPos.
36 lines
793 B
CMake
36 lines
793 B
CMake
include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
|
|
include_directories(${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
|
add_definitions(-DQ_FONTCONFIGDATABASE)
|
|
|
|
set(QPA_SOURCES
|
|
abstractplatformcontext.cpp
|
|
backingstore.cpp
|
|
integration.cpp
|
|
main.cpp
|
|
nativeinterface.cpp
|
|
platformcontextwayland.cpp
|
|
platformcursor.cpp
|
|
screen.cpp
|
|
sharingplatformcontext.cpp
|
|
window.cpp
|
|
)
|
|
|
|
add_library(KWinQpaPlugin MODULE ${QPA_SOURCES})
|
|
target_link_libraries(KWinQpaPlugin
|
|
kwin
|
|
KF5::WaylandClient
|
|
Qt5PlatformSupport::Qt5PlatformSupport
|
|
${FONTCONFIG_LIBRARIES}
|
|
${FREETYPE_LIBRARIES}
|
|
)
|
|
|
|
if(HAVE_WAYLAND_EGL)
|
|
target_link_libraries(KWinQpaPlugin Wayland::Egl)
|
|
endif()
|
|
|
|
install(
|
|
TARGETS
|
|
KWinQpaPlugin
|
|
DESTINATION
|
|
${PLUGIN_INSTALL_DIR}/platforms/
|
|
)
|