- - if test "x$BUILD" = xmake; then
- export CFLAGS="$CFLAGS -isystem`pwd`";
-
- mkdir build &&
- cd build &&
- ../autogen.sh
- --enable-autotools
- --enable-debug
- $LIBUNWIND_FLAGS
- $DRI_LOADERS
- --with-dri-drivers=$DRI_DRIVERS
- $GALLIUM_ST
- --with-gallium-drivers=$GALLIUM_DRIVERS
- --with-vulkan-drivers=$VULKAN_DRIVERS
- --disable-llvm-shared-libs
- &&
- make && eval $MAKE_CHECK_COMMAND;
- fi
-
- - |
- if test "x$BUILD" = xmeson; then
- if test -n "$LLVM_CONFIG"; then
- # 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
- #
- echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file
-
- $LLVM_CONFIG --version
- else
- : > native.file
- fi
-
- export CFLAGS="$CFLAGS -isystem`pwd`"
- meson _build \
- --native-file=native.file \
- -Dbuild-tests=true \
- -Dlibunwind=${UNWIND} \
- ${DRI_LOADERS} \
- -Ddri-drivers=${DRI_DRIVERS:-[]} \
- ${GALLIUM_ST} \
- -Dgallium-drivers=${GALLIUM_DRIVERS:-[]} \
- -Dvulkan-drivers=${VULKAN_DRIVERS:-[]}
- meson configure _build
- ninja -C _build
- ninja -C _build test
- fi