Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/CMakeLists.txt
Show All 16 Lines | 16 | if (HAVE_GBM) | |||
---|---|---|---|---|---|
17 | set(DRM_SOURCES ${DRM_SOURCES} | 17 | set(DRM_SOURCES ${DRM_SOURCES} | ||
18 | egl_gbm_backend.cpp | 18 | egl_gbm_backend.cpp | ||
19 | drm_buffer_gbm.cpp | 19 | drm_buffer_gbm.cpp | ||
20 | gbm_surface.cpp | 20 | gbm_surface.cpp | ||
21 | remoteaccess_manager.cpp | 21 | remoteaccess_manager.cpp | ||
22 | ) | 22 | ) | ||
23 | endif() | 23 | endif() | ||
24 | 24 | | |||
25 | if(HAVE_PIPEWIRE_SUPPORT) | ||||
26 | set(DRM_SOURCES ${DRM_SOURCES} | ||||
27 | screencaststream.cpp | ||||
28 | ) | ||||
29 | endif() | ||||
30 | | ||||
31 | | ||||
25 | if (HAVE_EGL_STREAMS) | 32 | if (HAVE_EGL_STREAMS) | ||
26 | set(DRM_SOURCES ${DRM_SOURCES} | 33 | set(DRM_SOURCES ${DRM_SOURCES} | ||
27 | egl_stream_backend.cpp | 34 | egl_stream_backend.cpp | ||
28 | ) | 35 | ) | ||
29 | endif() | 36 | endif() | ||
30 | 37 | | |||
31 | include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl) | 38 | include_directories(${CMAKE_SOURCE_DIR}/platformsupport/scenes/opengl) | ||
32 | 39 | | |||
33 | add_library(KWinWaylandDrmBackend MODULE ${DRM_SOURCES}) | 40 | add_library(KWinWaylandDrmBackend MODULE ${DRM_SOURCES}) | ||
34 | set_target_properties(KWinWaylandDrmBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/") | 41 | set_target_properties(KWinWaylandDrmBackend PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/org.kde.kwin.waylandbackends/") | ||
35 | target_link_libraries(KWinWaylandDrmBackend kwin Libdrm::Libdrm SceneQPainterBackend SceneOpenGLBackend) | 42 | target_link_libraries(KWinWaylandDrmBackend kwin Libdrm::Libdrm SceneQPainterBackend SceneOpenGLBackend) | ||
36 | 43 | | |||
37 | if (HAVE_GBM) | 44 | if (HAVE_GBM) | ||
38 | target_link_libraries(KWinWaylandDrmBackend gbm::gbm) | 45 | target_link_libraries(KWinWaylandDrmBackend gbm::gbm) | ||
39 | endif() | 46 | endif() | ||
40 | 47 | | |||
48 | if(HAVE_PIPEWIRE_SUPPORT) | ||||
49 | target_link_libraries(KWinWaylandDrmBackend PkgConfig::PipeWire) | ||||
50 | endif() | ||||
51 | | ||||
41 | install( | 52 | install( | ||
42 | TARGETS | 53 | TARGETS | ||
43 | KWinWaylandDrmBackend | 54 | KWinWaylandDrmBackend | ||
44 | DESTINATION | 55 | DESTINATION | ||
45 | ${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/ | 56 | ${PLUGIN_INSTALL_DIR}/org.kde.kwin.waylandbackends/ | ||
46 | ) | 57 | ) |