aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-28 06:38:20 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-07-03 12:36:32 +0000
commitbf83a0b2bdb2299c95b6296fe8fd93bf0b99b743 (patch)
treee2f337bf37f8453523227431fd39f21c45bc743f /meson.build
parentrender: don’t (can’t) use cursor-shape-v1 when user has set a custom cursor (diff)
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.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build12
1 files changed, 7 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index ed0bf4a0..8535a4d1 100644
--- a/meson.build
+++ b/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(