aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-14 12:23:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-14 12:23:19 +0000
commit92e517ae34243d9c294e966221f5a4589684a9b5 (patch)
tree2fb1774c2e62ada3c387b71e577bcee3c0960d63 /meson.build
parentMerge branch 'vt-anywhere-cleanup' (diff)
parentchangeloge: xdg-activation support (diff)
Merge branch 'xdg-activation'
Closes #487
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index c36d7644..0c48929a 100644
--- a/meson.build
+++ b/meson.build
@@ -88,7 +88,7 @@ wscanner_prog = find_program(
wl_proto_headers = []
wl_proto_src = []
-foreach prot : [
+wl_proto_xml = [
wayland_protocols_datadir + '/stable/xdg-shell/xdg-shell.xml',
wayland_protocols_datadir + '/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml',
wayland_protocols_datadir + '/unstable/xdg-output/xdg-output-unstable-v1.xml',
@@ -97,6 +97,12 @@ foreach prot : [
wayland_protocols_datadir + '/unstable/text-input/text-input-unstable-v3.xml',
]
+if wayland_protocols.version().version_compare('>=1.21')
+ add_project_arguments('-DHAVE_XDG_ACTIVATION', language: 'c')
+ wl_proto_xml += [wayland_protocols_datadir + '/staging/xdg-activation/xdg-activation-v1.xml']
+endif
+
+foreach prot : wl_proto_xml
wl_proto_headers += custom_target(
prot.underscorify() + '-client-header',
output: '@BASENAME@.h',