Use distro libdecor instead

This commit is contained in:
hwsmm 2025-02-20 21:53:36 +09:00
parent c4d3ee27e8
commit 0b4f2d1e85
1 changed files with 2 additions and 16 deletions

18
External/build.sh vendored
View File

@ -67,22 +67,8 @@ if [[ $RUNNER_OS == 'Linux' ]]; then
libdrm-dev$TARGET_APT_ARCH \
libgbm-dev$TARGET_APT_ARCH \
libpulse-dev$TARGET_APT_ARCH \
libpipewire-0.3-dev$TARGET_APT_ARCH
if [[ $TARGET_APT_ARCH != :i386 ]]; then
# Build libdecor.
# This is required so that window decorations can work on wayland.
# The support will only be enabled in SDL, but we're not shipping the libdecor binaries
# because making them work from a c# app as everything else does (via runtimes) is too difficult.
# Also skip i386 because attempting to support this for i386 is a pain.
# Special shoutouts to gnome for refusing to support server-side decorations.
git clone https://gitlab.freedesktop.org/libdecor/libdecor.git
cd libdecor
git checkout 0.2.2
meson build --buildtype release
$SUDO meson install -C build
cd ..
fi
libpipewire-0.3-dev$TARGET_APT_ARCH \
libdecor-0-dev$TARGET_APT_ARCH
fi
# Build SDL