build(deps): add wrap files for 'scenefx' and 'wlroots'

Allows meson to fallback on fetching and building these projects in case
they are not available/out-of-date on the system (can be avoided by
passing '--wrap-mode=nofallback' to 'meson setup').
This commit is contained in:
euletheia 2026-05-19 14:57:38 +02:00
parent d81ca73ea1
commit dde8ee131c
No known key found for this signature in database
GPG key ID: 2D993B9B4D45E31B
4 changed files with 16 additions and 2 deletions

2
.gitignore vendored
View file

@ -1,6 +1,8 @@
/.cache /.cache
/.vscode /.vscode
/result /result
/subprojects/*
!/subprojects/*.wrap
config.h config.h
mango mango
mango.o mango.o

View file

@ -29,12 +29,12 @@ libm = cc.find_library('m')
xcb = dependency('xcb', required : get_option('xwayland')) xcb = dependency('xcb', required : get_option('xwayland'))
xlibs = dependency('xcb-icccm', required : get_option('xwayland')) xlibs = dependency('xcb-icccm', required : get_option('xwayland'))
wayland_server_dep = dependency('wayland-server',version: '>=1.23.1') wayland_server_dep = dependency('wayland-server',version: '>=1.23.1')
wlroots_dep = dependency('wlroots-0.19',version: '>=0.19.0') wlroots_dep = dependency('wlroots-0.19', version: '>=0.19.0', fallback: 'wlroots')
xkbcommon_dep = dependency('xkbcommon') xkbcommon_dep = dependency('xkbcommon')
libinput_dep = dependency('libinput',version: '>=1.27.1') libinput_dep = dependency('libinput',version: '>=1.27.1')
libwayland_client_dep = dependency('wayland-client') libwayland_client_dep = dependency('wayland-client')
pcre2_dep = dependency('libpcre2-8') pcre2_dep = dependency('libpcre2-8')
libscenefx_dep = dependency('scenefx-0.4',version: '>=0.4.1') libscenefx_dep = dependency('scenefx-0.4',version: '>=0.4.1', fallback: 'libscenefx')
pixman_dep = dependency('pixman-1') pixman_dep = dependency('pixman-1')
cjson_dep = dependency('libcjson') cjson_dep = dependency('libcjson')

View file

@ -0,0 +1,6 @@
[wrap-git]
url = https://github.com/wlrfx/scenefx.git
revision = 0.4.1
[provide]
dependency_names = scenefx-0.4

6
subprojects/wlroots.wrap Normal file
View file

@ -0,0 +1,6 @@
[wrap-git]
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
revision = 0.19.3
[provide]
dependency_names = wlroots-0.19