build: require at least wlroots 0.17.1

There are enough bugs fixed in 0.17.1 which are relevant to river that I
think it's worthwhile to refuse to compile against 0.17.1.
This commit is contained in:
Isaac Freund 2024-01-01 22:48:38 -06:00
parent a128a574a4
commit 3aba3abbcd
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11
5 changed files with 10 additions and 4 deletions

View File

@ -34,7 +34,7 @@ tasks:
cd ..
cd wlroots
git checkout 0.17.0
git checkout 0.17.1
meson setup build --auto-features=enabled -Drenderers=gles2 -Dexamples=false \
-Dwerror=false -Db_ndebug=false -Dxcb-errors=disabled --prefix /usr
sudo ninja -C build/ install

View File

@ -32,7 +32,7 @@ tasks:
cd ..
cd wlroots
git checkout 0.17.0
git checkout 0.17.1
meson setup build --auto-features=enabled -Drenderers=gles2 -Dexamples=false \
-Dwerror=false -Db_ndebug=false --prefix /usr
sudo ninja -C build/ install

View File

@ -36,7 +36,7 @@ tasks:
cd ..
cd wlroots
git checkout 0.17.0
git checkout 0.17.1
meson setup build --auto-features=enabled -Drenderers=gles2 -Dexamples=false \
-Dwerror=false -Db_ndebug=false --prefix /usr
sudo ninja -C build/ install

View File

@ -38,7 +38,7 @@ distribution.
- [zig](https://ziglang.org/download/) 0.11
- wayland
- wayland-protocols
- [wlroots](https://gitlab.freedesktop.org/wlroots/wlroots) 0.17
- [wlroots](https://gitlab.freedesktop.org/wlroots/wlroots) 0.17.1
- xkbcommon
- libevdev
- pixman

View File

@ -29,6 +29,12 @@ const util = @import("util.zig");
const Server = @import("Server.zig");
comptime {
if (wlr.version.major != 0 or wlr.version.minor != 17 or wlr.version.micro < 1) {
@compileError("river requires at least wlroots version 0.17.1 due to bugs in wlroots 0.17.0");
}
}
const usage: []const u8 =
\\usage: river [options]
\\