Fix the issues found while reviewing the build files

Install the Wayland development packages in both workflows and bundle the
runtime libraries in the AppImage: the release build had no native Wayland
backend at all, and the engine silently fell back to GLFW there.

Build the window backends on every platform that is not Windows and not
Apple, glob the wayland sources with CONFIGURE_DEPENDS, and report a
missing Wayland dependency with the list of what is missing.

Also drop the dead nested project() calls and the duplicate -no-pie
option, make .dirIcon the file appimagetool expects, and describe the
real Linux dependencies in the README.
This commit is contained in:
alexei-zebra 2026-10-11 20:06:19 +03:00
parent 3a574ade8c
commit b6f6235249
No known key found for this signature in database
GPG key ID: D19D450AC3D9A80E
10 changed files with 46 additions and 26 deletions

View file

@ -27,7 +27,7 @@ sudo make install
```sh
su -
apt-get install libglfw3-devel libGLEW-devel libglm-devel libpng-devel libvorbis-devel libopenal-devel libluajit-devel libstdc++13-devel-static libcurl-devel libfreetype-devel libssl-devel
apt-get install entt-devel libglfw3-devel libGLEW-devel libglm-devel libpng-devel libvorbis-devel libopenal-devel libluajit-devel libstdc++13-devel-static libcurl-devel libfreetype-devel libssl-devel
```
#### Debian based distros
@ -58,9 +58,12 @@ sudo pacman -S glfw glew glm libpng libvorbis openal luajit curl freetype2 opens
#### Wayland
On Linux the engine draws the window frame itself and needs `wayland-client`,
`wayland-egl`, `wayland-scanner`, `wayland-protocols`, `libxkbcommon` and EGL.
Build with `-DVOXELCORE_WAYLAND=OFF` to fall back to GLFW.
On Linux the engine draws the window frame itself and needs `libwayland-dev`
(with `libwayland-bin` for `wayland-scanner`), `libxkbcommon-dev` and
`libegl-dev`. The protocol XML descriptions are vendored in
`src/window/wayland/protocols`, so the `wayland-protocols` package is not used.
`libsystemd-dev` is optional and adds the window button layout read through
sd-bus. Build with `-DVOXELCORE_WAYLAND=OFF` to fall back to GLFW.
### Building engine with CMake