14 - MAKE_CHECK_COMMAND="make check"
15 - DRI_LOADERS="--with-platforms=x11 --disable-egl"
21 - DRI_LOADERS="-Dglx=dri -Dgbm=false -Degl=false -Dplatforms=x11 -Dosmesa=none"
22 - GALLIUM_ST="-Ddri3=true -Dgallium-vdpau=false -Dgallium-xvmc=false -Dgallium-omx=disabled -Dgallium-va=false -Dgallium-xa=false -Dgallium-nine=false -Dgallium-opencl=disabled"
27 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
28 HOMEBREW_NO_AUTO_UPDATE=1 brew install python3 ninja expat gettext
29 # Set PATH for homebrew pip3 installs
30 PATH="$HOME/Library/Python/3.6/bin:${PATH}"
31 # Set PKG_CONFIG_PATH for keg-only expat
32 PKG_CONFIG_PATH="/usr/local/opt/expat/lib/pkgconfig:${PKG_CONFIG_PATH}"
33 # Set PATH for keg-only gettext
34 PATH="/usr/local/opt/gettext/bin:${PATH}"
36 # Install xquartz for prereqs ...
37 XQUARTZ_VERSION="2.7.11"
38 wget -nv https://dl.bintray.com/xquartz/downloads/XQuartz-${XQUARTZ_VERSION}.dmg
39 hdiutil attach XQuartz-${XQUARTZ_VERSION}.dmg
40 sudo installer -pkg /Volumes/XQuartz-${XQUARTZ_VERSION}/XQuartz.pkg -target /
41 hdiutil detach /Volumes/XQuartz-${XQUARTZ_VERSION}
43 PATH="/opt/X11/bin:${PATH}"
44 PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
45 ACLOCAL="aclocal -I /opt/X11/share/aclocal -I /usr/local/share/aclocal"
49 # Install a more modern meson from pip, since the version in the
50 # ubuntu repos is often quite old.
51 - if test "x$BUILD" = xmeson; then
52 pip3 install --user meson;
53 pip3 install --user mako;
56 # Install autotools build dependencies
57 - if test "x$BUILD" = xmake; then
58 pip2 install --user mako;
61 # Install a more modern scons from pip.
62 - if test "x$BUILD" = xscons; then
63 pip2 install --user "scons>=2.4";
64 pip2 install --user mako;
67 # Install dependencies where we require specific versions (or where
68 # disallowed by Travis CI's package whitelisting).
71 - if test "x$BUILD" = xmake; then
72 export CFLAGS="$CFLAGS -isystem`pwd`";
81 --with-dri-drivers=$DRI_DRIVERS
83 --with-gallium-drivers=$GALLIUM_DRIVERS
84 --with-vulkan-drivers=$VULKAN_DRIVERS
85 --disable-llvm-shared-libs
87 make && eval $MAKE_CHECK_COMMAND;
90 - if test "x$BUILD" = xscons; then
91 scons $SCONS_TARGET && eval $SCONS_CHECK_COMMAND;
95 if test "x$BUILD" = xmeson; then
96 if test -n "$LLVM_CONFIG"; then
97 # We need to control the version of llvm-config we're using, so we'll
98 # generate a native file to do so. This requires meson >=0.49
100 echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file
102 $LLVM_CONFIG --version
107 export CFLAGS="$CFLAGS -isystem`pwd`"
109 --native-file=native.file \
111 -Dlibunwind=${UNWIND} \
113 -Ddri-drivers=${DRI_DRIVERS:-[]} \
115 -Dgallium-drivers=${GALLIUM_DRIVERS:-[]} \
116 -Dvulkan-drivers=${VULKAN_DRIVERS:-[]}
117 meson configure _build