2021-07-18 20:21:59 +00:00
|
|
|
set(mockDRM_SRCS
|
|
|
|
mock_drm.cpp
|
|
|
|
../../src/backends/drm/drm_abstract_output.cpp
|
|
|
|
../../src/backends/drm/drm_backend.cpp
|
2023-03-14 11:40:20 +00:00
|
|
|
../../src/backends/drm/drm_blob.cpp
|
2021-07-18 20:21:59 +00:00
|
|
|
../../src/backends/drm/drm_buffer.cpp
|
2023-07-24 11:50:56 +00:00
|
|
|
../../src/backends/drm/drm_commit.cpp
|
2023-03-15 15:15:41 +00:00
|
|
|
../../src/backends/drm/drm_commit_thread.cpp
|
2023-03-14 11:40:20 +00:00
|
|
|
../../src/backends/drm/drm_connector.cpp
|
|
|
|
../../src/backends/drm/drm_crtc.cpp
|
2021-07-18 20:21:59 +00:00
|
|
|
../../src/backends/drm/drm_egl_backend.cpp
|
|
|
|
../../src/backends/drm/drm_egl_layer.cpp
|
|
|
|
../../src/backends/drm/drm_egl_layer_surface.cpp
|
|
|
|
../../src/backends/drm/drm_gpu.cpp
|
|
|
|
../../src/backends/drm/drm_layer.cpp
|
|
|
|
../../src/backends/drm/drm_logging.cpp
|
|
|
|
../../src/backends/drm/drm_object.cpp
|
|
|
|
../../src/backends/drm/drm_output.cpp
|
|
|
|
../../src/backends/drm/drm_pipeline.cpp
|
|
|
|
../../src/backends/drm/drm_pipeline_legacy.cpp
|
2023-03-14 11:40:20 +00:00
|
|
|
../../src/backends/drm/drm_plane.cpp
|
2021-07-18 20:21:59 +00:00
|
|
|
../../src/backends/drm/drm_property.cpp
|
|
|
|
../../src/backends/drm/drm_qpainter_backend.cpp
|
|
|
|
../../src/backends/drm/drm_qpainter_layer.cpp
|
|
|
|
../../src/backends/drm/drm_virtual_egl_layer.cpp
|
|
|
|
../../src/backends/drm/drm_virtual_output.cpp
|
2023-10-04 15:55:38 +00:00
|
|
|
../../src/backends/drm/icc_shader.cpp
|
2021-07-18 20:21:59 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(${Libdrm_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
add_library(LibDrmTest STATIC ${mockDRM_SRCS})
|
|
|
|
target_link_libraries(LibDrmTest
|
|
|
|
Qt::Gui
|
|
|
|
Qt::Widgets
|
2023-02-24 18:22:37 +00:00
|
|
|
KF6::ConfigCore
|
|
|
|
KF6::WindowSystem
|
|
|
|
KF6::CoreAddons
|
|
|
|
KF6::I18n
|
2021-07-18 20:21:59 +00:00
|
|
|
PkgConfig::Libxcvt
|
|
|
|
gbm::gbm
|
2023-06-19 11:19:29 +00:00
|
|
|
Libdrm::Libdrm
|
2021-07-18 20:21:59 +00:00
|
|
|
kwin
|
|
|
|
)
|
|
|
|
target_include_directories(LibDrmTest
|
|
|
|
PUBLIC
|
|
|
|
../../src
|
|
|
|
../../src/platformsupport/scenes/opengl
|
|
|
|
../../src/platformsupport/scenes/qpainter
|
|
|
|
../../src/backends/drm/
|
|
|
|
)
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# Tests
|
|
|
|
########################################################
|
|
|
|
add_executable(testDrm drmTest.cpp)
|
|
|
|
target_link_libraries(testDrm LibDrmTest Qt::Test)
|
|
|
|
add_test(NAME kwin-testDrm COMMAND testDrm)
|
|
|
|
ecm_mark_as_test(testDrm)
|