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
|
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()
|
|
|
|
|
2016-04-08 07:51:06 +00:00
|
|
|
add_library(KWinX11Platform MODULE ${X11PLATFORM_SOURCES})
|
2016-08-16 13:31:14 +00:00
|
|
|
target_link_libraries(KWinX11Platform eglx11common kwin Qt5::X11Extras XCB::CURSOR)
|
|
|
|
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/
|
|
|
|
)
|