repo/wayland/libinput/build
2022-10-17 14:16:16 +05:30

24 lines
524 B
Bash
Executable File

#!/bin/sh -e
export CFLAGS="$CFLAGS -fPIC"
# Build fails with clang due to -Werror (forced on) and
# -Wunused-command-line-argument which is triggered by.
# the below CFLAGS.
export CFLAGS="-Wno-unused-command-line-argument $CFLAGS"
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--libexecdir=/usr/lib \
-Ddefault_library=both \
-Ddebug-gui=false \
-Ddocumentation=false \
-Dtests=false \
-Dlibwacom=false \
. output
ninja -C output
ninja -C output install