aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-09-08 08:42:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-09-13 07:04:17 +0000
commit5ef69fc591e2fbad2b399e765d697150c97a95a6 (patch)
tree593c4bc2b0b94b85d0a428f46e64f7c76089d067
parentxsnprintf: various improvements related to xvsnprintf() and xsnprintf() (diff)
meson: detect wayland-protocols >= 1.37, and conditionally enable xdg-toplevel-icon-v1
-rw-r--r--meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 1b3b01aa..91e745bf 100644
--- a/meson.build
+++ b/meson.build
@@ -171,6 +171,14 @@ wl_proto_xml = [
wayland_protocols_datadir / 'staging/single-pixel-buffer/single-pixel-buffer-v1.xml',
]
+if wayland_protocols.version().version_compare('>=1.37')
+ add_project_arguments('-DHAVE_XDG_TOPLEVEL_ICON', language: 'c')
+ wl_proto_xml += [wayland_protocols_datadir / 'staging/xdg-toplevel-icon/xdg-toplevel-icon-v1.xml']
+ xdg_toplevel_icon = true
+else
+ xdg_toplevel_icon = false
+endif
+
foreach prot : wl_proto_xml
wl_proto_headers += custom_target(
prot.underscorify() + '-client-header',
@@ -401,6 +409,7 @@ summary(
'Themes': get_option('themes'),
'IME': get_option('ime'),
'Grapheme clustering': utf8proc.found(),
+ 'Wayland: xdg-toplevel-icon-v1': xdg_toplevel_icon,
'utmp backend': utmp_backend,
'utmp helper default path': utmp_default_helper_path,
'Build terminfo': tic.found(),