Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 1 | language: c |
| 2 | |
Emil Velikov | 7c38d7b | 2018-12-13 11:20:41 +0000 | [diff] [blame] | 3 | dist: xenial |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 4 | |
| 5 | cache: |
Eric Engestrom | b3aa370 | 2019-03-08 11:16:25 +0000 | [diff] [blame^] | 6 | apt: true |
Emil Velikov | 6431b98 | 2017-04-06 14:02:38 +0100 | [diff] [blame] | 7 | ccache: true |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 8 | |
Eric Engestrom | 6e0effb | 2019-02-07 11:36:19 +0000 | [diff] [blame] | 9 | env: |
| 10 | global: |
Eric Engestrom | b3aa370 | 2019-03-08 11:16:25 +0000 | [diff] [blame^] | 11 | - XORG_RELEASES=https://xorg.freedesktop.org/releases/individual |
| 12 | - XCB_RELEASES=https://xcb.freedesktop.org/dist |
| 13 | - WAYLAND_RELEASES=https://wayland.freedesktop.org/releases |
| 14 | - XORGMACROS_VERSION=util-macros-1.19.0 |
| 15 | - GLPROTO_VERSION=glproto-1.4.17 |
| 16 | - DRI2PROTO_VERSION=dri2proto-2.8 |
| 17 | - LIBPCIACCESS_VERSION=libpciaccess-0.13.4 |
| 18 | - LIBDRM_VERSION=libdrm-2.4.97 |
| 19 | - XCBPROTO_VERSION=xcb-proto-1.13 |
| 20 | - RANDRPROTO_VERSION=randrproto-1.3.0 |
| 21 | - LIBXRANDR_VERSION=libXrandr-1.3.0 |
| 22 | - LIBXCB_VERSION=libxcb-1.13 |
| 23 | - LIBXSHMFENCE_VERSION=libxshmfence-1.2 |
| 24 | - LIBVDPAU_VERSION=libvdpau-1.1 |
| 25 | - LIBVA_VERSION=libva-1.7.0 |
| 26 | - LIBWAYLAND_VERSION=wayland-1.15.0 |
| 27 | - WAYLAND_PROTOCOLS_VERSION=wayland-protocols-1.8 |
| 28 | - PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig |
| 29 | - LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH" |
| 30 | - PATH="$HOME/prefix/bin:$PATH" |
Eric Engestrom | 6e0effb | 2019-02-07 11:36:19 +0000 | [diff] [blame] | 31 | |
Emil Velikov | 56ba252 | 2017-04-06 14:38:40 +0100 | [diff] [blame] | 32 | matrix: |
| 33 | include: |
| 34 | - env: |
Eric Engestrom | b3aa370 | 2019-03-08 11:16:25 +0000 | [diff] [blame^] | 35 | - LABEL="make Vulkan" |
| 36 | - BUILD=make |
| 37 | - MAKEFLAGS="-j4" |
| 38 | - MAKE_CHECK_COMMAND="make -C src/gtest check && make -C src/intel check" |
| 39 | - LLVM_VERSION=7 |
| 40 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 41 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl --with-platforms=x11,wayland" |
| 42 | - DRI_DRIVERS="" |
| 43 | - GALLIUM_ST="--enable-dri --enable-dri3 --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
| 44 | - GALLIUM_DRIVERS="" |
| 45 | - VULKAN_DRIVERS="intel,radeon" |
| 46 | - LIBUNWIND_FLAGS="--disable-libunwind" |
| 47 | addons: |
| 48 | apt: |
| 49 | sources: |
| 50 | - sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main' |
| 51 | key_url: https://apt.llvm.org/llvm-snapshot.gpg.key |
| 52 | packages: |
| 53 | # From sources above |
| 54 | - llvm-7-dev |
| 55 | # Common |
| 56 | - xz-utils |
| 57 | - libexpat1-dev |
| 58 | - libx11-xcb-dev |
| 59 | - libelf-dev |
| 60 | - python3-pip |
| 61 | - python3-setuptools |
| 62 | - env: |
| 63 | - LABEL="make loaders/classic DRI" |
| 64 | - BUILD=make |
| 65 | - MAKEFLAGS="-j4" |
| 66 | - MAKE_CHECK_COMMAND="make check" |
| 67 | - DRI_LOADERS="--enable-glx --enable-gbm --enable-egl --with-platforms=x11,drm,surfaceless,wayland --enable-osmesa" |
| 68 | - DRI_DRIVERS="i915,i965,radeon,r200,swrast,nouveau" |
| 69 | - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
| 70 | - GALLIUM_DRIVERS="" |
| 71 | - VULKAN_DRIVERS="" |
| 72 | - LIBUNWIND_FLAGS="--disable-libunwind" |
| 73 | addons: |
| 74 | apt: |
| 75 | packages: |
| 76 | - xz-utils |
| 77 | - x11proto-xf86vidmode-dev |
| 78 | - libxxf86vm-dev |
| 79 | - libexpat1-dev |
| 80 | - libx11-xcb-dev |
| 81 | - libxdamage-dev |
| 82 | - libxfixes-dev |
| 83 | - python3-pip |
| 84 | - python3-setuptools |
| 85 | - env: |
| 86 | # NOTE: Building SWR is 2x (yes two) times slower than all the other |
| 87 | # gallium drivers combined. |
| 88 | # Start this early so that it doesn't hunder the run time. |
| 89 | - LABEL="make Gallium Drivers SWR" |
| 90 | - BUILD=make |
| 91 | - MAKEFLAGS="-j4" |
| 92 | - MAKE_CHECK_COMMAND="true" |
| 93 | - LLVM_VERSION=6.0 |
| 94 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 95 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 96 | - DRI_DRIVERS="" |
| 97 | - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
| 98 | - GALLIUM_DRIVERS="swr" |
| 99 | - VULKAN_DRIVERS="" |
| 100 | - LIBUNWIND_FLAGS="--enable-libunwind" |
| 101 | addons: |
| 102 | apt: |
| 103 | packages: |
| 104 | - llvm-6.0-dev |
| 105 | # Common |
| 106 | - xz-utils |
| 107 | - libexpat1-dev |
| 108 | - libx11-xcb-dev |
| 109 | - libelf-dev |
| 110 | - libunwind8-dev |
| 111 | - python3-pip |
| 112 | - python3-setuptools |
| 113 | - env: |
| 114 | - LABEL="make Gallium Drivers RadeonSI" |
| 115 | - BUILD=make |
| 116 | - MAKEFLAGS="-j4" |
| 117 | - MAKE_CHECK_COMMAND="true" |
| 118 | - LLVM_VERSION=7 |
| 119 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 120 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 121 | - DRI_DRIVERS="" |
| 122 | - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
| 123 | - GALLIUM_DRIVERS="radeonsi" |
| 124 | - VULKAN_DRIVERS="" |
| 125 | - LIBUNWIND_FLAGS="--enable-libunwind" |
| 126 | addons: |
| 127 | apt: |
| 128 | sources: |
| 129 | - sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main' |
| 130 | key_url: https://apt.llvm.org/llvm-snapshot.gpg.key |
| 131 | packages: |
| 132 | # From sources above |
| 133 | - llvm-7-dev |
| 134 | # Common |
| 135 | - xz-utils |
| 136 | - libexpat1-dev |
| 137 | - libx11-xcb-dev |
| 138 | - libelf-dev |
| 139 | - libunwind8-dev |
| 140 | - python3-pip |
| 141 | - python3-setuptools |
| 142 | - env: |
| 143 | - LABEL="make Gallium Drivers Other" |
| 144 | - BUILD=make |
| 145 | - MAKEFLAGS="-j4" |
| 146 | - MAKE_CHECK_COMMAND="true" |
| 147 | - LLVM_VERSION=3.9 |
| 148 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 149 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 150 | - DRI_DRIVERS="" |
| 151 | - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
| 152 | - GALLIUM_DRIVERS="i915,nouveau,kmsro,r300,r600,freedreno,svga,swrast,v3d,vc4,virgl,etnaviv" |
| 153 | - VULKAN_DRIVERS="" |
| 154 | - LIBUNWIND_FLAGS="--enable-libunwind" |
| 155 | addons: |
| 156 | apt: |
| 157 | packages: |
| 158 | # LLVM packaging is broken and misses these dependencies |
| 159 | - libedit-dev |
| 160 | - llvm-3.9-dev |
| 161 | # Common |
| 162 | - xz-utils |
| 163 | - libexpat1-dev |
| 164 | - libx11-xcb-dev |
| 165 | - libelf-dev |
| 166 | - libunwind8-dev |
| 167 | - python3-pip |
| 168 | - python3-setuptools |
| 169 | - env: |
| 170 | - LABEL="make Gallium ST Clover LLVM-3.9" |
| 171 | - BUILD=make |
| 172 | - MAKEFLAGS="-j4" |
| 173 | - MAKE_CHECK_COMMAND="true" |
| 174 | - LLVM_VERSION=3.9 |
| 175 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 176 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 177 | - DRI_DRIVERS="" |
| 178 | - GALLIUM_ST="--disable-dri --enable-opencl --enable-opencl-icd --enable-llvm --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
| 179 | - GALLIUM_DRIVERS="r600" |
| 180 | - VULKAN_DRIVERS="" |
| 181 | - LIBUNWIND_FLAGS="--enable-libunwind" |
| 182 | addons: |
| 183 | apt: |
| 184 | packages: |
| 185 | - libclc-dev |
| 186 | # LLVM packaging is broken and misses these dependencies |
| 187 | - libedit-dev |
| 188 | - llvm-3.9-dev |
| 189 | - clang-3.9 |
| 190 | - libclang-3.9-dev |
| 191 | # Common |
| 192 | - xz-utils |
| 193 | - libexpat1-dev |
| 194 | - libx11-xcb-dev |
| 195 | - libelf-dev |
| 196 | - libunwind8-dev |
| 197 | - python3-pip |
| 198 | - python3-setuptools |
| 199 | - env: |
| 200 | - LABEL="make Gallium ST Clover LLVM-4.0" |
| 201 | - BUILD=make |
| 202 | - MAKEFLAGS="-j4" |
| 203 | - MAKE_CHECK_COMMAND="true" |
| 204 | - LLVM_VERSION=4.0 |
| 205 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 206 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 207 | - DRI_DRIVERS="" |
| 208 | - GALLIUM_ST="--disable-dri --enable-opencl --enable-opencl-icd --enable-llvm --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
| 209 | - GALLIUM_DRIVERS="r600" |
| 210 | - VULKAN_DRIVERS="" |
| 211 | - LIBUNWIND_FLAGS="--enable-libunwind" |
| 212 | addons: |
| 213 | apt: |
| 214 | packages: |
| 215 | - libclc-dev |
| 216 | # LLVM packaging is broken and misses these dependencies |
| 217 | - libedit-dev |
| 218 | - llvm-4.0-dev |
| 219 | - clang-4.0 |
| 220 | - libclang-4.0-dev |
| 221 | # Common |
| 222 | - xz-utils |
| 223 | - libexpat1-dev |
| 224 | - libx11-xcb-dev |
| 225 | - libelf-dev |
| 226 | - libunwind8-dev |
| 227 | - python3-pip |
| 228 | - python3-setuptools |
| 229 | - env: |
| 230 | - LABEL="make Gallium ST Clover LLVM-5.0" |
| 231 | - BUILD=make |
| 232 | - MAKEFLAGS="-j4" |
| 233 | - MAKE_CHECK_COMMAND="true" |
| 234 | - LLVM_VERSION=5.0 |
| 235 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 236 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 237 | - DRI_DRIVERS="" |
| 238 | - GALLIUM_ST="--disable-dri --enable-opencl --enable-opencl-icd --enable-llvm --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
| 239 | - GALLIUM_DRIVERS="r600" |
| 240 | - VULKAN_DRIVERS="" |
| 241 | - LIBUNWIND_FLAGS="--enable-libunwind" |
| 242 | addons: |
| 243 | apt: |
| 244 | packages: |
| 245 | - libclc-dev |
| 246 | # LLVM packaging is broken and misses these dependencies |
| 247 | - libedit-dev |
| 248 | - llvm-5.0-dev |
| 249 | - clang-5.0 |
| 250 | - libclang-5.0-dev |
| 251 | # Common |
| 252 | - xz-utils |
| 253 | - libexpat1-dev |
| 254 | - libx11-xcb-dev |
| 255 | - libelf-dev |
| 256 | - libunwind8-dev |
| 257 | - python3-pip |
| 258 | - python3-setuptools |
| 259 | - env: |
| 260 | - LABEL="make Gallium ST Clover LLVM-6.0" |
| 261 | - BUILD=make |
| 262 | - MAKEFLAGS="-j4" |
| 263 | - MAKE_CHECK_COMMAND="true" |
| 264 | - LLVM_VERSION=6.0 |
| 265 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 266 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 267 | - DRI_DRIVERS="" |
| 268 | - GALLIUM_ST="--disable-dri --enable-opencl --enable-opencl-icd --enable-llvm --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
| 269 | - GALLIUM_DRIVERS="r600" |
| 270 | - VULKAN_DRIVERS="" |
| 271 | - LIBUNWIND_FLAGS="--enable-libunwind" |
| 272 | addons: |
| 273 | apt: |
| 274 | packages: |
| 275 | - libclc-dev |
| 276 | - llvm-6.0-dev |
| 277 | - clang-6.0 |
| 278 | - libclang-6.0-dev |
| 279 | # Common |
| 280 | - xz-utils |
| 281 | - libexpat1-dev |
| 282 | - libx11-xcb-dev |
| 283 | - libelf-dev |
| 284 | - libunwind8-dev |
| 285 | - python3-pip |
| 286 | - python3-setuptools |
| 287 | - env: |
| 288 | - LABEL="make Gallium ST Clover LLVM-7" |
| 289 | - BUILD=make |
| 290 | - MAKEFLAGS="-j4" |
| 291 | - MAKE_CHECK_COMMAND="true" |
| 292 | - LLVM_VERSION=7 |
| 293 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 294 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 295 | - DRI_DRIVERS="" |
| 296 | - GALLIUM_ST="--disable-dri --enable-opencl --enable-opencl-icd --enable-llvm --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa" |
| 297 | - GALLIUM_DRIVERS="r600,radeonsi" |
| 298 | - VULKAN_DRIVERS="" |
| 299 | - LIBUNWIND_FLAGS="--enable-libunwind" |
| 300 | addons: |
| 301 | apt: |
| 302 | sources: |
| 303 | - sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main' |
| 304 | key_url: https://apt.llvm.org/llvm-snapshot.gpg.key |
| 305 | packages: |
| 306 | - libclc-dev |
| 307 | # From sources above |
| 308 | - llvm-7-dev |
| 309 | - clang-7 |
| 310 | - libclang-7-dev |
| 311 | # Common |
| 312 | - xz-utils |
| 313 | - libexpat1-dev |
| 314 | - libx11-xcb-dev |
| 315 | - libelf-dev |
| 316 | - libunwind8-dev |
| 317 | - env: |
| 318 | - LABEL="make Gallium ST Other" |
| 319 | - BUILD=make |
| 320 | - MAKEFLAGS="-j4" |
| 321 | - MAKE_CHECK_COMMAND="true" |
| 322 | - LLVM_VERSION=3.5 |
| 323 | - LLVM_CONFIG="llvm-config-${LLVM_VERSION}" |
| 324 | - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl" |
| 325 | - DRI_DRIVERS="" |
| 326 | - GALLIUM_ST="--enable-dri --disable-opencl --enable-xa --enable-nine --enable-xvmc --enable-vdpau --enable-va --enable-omx-bellagio --enable-gallium-osmesa" |
| 327 | # We need swrast for osmesa and nine. |
| 328 | # i915 most likely doesn't work with most ST. |
| 329 | # Regardless - we're doing a quick build test here. |
| 330 | - GALLIUM_DRIVERS="i915,swrast" |
| 331 | - VULKAN_DRIVERS="" |
| 332 | - LIBUNWIND_FLAGS="--enable-libunwind" |
| 333 | addons: |
| 334 | apt: |
| 335 | packages: |
| 336 | # We actually want to test against llvm-3.3, yet 3.5 is available |
| 337 | - llvm-3.5-dev |
| 338 | # Nine requires gcc 4.6... which is the one we have right ? |
| 339 | - libxvmc-dev |
| 340 | # Build locally, for now. |
| 341 | #- libvdpau-dev |
| 342 | #- libva-dev |
| 343 | - libomxil-bellagio-dev |
| 344 | # LLVM packaging is broken and misses these dependencies |
| 345 | - libedit-dev |
| 346 | # Common |
| 347 | - xz-utils |
| 348 | - libexpat1-dev |
| 349 | - libx11-xcb-dev |
| 350 | - libelf-dev |
| 351 | - libunwind8-dev |
| 352 | - python3-pip |
| 353 | - python3-setuptools |
| 354 | - env: |
Jon Turney | b3a1d95 | 2018-01-18 13:05:06 +0000 | [diff] [blame] | 355 | - LABEL="macOS make" |
| 356 | - BUILD=make |
Jon Turney | b3a1d95 | 2018-01-18 13:05:06 +0000 | [diff] [blame] | 357 | - DRI_LOADERS="--with-platforms=x11 --disable-egl" |
| 358 | os: osx |
Jon Turney | b5af199 | 2018-01-16 17:51:53 +0000 | [diff] [blame] | 359 | - env: |
| 360 | - LABEL="macOS meson" |
| 361 | - BUILD=meson |
Eric Engestrom | 44c420a | 2019-03-08 15:04:54 +0000 | [diff] [blame] | 362 | - DRI_LOADERS="-Dplatforms=x11" |
Eric Engestrom | b63fe65 | 2019-03-14 12:30:15 +0000 | [diff] [blame] | 363 | - GALLIUM_DRIVERS=swrast |
Jon Turney | b5af199 | 2018-01-16 17:51:53 +0000 | [diff] [blame] | 364 | os: osx |
Jon Turney | b3a1d95 | 2018-01-18 13:05:06 +0000 | [diff] [blame] | 365 | |
| 366 | before_install: |
| 367 | - | |
| 368 | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then |
| 369 | HOMEBREW_NO_AUTO_UPDATE=1 brew install python3 ninja expat gettext |
| 370 | # Set PATH for homebrew pip3 installs |
| 371 | PATH="$HOME/Library/Python/3.6/bin:${PATH}" |
| 372 | # Set PKG_CONFIG_PATH for keg-only expat |
| 373 | PKG_CONFIG_PATH="/usr/local/opt/expat/lib/pkgconfig:${PKG_CONFIG_PATH}" |
| 374 | # Set PATH for keg-only gettext |
| 375 | PATH="/usr/local/opt/gettext/bin:${PATH}" |
| 376 | |
| 377 | # Install xquartz for prereqs ... |
| 378 | XQUARTZ_VERSION="2.7.11" |
| 379 | wget -nv https://dl.bintray.com/xquartz/downloads/XQuartz-${XQUARTZ_VERSION}.dmg |
| 380 | hdiutil attach XQuartz-${XQUARTZ_VERSION}.dmg |
| 381 | sudo installer -pkg /Volumes/XQuartz-${XQUARTZ_VERSION}/XQuartz.pkg -target / |
| 382 | hdiutil detach /Volumes/XQuartz-${XQUARTZ_VERSION} |
| 383 | # ... and set paths |
| 384 | PATH="/opt/X11/bin:${PATH}" |
| 385 | PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}" |
| 386 | ACLOCAL="aclocal -I /opt/X11/share/aclocal -I /usr/local/share/aclocal" |
| 387 | fi |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 388 | |
| 389 | install: |
Andres Gomez | 7255201 | 2018-03-05 17:25:36 +0200 | [diff] [blame] | 390 | # Install a more modern meson from pip, since the version in the |
Emil Velikov | 7c38d7b | 2018-12-13 11:20:41 +0000 | [diff] [blame] | 391 | # ubuntu repos is often quite old. |
Dylan Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 392 | - if test "x$BUILD" = xmeson; then |
Eric Engestrom | 3824c8e | 2018-07-17 15:12:32 +0100 | [diff] [blame] | 393 | pip3 install --user meson; |
Eric Engestrom | f976d22 | 2018-08-13 12:10:38 +0100 | [diff] [blame] | 394 | pip3 install --user mako; |
| 395 | fi |
| 396 | |
| 397 | # Install autotools build dependencies |
| 398 | - if test "x$BUILD" = xmake; then |
Emil Velikov | 4428eed | 2018-10-31 21:54:49 +0000 | [diff] [blame] | 399 | pip2 install --user mako; |
Dylan Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 400 | fi |
| 401 | |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 402 | # Install dependencies where we require specific versions (or where |
| 403 | # disallowed by Travis CI's package whitelisting). |
| 404 | |
Eric Engestrom | b3aa370 | 2019-03-08 11:16:25 +0000 | [diff] [blame^] | 405 | - | |
| 406 | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then |
| 407 | wget $XORG_RELEASES/util/$XORGMACROS_VERSION.tar.bz2 |
| 408 | tar -jxvf $XORGMACROS_VERSION.tar.bz2 |
| 409 | (cd $XORGMACROS_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 410 | |
| 411 | wget $XORG_RELEASES/proto/$GLPROTO_VERSION.tar.bz2 |
| 412 | tar -jxvf $GLPROTO_VERSION.tar.bz2 |
| 413 | (cd $GLPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 414 | |
| 415 | wget $XORG_RELEASES/proto/$DRI2PROTO_VERSION.tar.bz2 |
| 416 | tar -jxvf $DRI2PROTO_VERSION.tar.bz2 |
| 417 | (cd $DRI2PROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 418 | |
| 419 | wget $XCB_RELEASES/$XCBPROTO_VERSION.tar.bz2 |
| 420 | tar -jxvf $XCBPROTO_VERSION.tar.bz2 |
| 421 | (cd $XCBPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 422 | |
| 423 | wget $XCB_RELEASES/$LIBXCB_VERSION.tar.bz2 |
| 424 | tar -jxvf $LIBXCB_VERSION.tar.bz2 |
| 425 | (cd $LIBXCB_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 426 | |
| 427 | wget $XORG_RELEASES/lib/$LIBPCIACCESS_VERSION.tar.bz2 |
| 428 | tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2 |
| 429 | (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 430 | |
| 431 | wget https://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2 |
| 432 | tar -jxvf $LIBDRM_VERSION.tar.bz2 |
| 433 | (cd $LIBDRM_VERSION && ./configure --prefix=$HOME/prefix --enable-vc4 --enable-freedreno --enable-etnaviv-experimental-api && make install) |
| 434 | |
| 435 | wget $XORG_RELEASES/proto/$RANDRPROTO_VERSION.tar.bz2 |
| 436 | tar -jxvf $RANDRPROTO_VERSION.tar.bz2 |
| 437 | (cd $RANDRPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 438 | |
| 439 | wget $XORG_RELEASES/lib/$LIBXRANDR_VERSION.tar.bz2 |
| 440 | tar -jxvf $LIBXRANDR_VERSION.tar.bz2 |
| 441 | (cd $LIBXRANDR_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 442 | |
| 443 | wget $XORG_RELEASES/lib/$LIBXSHMFENCE_VERSION.tar.bz2 |
| 444 | tar -jxvf $LIBXSHMFENCE_VERSION.tar.bz2 |
| 445 | (cd $LIBXSHMFENCE_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 446 | |
| 447 | wget https://people.freedesktop.org/~aplattner/vdpau/$LIBVDPAU_VERSION.tar.bz2 |
| 448 | tar -jxvf $LIBVDPAU_VERSION.tar.bz2 |
| 449 | (cd $LIBVDPAU_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 450 | |
| 451 | wget https://www.freedesktop.org/software/vaapi/releases/libva/$LIBVA_VERSION.tar.bz2 |
| 452 | tar -jxvf $LIBVA_VERSION.tar.bz2 |
| 453 | (cd $LIBVA_VERSION && ./configure --prefix=$HOME/prefix --disable-wayland --disable-dummy-driver && make install) |
| 454 | |
| 455 | wget $WAYLAND_RELEASES/$LIBWAYLAND_VERSION.tar.xz |
| 456 | tar -axvf $LIBWAYLAND_VERSION.tar.xz |
| 457 | (cd $LIBWAYLAND_VERSION && ./configure --prefix=$HOME/prefix --enable-libraries --without-host-scanner --disable-documentation --disable-dtd-validation && make install) |
| 458 | |
| 459 | wget $WAYLAND_RELEASES/$WAYLAND_PROTOCOLS_VERSION.tar.xz |
| 460 | tar -axvf $WAYLAND_PROTOCOLS_VERSION.tar.xz |
| 461 | (cd $WAYLAND_PROTOCOLS_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 462 | |
| 463 | # Meson requires ninja >= 1.6, but xenial has 1.3.x |
| 464 | wget https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-linux.zip |
| 465 | unzip ninja-linux.zip |
| 466 | mv ninja $HOME/prefix/bin/ |
| 467 | |
| 468 | # Generate this header since one is missing on the Travis instance |
| 469 | mkdir -p linux |
| 470 | printf "%s\n" \ |
| 471 | "#ifndef _LINUX_MEMFD_H" \ |
| 472 | "#define _LINUX_MEMFD_H" \ |
| 473 | "" \ |
| 474 | "#define MFD_CLOEXEC 0x0001U" \ |
| 475 | "#define MFD_ALLOW_SEALING 0x0002U" \ |
| 476 | "" \ |
| 477 | "#endif /* _LINUX_MEMFD_H */" > linux/memfd.h |
| 478 | |
| 479 | # Generate this header, including the missing SYS_memfd_create |
| 480 | # macro, which is not provided by the header in the Travis |
| 481 | # instance |
| 482 | mkdir -p sys |
| 483 | printf "%s\n" \ |
| 484 | "#ifndef _SYSCALL_H" \ |
| 485 | "#define _SYSCALL_H 1" \ |
| 486 | "" \ |
| 487 | "#include <asm/unistd.h>" \ |
| 488 | "" \ |
| 489 | "#ifndef _LIBC" \ |
| 490 | "# include <bits/syscall.h>" \ |
| 491 | "#endif" \ |
| 492 | "" \ |
| 493 | "#ifndef __NR_memfd_create" \ |
| 494 | "# define __NR_memfd_create 319 /* Taken from <asm/unistd_64.h> */" \ |
| 495 | "#endif" \ |
| 496 | "" \ |
| 497 | "#ifndef SYS_memfd_create" \ |
| 498 | "# define SYS_memfd_create __NR_memfd_create" \ |
| 499 | "#endif" \ |
| 500 | "" \ |
| 501 | "#endif" > sys/syscall.h |
| 502 | fi |
| 503 | |
Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 504 | script: |
Eric Anholt | 18f8da7 | 2015-12-01 11:57:49 -0800 | [diff] [blame] | 505 | - if test "x$BUILD" = xmake; then |
Eric Engestrom | d246aa3 | 2017-10-04 13:54:14 +0100 | [diff] [blame] | 506 | export CFLAGS="$CFLAGS -isystem`pwd`"; |
Eric Engestrom | 08b70e1 | 2019-03-08 15:33:39 +0000 | [diff] [blame] | 507 | export MAKEFLAGS="-j4"; |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 508 | |
Eric Anholt | 3db39d84 | 2018-06-05 08:18:51 -0700 | [diff] [blame] | 509 | mkdir build && |
| 510 | cd build && |
Eric Engestrom | 41a0c00 | 2019-01-21 10:03:37 +0000 | [diff] [blame] | 511 | ../autogen.sh |
| 512 | --enable-autotools |
| 513 | --enable-debug |
Eric Engestrom | b3aa370 | 2019-03-08 11:16:25 +0000 | [diff] [blame^] | 514 | $LIBUNWIND_FLAGS |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 515 | $DRI_LOADERS |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 516 | --with-dri-drivers=$DRI_DRIVERS |
Eric Engestrom | b3aa370 | 2019-03-08 11:16:25 +0000 | [diff] [blame^] | 517 | $GALLIUM_ST |
Emil Velikov | 8479fd8 | 2017-04-06 18:01:19 +0100 | [diff] [blame] | 518 | --with-gallium-drivers=$GALLIUM_DRIVERS |
| 519 | --with-vulkan-drivers=$VULKAN_DRIVERS |
Eric Anholt | 78ab62b | 2016-08-18 14:10:57 -0700 | [diff] [blame] | 520 | --disable-llvm-shared-libs |
Emil Velikov | 7e2af37 | 2017-04-07 12:13:56 +0100 | [diff] [blame] | 521 | && |
Eric Engestrom | b3aa370 | 2019-03-08 11:16:25 +0000 | [diff] [blame^] | 522 | make && eval $MAKE_CHECK_COMMAND; |
Emil Velikov | abcfea2 | 2017-04-06 14:23:36 +0100 | [diff] [blame] | 523 | fi |
| 524 | |
Andres Gomez | b5b912d | 2018-02-28 23:18:59 +0200 | [diff] [blame] | 525 | - | |
| 526 | if test "x$BUILD" = xmeson; then |
Eric Engestrom | e12b0b5 | 2019-01-02 12:28:48 +0000 | [diff] [blame] | 527 | if test -n "$LLVM_CONFIG"; then |
| 528 | # We need to control the version of llvm-config we're using, so we'll |
| 529 | # generate a native file to do so. This requires meson >=0.49 |
| 530 | # |
| 531 | echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file |
Andres Gomez | b5b912d | 2018-02-28 23:18:59 +0200 | [diff] [blame] | 532 | |
Eric Engestrom | e12b0b5 | 2019-01-02 12:28:48 +0000 | [diff] [blame] | 533 | $LLVM_CONFIG --version |
| 534 | else |
| 535 | : > native.file |
| 536 | fi |
Emil Velikov | 81173fd | 2018-12-13 10:38:20 +0000 | [diff] [blame] | 537 | |
Andres Gomez | b5b912d | 2018-02-28 23:18:59 +0200 | [diff] [blame] | 538 | export CFLAGS="$CFLAGS -isystem`pwd`" |
Emil Velikov | 51318c3 | 2018-12-12 13:42:36 +0000 | [diff] [blame] | 539 | meson _build \ |
Dylan Baker | 31c162a | 2018-12-11 10:34:51 -0800 | [diff] [blame] | 540 | --native-file=native.file \ |
Emil Velikov | 266ae22 | 2018-12-12 13:18:54 +0000 | [diff] [blame] | 541 | -Dbuild-tests=true \ |
Emil Velikov | 51318c3 | 2018-12-12 13:42:36 +0000 | [diff] [blame] | 542 | ${DRI_LOADERS} \ |
Emil Velikov | 266ae22 | 2018-12-12 13:18:54 +0000 | [diff] [blame] | 543 | -Ddri-drivers=${DRI_DRIVERS:-[]} \ |
| 544 | -Dgallium-drivers=${GALLIUM_DRIVERS:-[]} \ |
| 545 | -Dvulkan-drivers=${VULKAN_DRIVERS:-[]} |
Emil Velikov | de72c1f | 2018-12-12 17:43:07 +0000 | [diff] [blame] | 546 | meson configure _build |
Andres Gomez | b5b912d | 2018-02-28 23:18:59 +0200 | [diff] [blame] | 547 | ninja -C _build |
Dylan Baker | 31c162a | 2018-12-11 10:34:51 -0800 | [diff] [blame] | 548 | ninja -C _build test |
Dylan Baker | df82012 | 2017-09-27 10:37:28 -0700 | [diff] [blame] | 549 | fi |