aboutsummaryrefslogtreecommitdiff
path: root/wayland/cage/build
blob: 913220ab6264b721a10e73b3820b0f21946edd62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/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 \
    . output

ninja -C output
ninja -C output install