mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2025-12-20 11:40:16 +01:00
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>
This commit is contained in:
parent
78e38c57bf
commit
a113a93d83
1 changed files with 13 additions and 7 deletions
20
meson.build
20
meson.build
|
|
@ -8,11 +8,11 @@ wayland_protocols_version = meson.project_version()
|
||||||
|
|
||||||
fs = import('fs')
|
fs = import('fs')
|
||||||
|
|
||||||
stable_protocols = [
|
stable_protocols = {
|
||||||
'presentation-time',
|
'presentation-time': [''],
|
||||||
'viewporter',
|
'viewporter': [''],
|
||||||
'xdg-shell',
|
'xdg-shell': [''],
|
||||||
]
|
}
|
||||||
|
|
||||||
unstable_protocols = {
|
unstable_protocols = {
|
||||||
'fullscreen-shell': ['v1'],
|
'fullscreen-shell': ['v1'],
|
||||||
|
|
@ -53,8 +53,14 @@ staging_protocols = {
|
||||||
|
|
||||||
protocol_files = []
|
protocol_files = []
|
||||||
|
|
||||||
foreach name : stable_protocols
|
foreach name, versions : stable_protocols
|
||||||
protocol_files += ['stable/@0@/@0@.xml'.format(name)]
|
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
|
endforeach
|
||||||
|
|
||||||
foreach name, versions : staging_protocols
|
foreach name, versions : staging_protocols
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue