Skip to content

Commit

Permalink
Build libdecor (for wayland)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Feb 28, 2024
1 parent d251857 commit 1d305b2
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildconfig/manylinux-build/docker_base/Dockerfile-aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ RUN ["bash", "/libxml2_build/build-libxml2.sh"]
ADD wayland /wayland_build/
RUN ["bash", "/wayland_build/build-wayland.sh"]

ADD libdecor /libdecor_build/
RUN ["bash", "/libdecor_build/build-libdecor.sh"]

ADD xorg/macros /xorg_build/macros/
RUN ["bash", "/xorg_build/macros/build-macros.sh"]

Expand Down
3 changes: 3 additions & 0 deletions buildconfig/manylinux-build/docker_base/Dockerfile-i686
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ RUN ["linux32", "bash", "/libxml2_build/build-libxml2.sh"]
ADD wayland /wayland_build/
RUN ["linux32", "bash", "/wayland_build/build-wayland.sh"]

ADD libdecor /libdecor_build/
RUN ["linux32", "bash", "/libdecor_build/build-libdecor.sh"]

ADD xorg/macros /xorg_build/macros/
RUN ["linux32", "bash", "/xorg_build/macros/build-macros.sh"]

Expand Down
3 changes: 3 additions & 0 deletions buildconfig/manylinux-build/docker_base/Dockerfile-x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ RUN ["bash", "/libxml2_build/build-libxml2.sh"]
ADD wayland /wayland_build/
RUN ["bash", "/wayland_build/build-wayland.sh"]

ADD libdecor /libdecor_build/
RUN ["bash", "/libdecor_build/build-libdecor.sh"]

ADD xorg/macros /xorg_build/macros/
RUN ["bash", "/xorg_build/macros/build-macros.sh"]

Expand Down
25 changes: 25 additions & 0 deletions buildconfig/manylinux-build/docker_base/libdecor/build-libdecor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
set -e -x

cd $(dirname `readlink -f "$0"`)

LIBDECOR_VER=0.2.2
LIBDECOR="libdecor-$LIBDECOR_VER"

curl -sL --retry 10 https://gitlab.freedesktop.org/libdecor/libdecor/-/releases/${LIBDECOR_VER}/downloads/${LIBDECOR}.tar.xz > ${LIBDECOR}.tar.xz
sha512sum -c libdecor.sha512sum

tar xf $LIBDECOR.tar.xz
cd $LIBDECOR

# This is a hack because I'm lazy :)
# libdecor depends on cairo which is a kinda heavy dependency and need more
# scripting work. But libdecor shared lib is not actually present in the
# manylinux wheel and is dynamically loaded by SDL at runtime (if available on
# users system)
# So we override the plugin builds to skip cairo (and only build dummy plugin)
echo "plugin_include_path = include_directories('.')" > src/plugins/meson.build
echo "subdir('dummy')" > src/plugins/meson.build

meson build/ $PG_BASE_MESON_FLAGS -Ddemo=false
ninja -C build/ install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ed1dfb86c28f0c84950ea5653e1ae6a83bf274e5ea51c0977ea134481536dffd31e65146c0a0aa8b67a6cad4fb8bc551b4266b04c93493547d43131dc04ea380 libdecor-0.2.2.tar.xz

0 comments on commit 1d305b2

Please sign in to comment.