gitlab-ci: Always set libdir to lib/
[mesa.git] / .gitlab-ci / meson-build.sh
1 #!/bin/bash
2
3 set -e
4 set -o xtrace
5
6 # We need to control the version of llvm-config we're using, so we'll
7 # generate a native file to do so. This requires meson >=0.49
8 if test -n "$LLVM_VERSION"; then
9 LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
10 echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file
11 $LLVM_CONFIG --version
12 else
13 rm -f native.file
14 touch native.file
15 fi
16
17 rm -rf _build
18 meson _build --native-file=native.file \
19 ${CROSS} \
20 -D libdir=lib \
21 -D buildtype=debug \
22 -D build-tests=true \
23 -D libunwind=${UNWIND} \
24 ${DRI_LOADERS} \
25 -D dri-drivers=${DRI_DRIVERS:-[]} \
26 ${GALLIUM_ST} \
27 -D gallium-drivers=${GALLIUM_DRIVERS:-[]} \
28 -D vulkan-drivers=${VULKAN_DRIVERS:-[]} \
29 -D I-love-half-baked-turnips=true \
30 ${EXTRA_OPTION}
31 cd _build
32 meson configure
33 ninja -j4
34 LC_ALL=C.UTF-8 ninja test
35 DESTDIR=$PWD/../install ninja install