From c4d3ee27e8c9a2a9344b0661f185968586ae3133 Mon Sep 17 00:00:00 2001 From: hwsmm <9151706+hwsmm@users.noreply.github.com> Date: Thu, 20 Feb 2025 21:25:51 +0900 Subject: [PATCH 1/2] Add PipeWire dependency --- External/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/External/build.sh b/External/build.sh index 44e5498..74df08a 100755 --- a/External/build.sh +++ b/External/build.sh @@ -66,7 +66,8 @@ if [[ $RUNNER_OS == 'Linux' ]]; then libxxf86vm-dev$TARGET_APT_ARCH \ libdrm-dev$TARGET_APT_ARCH \ libgbm-dev$TARGET_APT_ARCH \ - libpulse-dev$TARGET_APT_ARCH + libpulse-dev$TARGET_APT_ARCH \ + libpipewire-0.3-dev$TARGET_APT_ARCH if [[ $TARGET_APT_ARCH != :i386 ]]; then # Build libdecor. From 0b4f2d1e854172e5977ad20d5c9b28ce5095ee84 Mon Sep 17 00:00:00 2001 From: hwsmm <9151706+hwsmm@users.noreply.github.com> Date: Thu, 20 Feb 2025 21:53:36 +0900 Subject: [PATCH 2/2] Use distro libdecor instead --- External/build.sh | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/External/build.sh b/External/build.sh index 74df08a..3ee2a71 100755 --- a/External/build.sh +++ b/External/build.sh @@ -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