2019-05-03 09:49:43 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o xtrace
|
|
|
|
|
|
|
|
# We need to control the version of llvm-config we're using, so we'll
|
|
|
|
# generate a native file to do so. This requires meson >=0.49
|
|
|
|
if test -n "$LLVM_VERSION"; then
|
|
|
|
LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
|
|
|
|
echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file
|
|
|
|
$LLVM_CONFIG --version
|
|
|
|
else
|
2019-05-03 09:58:48 +01:00
|
|
|
rm -f native.file
|
2019-05-03 09:49:43 +01:00
|
|
|
touch native.file
|
|
|
|
fi
|
|
|
|
|
2019-05-03 09:58:48 +01:00
|
|
|
rm -rf _build
|
2019-05-03 09:49:43 +01:00
|
|
|
meson _build --native-file=native.file \
|
|
|
|
-D buildtype=debug \
|
|
|
|
-D build-tests=true \
|
|
|
|
-D libunwind=${UNWIND} \
|
|
|
|
${DRI_LOADERS} \
|
|
|
|
-D dri-drivers=${DRI_DRIVERS:-[]} \
|
|
|
|
${GALLIUM_ST} \
|
|
|
|
-D gallium-drivers=${GALLIUM_DRIVERS:-[]} \
|
|
|
|
-D vulkan-drivers=${VULKAN_DRIVERS:-[]} \
|
2019-05-08 17:17:23 +01:00
|
|
|
-D I-love-half-baked-turnips=true \
|
|
|
|
${EXTRA_OPTION}
|
2019-05-03 09:49:43 +01:00
|
|
|
cd _build
|
|
|
|
meson configure
|
|
|
|
ninja -j4
|
|
|
|
LC_ALL=C.UTF-8 ninja test
|
2019-06-28 20:11:11 +01:00
|
|
|
DESTDIR=$PWD/../install ninja install
|