build: add Meson wrap manifests for our dependencies

Add Meson wrap manifests for all of our dependencies which can
fallback to a subproject. This makes it easier to build wlroots
on platforms where system packages are outdated. Users can now
opt-in via `meson configure --wrap-mode=default` and Meson will
download and build any missing dependency.

Don't download by default because this can be quite surprising and
undesirable for some users (e.g. if they are just missing some -dev
package).
This commit is contained in:
Simon Ser 2024-11-26 19:08:16 +01:00 committed by Kirill Primak
parent 90530d43fe
commit 428279a319
10 changed files with 26 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/subprojects/ /subprojects/
!/subprojects/*.wrap

View file

@ -8,6 +8,7 @@ project(
'c_std=' + (meson.version().version_compare('>=1.4.0') ? 'c23,c11' : 'c11'), 'c_std=' + (meson.version().version_compare('>=1.4.0') ? 'c23,c11' : 'c11'),
'warning_level=2', 'warning_level=2',
'werror=true', 'werror=true',
'wrap_mode=nodownload',
], ],
) )

View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://gitlab.freedesktop.org/emersion/libdisplay-info.git
revision = HEAD

3
subprojects/libdrm.wrap Normal file
View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://gitlab.freedesktop.org/mesa/drm.git
revision = HEAD

View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://gitlab.freedesktop.org/emersion/libliftoff.git
revision = HEAD

View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://github.com/xkbcommon/libxkbcommon.git
revision = HEAD

3
subprojects/pixman.wrap Normal file
View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://gitlab.freedesktop.org/pixman/pixman.git
revision = HEAD

3
subprojects/seatd.wrap Normal file
View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://git.sr.ht/~kennylevinsen/seatd
revision = HEAD

View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://gitlab.freedesktop.org/wayland/wayland-protocols.git
revision = HEAD

3
subprojects/wayland.wrap Normal file
View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://gitlab.freedesktop.org/wayland/wayland.git
revision = HEAD