mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
Merge branch 'wlprotocols-dependency-correctness' into 'main'
meson: use proper handling of wayland-protocols dependency See merge request GNOME/gtk!4561
This commit is contained in:
commit
1f155bf39a
@ -517,15 +517,11 @@ if wayland_enabled
|
||||
wlclientdep = dependency('wayland-client', version: wayland_req,
|
||||
fallback: 'wayland',
|
||||
default_options: ['documentation=false'])
|
||||
wlprotocolsdep = dependency('wayland-protocols', version: wayland_proto_req, required: false)
|
||||
wlprotocolsdep = dependency('wayland-protocols', version: wayland_proto_req)
|
||||
wlegldep = dependency('wayland-egl',
|
||||
fallback: 'wayland')
|
||||
|
||||
if not wlprotocolsdep.found()
|
||||
wlproto_dir = subproject('wayland-protocols').get_variable('wayland_protocols_srcdir')
|
||||
else
|
||||
wlproto_dir = wlprotocolsdep.get_variable(pkgconfig: 'pkgdatadir')
|
||||
endif
|
||||
wlproto_dir = wlprotocolsdep.get_variable('pkgdatadir')
|
||||
|
||||
wayland_pkgs = [
|
||||
'wayland-client @0@'.format(wayland_req),
|
||||
|
Loading…
Reference in New Issue
Block a user