2016-04-08 07:51:06 +00:00
|
|
|
set(X11PLATFORM_SOURCES
|
2016-04-15 11:47:56 +00:00
|
|
|
edge.cpp
|
2016-04-12 12:48:54 +00:00
|
|
|
logging.cpp
|
2016-08-16 13:31:14 +00:00
|
|
|
x11cursor.cpp
|
2016-04-08 07:51:06 +00:00
|
|
|
x11_platform.cpp
|
2016-04-08 08:32:37 +00:00
|
|
|
screens_xrandr.cpp
|
2016-11-15 09:22:56 +00:00
|
|
|
windowselector.cpp
|
2017-08-07 15:54:56 +00:00
|
|
|
overlaywindow_x11.cpp
|
2017-08-19 08:58:05 +00:00
|
|
|
screenedges_filter.cpp
|
2017-08-21 09:59:52 +00:00
|
|
|
non_composited_outline.cpp
|
2017-08-20 20:15:21 +00:00
|
|
|
x11_decoration_renderer.cpp
|
2017-09-15 17:59:49 +00:00
|
|
|
xfixes_cursor_event_filter.cpp
|
2017-09-23 18:21:26 +00:00
|
|
|
effects_x11.cpp
|
|
|
|
effects_mouse_interception_x11_filter.cpp
|
2017-09-22 18:35:50 +00:00
|
|
|
sync_filter.cpp
|
2016-04-08 07:51:06 +00:00
|
|
|
)
|
|
|
|
|
2016-08-16 13:31:14 +00:00
|
|
|
if(X11_Xinput_FOUND)
|
|
|
|
set(X11PLATFORM_SOURCES ${X11PLATFORM_SOURCES} xinputintegration.cpp)
|
|
|
|
endif()
|
|
|
|
|
2016-04-12 13:03:07 +00:00
|
|
|
if(HAVE_EPOXY_GLX)
|
2017-06-27 19:08:19 +00:00
|
|
|
set(X11PLATFORM_SOURCES ${X11PLATFORM_SOURCES} glxbackend.cpp glx_context_attribute_builder.cpp)
|
2016-04-12 13:03:07 +00:00
|
|
|
endif()
|
|
|
|
|
2017-09-08 20:30:18 +00:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl)
|
|
|
|
|
2016-04-08 07:51:06 +00:00
|
|
|
add_library(KWinX11Platform MODULE ${X11PLATFORM_SOURCES})
|
2018-12-06 17:38:36 +00:00
|
|
|
set_target_properties(KWinX11Platform PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.platforms/")
|
2017-11-05 09:46:53 +00:00
|
|
|
target_link_libraries(KWinX11Platform eglx11common kwin kwinxrenderutils SceneOpenGLBackend Qt5::X11Extras XCB::CURSOR KF5::Crash)
|
2016-08-16 13:31:14 +00:00
|
|
|
if(X11_Xinput_FOUND)
|
|
|
|
target_link_libraries(KWinX11Platform ${X11_Xinput_LIB})
|
|
|
|
endif()
|
2016-04-08 07:51:06 +00:00
|
|
|
|
2016-11-22 07:34:59 +00:00
|
|
|
if(HAVE_DL_LIBRARY)
|
|
|
|
target_link_libraries(KWinX11Platform ${DL_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
2016-04-08 07:51:06 +00:00
|
|
|
install(
|
|
|
|
TARGETS
|
|
|
|
KWinX11Platform
|
|
|
|
DESTINATION
|
|
|
|
${PLUGIN_INSTALL_DIR}/org.kde.kwin.platforms/
|
|
|
|
)
|