mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
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:
parent
ddd6004b27
commit
bf83a0b2bd
2 changed files with 7 additions and 152 deletions
12
meson.build
12
meson.build
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue