build: Move software vsync helpers to libkwin
Compile software vsync helpers into libkwin for the consistency sake with other helpers.
This commit is contained in:
parent
cc42e47ec5
commit
1d96b41bb4
6 changed files with 7 additions and 9 deletions
|
@ -38,7 +38,7 @@ endif()
|
|||
|
||||
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 VsyncSupport)
|
||||
target_link_libraries(KWinWaylandDrmBackend kwin Libdrm::Libdrm)
|
||||
|
||||
if (HAVE_GBM)
|
||||
target_link_libraries(KWinWaylandDrmBackend gbm::gbm)
|
||||
|
|
|
@ -6,7 +6,7 @@ set(FBDEV_SOURCES
|
|||
|
||||
add_library(KWinWaylandFbdevBackend MODULE ${FBDEV_SOURCES})
|
||||
set_target_properties(KWinWaylandFbdevBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
||||
target_link_libraries(KWinWaylandFbdevBackend kwin VsyncSupport)
|
||||
target_link_libraries(KWinWaylandFbdevBackend kwin)
|
||||
|
||||
install(
|
||||
TARGETS
|
||||
|
|
|
@ -10,7 +10,7 @@ ecm_qt_declare_logging_category(VIRTUAL_SOURCES HEADER logging.h IDENTIFIER KWIN
|
|||
|
||||
add_library(KWinWaylandVirtualBackend MODULE ${VIRTUAL_SOURCES})
|
||||
set_target_properties(KWinWaylandVirtualBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/")
|
||||
target_link_libraries(KWinWaylandVirtualBackend kwin VsyncSupport)
|
||||
target_link_libraries(KWinWaylandVirtualBackend kwin)
|
||||
|
||||
install(
|
||||
TARGETS
|
||||
|
|
|
@ -17,7 +17,7 @@ set(X11PLATFORM_SOURCES
|
|||
|
||||
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 VsyncSupport Qt::X11Extras KF5::Crash X11::X11)
|
||||
target_link_libraries(KWinX11Platform eglx11common kwin kwinxrenderutils Qt::X11Extras KF5::Crash X11::X11)
|
||||
if (X11_Xi_FOUND)
|
||||
target_sources(KWinX11Platform PRIVATE xinputintegration.cpp)
|
||||
target_link_libraries(KWinX11Platform X11::Xi)
|
||||
|
|
|
@ -8,7 +8,7 @@ set(X11BACKEND_SOURCES
|
|||
|
||||
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 VsyncSupport X11::X11)
|
||||
target_link_libraries(KWinWaylandX11Backend eglx11common kwin kwinxrenderutils X11::XCB X11::X11)
|
||||
if (X11_Xi_FOUND)
|
||||
target_link_libraries(KWinWaylandX11Backend X11::Xi)
|
||||
endif()
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
set(vsyncconvenience_SOURCES
|
||||
target_sources(kwin PRIVATE
|
||||
softwarevsyncmonitor.cpp
|
||||
vsyncmonitor.cpp
|
||||
)
|
||||
|
||||
add_library(VsyncSupport OBJECT ${vsyncconvenience_SOURCES})
|
||||
target_link_libraries(VsyncSupport Qt::Core Qt::Gui)
|
||||
target_include_directories(VsyncSupport PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_include_directories(kwin PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
|
Loading…
Reference in a new issue