[autotests/wayland_client] Don't build TestWaylandFullscreenShell for Wayland < 1.5
The fullscreen shell is only provided with at least Weston 1.5. It should be checked on runtime, but that's difficult as Weston doesn't fail if it cannot find the shell.so. So we disable it based on the assumption that if Wayland library is not 1.5 the Weston is also not 1.5.
This commit is contained in:
parent
42e2bbf387
commit
7d059c8b08
1 changed files with 14 additions and 12 deletions
|
@ -27,6 +27,7 @@ ecm_mark_as_test(testWaylandRegistry)
|
|||
########################################################
|
||||
# Test WaylandFullscreenShell
|
||||
########################################################
|
||||
if(Wayland_VERSION VERSION_GREATER "1.4.0")
|
||||
set( testWaylandFullscreenShell_SRCS
|
||||
test_wayland_fullscreen_shell.cpp
|
||||
${KWIN_SOURCE_DIR}/wayland_client/connection_thread.cpp
|
||||
|
@ -39,6 +40,7 @@ add_dependencies(testWaylandFullscreenShell wayland-client-fullscreen-shell)
|
|||
target_link_libraries( testWaylandFullscreenShell Qt5::Test Wayland::Client)
|
||||
add_test(kwin-testWaylandFullscreenShell testWaylandFullscreenShell)
|
||||
ecm_mark_as_test(testWaylandFullscreenShell)
|
||||
endif()
|
||||
|
||||
########################################################
|
||||
# Test WaylandOutput
|
||||
|
|
Loading…
Reference in a new issue