summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-07-03 17:04:42 +0200
committerSimon Ser <contact@emersion.fr>2023-10-10 14:42:05 +0200
commita113a93d83baf063d7378efe7a83d96ee813d1cc (patch)
tree0486b316b9d7b845eff1686ddd58573db7ade1c9
parent78e38c57bf2e0397b3a9984ab9e103bc41d1bf8d (diff)
build: add version for stable protocols
Stable protocols used to not have a version. But with the new rules, they have one. Accomodate the build script for the new rules. Signed-off-by: Simon Ser <contact@emersion.fr>
-rw-r--r--meson.build20
1 files changed, 13 insertions, 7 deletions
diff --git a/meson.build b/meson.build
index 4cc0c76..822e666 100644
--- a/meson.build
+++ b/meson.build
@@ -8,11 +8,11 @@ wayland_protocols_version = meson.project_version()
fs = import('fs')
-stable_protocols = [
- 'presentation-time',
- 'viewporter',
- 'xdg-shell',
-]
+stable_protocols = {
+ 'presentation-time': [''],
+ 'viewporter': [''],
+ 'xdg-shell': [''],
+}
unstable_protocols = {
'fullscreen-shell': ['v1'],
@@ -53,8 +53,14 @@ staging_protocols = {
protocol_files = []
-foreach name : stable_protocols
- protocol_files += ['stable/@0@/@0@.xml'.format(name)]
+foreach name, versions : stable_protocols
+ foreach version : versions
+ if version == ''
+ protocol_files += ['stable/@0@/@0@.xml'.format(name)]
+ else
+ protocol_files += ['stable/@0@/@0@-@1@.xml'.format(name, version)]
+ endif
+ endforeach
endforeach
foreach name, versions : staging_protocols