aboutsummaryrefslogtreecommitdiff
path: root/wayland/cage/build
diff options
context:
space:
mode:
Diffstat (limited to 'wayland/cage/build')
-rwxr-xr-xwayland/cage/build23
1 files changed, 23 insertions, 0 deletions
diff --git a/wayland/cage/build b/wayland/cage/build
index 77a0e800..913220ab 100755
--- a/wayland/cage/build
+++ b/wayland/cage/build
@@ -1,6 +1,29 @@
#!/bin/sh -e
+export WLROOTS_DIR="$PWD/pkg"
+
+(
+cd wlroots
+
+export DESTDIR="$WLROOTS_DIR"
+
+cl-meson \
+ --default-library=static \
+ -Dexamples=false \
+ -Dxwayland=enabled \
+ -Dx11-backend=enabled \
+ -Drenderers=gles2 \
+ . output
+
+ninja -C output
+ninja -C output install
+)
+
export DESTDIR="$1"
+export LDLIBS="$LDLIBS -L$WLROOTS_DIR/usr/lib $WLROOTS_DIR/usr/lib/libwlroots.a"
+export LDFLAGS="$LDFLAGS -L$WLROOTS_DIR/usr/lib $WLROOTS_DIR/usr/lib/libwlroots.a"
+export CFLAGS="$CFLAGS -I$WLROOTS_DIR/usr/include"
+export PKG_CONFIG_PATH=$WLROOTS_DIR/usr/lib/pkgconfig
cl-meson \
-Dman-pages=enabled \