- env:
- LABEL="meson Vulkan"
- BUILD=meson
- - DRI_DRIVERS=""
- - GALLIUM_DRIVERS=""
- VULKAN_DRIVERS="intel,amd"
- LLVM_VERSION=7
- LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
- LABEL="meson loaders/classic DRI"
- BUILD=meson
- DRI_DRIVERS="i915,i965,r100,r200,swrast,nouveau"
- - GALLIUM_DRIVERS=""
- - VULKAN_DRIVERS=""
addons:
apt:
packages:
MESON_OPTIONS="-Degl=false"
fi
- if test "x$TRAVIS_OS_NAME" == xlinux; then
- MESON_OPTIONS="-Ddri-drivers=${DRI_DRIVERS:-[]} -Dgallium-drivers=${GALLIUM_DRIVERS:-[]} -Dvulkan-drivers=${VULKAN_DRIVERS:-[]}"
- fi
-
# 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
#
export CFLAGS="$CFLAGS -isystem`pwd`"
meson _build $MESON_OPTIONS \
--native-file=native.file \
- -Dbuild-tests=true
+ -Dbuild-tests=true \
+ -Ddri-drivers=${DRI_DRIVERS:-[]} \
+ -Dgallium-drivers=${GALLIUM_DRIVERS:-[]} \
+ -Dvulkan-drivers=${VULKAN_DRIVERS:-[]}
meson configure _build
ninja -C _build
ninja -C _build test