mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 23:50:45 +01:00
meson.build: fix a deprecation warning
get_pkgconfig_variable is deprecated Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f185120936
commit
54eea68296
1 changed files with 11 additions and 2 deletions
13
meson.build
13
meson.build
|
|
@ -546,7 +546,12 @@ if get_option('debug-gui')
|
|||
config_h.set10('HAVE_GTK3', dep_gtk.found())
|
||||
endif
|
||||
|
||||
gtk_targets = dep_gtk.get_pkgconfig_variable('targets')
|
||||
if meson.version().version_compare('>= 0.58')
|
||||
gtk_targets = dep_gtk.get_variable('targets')
|
||||
else
|
||||
gtk_targets = dep_gtk.get_pkgconfig_variable('targets')
|
||||
endif
|
||||
|
||||
have_gtk_wayland = gtk_targets.contains('wayland')
|
||||
have_gtk_x11 = gtk_targets.contains('x11')
|
||||
|
||||
|
|
@ -563,7 +568,11 @@ if get_option('debug-gui')
|
|||
|
||||
if have_gtk_wayland and dep_wayland_client.found() and dep_wayland_protocols.found()
|
||||
wayland_scanner = find_program('wayland-scanner')
|
||||
wlproto_dir = dep_wayland_protocols.get_pkgconfig_variable('pkgdatadir')
|
||||
if meson.version().version_compare('>= 0.58')
|
||||
wlproto_dir = dep_wayland_protocols.get_variable('pkgdatadir')
|
||||
else
|
||||
wlproto_dir = dep_wayland_protocols.get_pkgconfig_variable('pkgdatadir')
|
||||
endif
|
||||
|
||||
proto_name = 'pointer-constraints-unstable-v1'
|
||||
input = files(wlproto_dir / 'unstable' / 'pointer-constraints' / '@0@.xml'.format(proto_name))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue