aboutsummaryrefslogtreecommitdiff
path: root/wayland/cage/build
blob: 2f4087b82380bc5d46c08b95373ca3aa1959dbad (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
#!/bin/sh -e

export WLROOTS_DIR="$PWD/pkg"
export DESTDIR="$WLROOTS_DIR"

(
cd wlroots

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