Gtk: Add wayland-client as wayland dep.

This commit is contained in:
BearOso 2022-01-31 16:32:27 -06:00
parent 8ed8fdab86
commit da23559f2f
1 changed files with 3 additions and 2 deletions

View File

@ -165,12 +165,13 @@ endif
wayland = get_option('wayland')
if wayland
wayland_client_dep = dependency('wayland-client', required: false)
wayland_dep = dependency('wayland-egl', required: false)
if wayland_dep.found()
if wayland_dep.found() and wayland_client_dep.found()
args += '-DUSE_WAYLAND'
srcs += ['src/gtk_wayland_egl_context.cpp', 'src/gtk_wayland_egl_context.h', 'src/wayland-idle-inhibit-unstable-v1.c']
deps += wayland_dep
deps += [wayland_dep, wayland_client_dep]
else
wayland = false
warns += 'wayland-egl not found. Wayland will be disabled.'