Skip to content

Commit 1d305b2

Browse files
committed
Build libdecor (for wayland)
1 parent d251857 commit 1d305b2

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

buildconfig/manylinux-build/docker_base/Dockerfile-aarch64

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ RUN ["bash", "/libxml2_build/build-libxml2.sh"]
5454
ADD wayland /wayland_build/
5555
RUN ["bash", "/wayland_build/build-wayland.sh"]
5656

57+
ADD libdecor /libdecor_build/
58+
RUN ["bash", "/libdecor_build/build-libdecor.sh"]
59+
5760
ADD xorg/macros /xorg_build/macros/
5861
RUN ["bash", "/xorg_build/macros/build-macros.sh"]
5962

buildconfig/manylinux-build/docker_base/Dockerfile-i686

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ RUN ["linux32", "bash", "/libxml2_build/build-libxml2.sh"]
5454
ADD wayland /wayland_build/
5555
RUN ["linux32", "bash", "/wayland_build/build-wayland.sh"]
5656

57+
ADD libdecor /libdecor_build/
58+
RUN ["linux32", "bash", "/libdecor_build/build-libdecor.sh"]
59+
5760
ADD xorg/macros /xorg_build/macros/
5861
RUN ["linux32", "bash", "/xorg_build/macros/build-macros.sh"]
5962

buildconfig/manylinux-build/docker_base/Dockerfile-x86_64

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ RUN ["bash", "/libxml2_build/build-libxml2.sh"]
5454
ADD wayland /wayland_build/
5555
RUN ["bash", "/wayland_build/build-wayland.sh"]
5656

57+
ADD libdecor /libdecor_build/
58+
RUN ["bash", "/libdecor_build/build-libdecor.sh"]
59+
5760
ADD xorg/macros /xorg_build/macros/
5861
RUN ["bash", "/xorg_build/macros/build-macros.sh"]
5962

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
set -e -x
3+
4+
cd $(dirname `readlink -f "$0"`)
5+
6+
LIBDECOR_VER=0.2.2
7+
LIBDECOR="libdecor-$LIBDECOR_VER"
8+
9+
curl -sL --retry 10 https://gitlab.freedesktop.org/libdecor/libdecor/-/releases/${LIBDECOR_VER}/downloads/${LIBDECOR}.tar.xz > ${LIBDECOR}.tar.xz
10+
sha512sum -c libdecor.sha512sum
11+
12+
tar xf $LIBDECOR.tar.xz
13+
cd $LIBDECOR
14+
15+
# This is a hack because I'm lazy :)
16+
# libdecor depends on cairo which is a kinda heavy dependency and need more
17+
# scripting work. But libdecor shared lib is not actually present in the
18+
# manylinux wheel and is dynamically loaded by SDL at runtime (if available on
19+
# users system)
20+
# So we override the plugin builds to skip cairo (and only build dummy plugin)
21+
echo "plugin_include_path = include_directories('.')" > src/plugins/meson.build
22+
echo "subdir('dummy')" > src/plugins/meson.build
23+
24+
meson build/ $PG_BASE_MESON_FLAGS -Ddemo=false
25+
ninja -C build/ install
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ed1dfb86c28f0c84950ea5653e1ae6a83bf274e5ea51c0977ea134481536dffd31e65146c0a0aa8b67a6cad4fb8bc551b4266b04c93493547d43131dc04ea380 libdecor-0.2.2.tar.xz

0 commit comments

Comments
 (0)