mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
meson: detect wayland-protocols >= 1.37, and conditionally enable xdg-toplevel-icon-v1
This commit is contained in:
parent
d4a1283797
commit
5ef69fc591
1 changed files with 9 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue