mirror of https://github.com/snes9xgit/snes9x.git
Gtk: Add wayland-client as wayland dep.
This commit is contained in:
parent
8ed8fdab86
commit
da23559f2f
|
@ -165,12 +165,13 @@ endif
|
||||||
|
|
||||||
wayland = get_option('wayland')
|
wayland = get_option('wayland')
|
||||||
if wayland
|
if wayland
|
||||||
|
wayland_client_dep = dependency('wayland-client', required: false)
|
||||||
wayland_dep = dependency('wayland-egl', 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'
|
args += '-DUSE_WAYLAND'
|
||||||
srcs += ['src/gtk_wayland_egl_context.cpp', 'src/gtk_wayland_egl_context.h', 'src/wayland-idle-inhibit-unstable-v1.c']
|
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
|
else
|
||||||
wayland = false
|
wayland = false
|
||||||
warns += 'wayland-egl not found. Wayland will be disabled.'
|
warns += 'wayland-egl not found. Wayland will be disabled.'
|
||||||
|
|
Loading…
Reference in New Issue