meson: cursor-shape: use .xml from wayland-protocols

This patch assumes a git snapshot of wayland-protocols are
installed.

We need to bump the version number as soon as the next version of
wayland-protocols have been released.
This commit is contained in:
Daniel Eklöf 2023-06-28 08:38:20 +02:00
parent ddd6004b27
commit bf83a0b2bd
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 7 additions and 152 deletions

View file

@ -170,11 +170,13 @@ else
fractional_scale = false
endif
# TODO: check wayland-protocols version
wl_proto_xml += [wayland_protocols_datadir + '/unstable/tablet/tablet-unstable-v2.xml', # required by cursor-shape-v1
'cursor-shape-v1.xml', # TODO: use wayland-protocols
]
add_project_arguments('-DHAVE_CURSOR_SHAPE', language: 'c')
if wayland_protocols.version().version_compare('>=1.31') # TODO: 1.32
wl_proto_xml += [
wayland_protocols_datadir + '/unstable/tablet/tablet-unstable-v2.xml', # required by cursor-shape-v1
wayland_protocols_datadir + '/staging/cursor-shape/cursor-shape-v1.xml',
]
add_project_arguments('-DHAVE_CURSOR_SHAPE', language: 'c')
endif
foreach prot : wl_proto_xml
wl_proto_headers += custom_target(