- env:
- LABEL="meson Vulkan"
- BUILD=meson
- - MESON_OPTIONS="-Ddri-drivers=[] -Dgallium-drivers=[]"
+ - DRI_DRIVERS=""
+ - GALLIUM_DRIVERS=""
+ - VULKAN_DRIVERS="intel,amd"
- LLVM_VERSION=6.0
- LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
addons:
- env:
- LABEL="meson loaders/classic DRI"
- BUILD=meson
- - MESON_OPTIONS="-Dvulkan-drivers=[] -Dgallium-drivers=[]"
+ - DRI_DRIVERS="i915,i965,r100,r200,swrast,nouveau"
+ - GALLIUM_DRIVERS=""
+ - VULKAN_DRIVERS=""
addons:
apt:
packages:
- env:
- LABEL="macOS meson"
- BUILD=meson
- - MESON_OPTIONS="-Degl=false"
os: osx
before_install:
fi
install:
- - pip2 install --user mako
-
# Install a more modern meson from pip, since the version in the
# ubuntu repos is often quite old. Avoid >=0.45.0 as it needs python
# 3.5+
- if test "x$BUILD" = xmeson; then
pip3 install --user "meson<0.45.0";
+ pip3 install --user mako;
+ fi
+
+ # Install autotools build dependencies
+ - if test "x$BUILD" = xmake; then
+ pip2 install --user mako;
fi
# Install a more modern scons from pip.
- if test "x$BUILD" = xscons; then
pip2 install --user "scons>=2.4";
+ pip2 install --user mako;
fi
# Since libdrm gets updated in configure.ac regularly, try to pick up the
- |
if test "x$BUILD" = xmeson; then
+ if test "x$TRAVIS_OS_NAME" == xosx; then
+ 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
+
# Travis CI has moved to LLVM 5.0, and meson is detecting
# automatically the available version in /usr/local/bin based on
# the PATH env variable order preference.