mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2025-12-20 08:10:07 +01:00
build: Add 'experimental' protocols
These protocols are not installed; users need to access these files via methods other than released tarballs, for example via a meson subproject. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
810f1adaf3
commit
c446847b7f
1 changed files with 29 additions and 6 deletions
35
meson.build
35
meson.build
|
|
@ -75,33 +75,56 @@ staging_protocols = {
|
|||
'xwayland-shell': ['v1'],
|
||||
}
|
||||
|
||||
protocol_files = []
|
||||
experimental_protocols = {
|
||||
}
|
||||
|
||||
protocol_files = []
|
||||
installed_protocol_files = []
|
||||
|
||||
stable_protocol_files = []
|
||||
foreach name, versions : stable_protocols
|
||||
foreach version : versions
|
||||
if version == ''
|
||||
protocol_files += ['stable/@0@/@0@.xml'.format(name)]
|
||||
stable_protocol_files += ['stable/@0@/@0@.xml'.format(name)]
|
||||
else
|
||||
protocol_files += ['stable/@0@/@0@-@1@.xml'.format(name, version)]
|
||||
stable_protocol_files += ['stable/@0@/@0@-@1@.xml'.format(name, version)]
|
||||
endif
|
||||
endforeach
|
||||
endforeach
|
||||
installed_protocol_files += stable_protocol_files
|
||||
protocol_files += stable_protocol_files
|
||||
|
||||
staging_protocol_files = []
|
||||
foreach name, versions : staging_protocols
|
||||
foreach version : versions
|
||||
protocol_files += [
|
||||
staging_protocol_files += [
|
||||
'staging/@0@/@0@-@1@.xml'.format(name, version)
|
||||
]
|
||||
endforeach
|
||||
endforeach
|
||||
installed_protocol_files += staging_protocol_files
|
||||
protocol_files += staging_protocol_files
|
||||
|
||||
unstable_protocol_files = []
|
||||
foreach name, versions : unstable_protocols
|
||||
foreach version : versions
|
||||
protocol_files += [
|
||||
unstable_protocol_files += [
|
||||
'unstable/@0@/@0@-unstable-@1@.xml'.format(name, version)
|
||||
]
|
||||
endforeach
|
||||
endforeach
|
||||
installed_protocol_files += unstable_protocol_files
|
||||
protocol_files += unstable_protocol_files
|
||||
|
||||
experimental_protocol_files = []
|
||||
foreach name, versions : experimental_protocols
|
||||
foreach version : versions
|
||||
experimental_protocol_files += [
|
||||
'experimental/@0@/@0@-@1@.xml'.format(name, version)
|
||||
]
|
||||
endforeach
|
||||
endforeach
|
||||
protocol_files += experimental_protocol_files
|
||||
|
||||
# Check that each protocol has a README
|
||||
foreach protocol_file : protocol_files
|
||||
|
|
@ -111,7 +134,7 @@ foreach protocol_file : protocol_files
|
|||
endif
|
||||
endforeach
|
||||
|
||||
foreach protocol_file : protocol_files
|
||||
foreach protocol_file : installed_protocol_files
|
||||
protocol_install_dir = fs.parent(join_paths(
|
||||
get_option('datadir'),
|
||||
'wayland-protocols',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue