travis: drop unneeded x11proto-xf86vidmode-dev
[mesa.git] / .travis.yml
1 language: c
2
3 sudo: false
4 dist: trusty
5
6 cache:
7 apt: true
8 ccache: true
9
10 env:
11 global:
12 - XORG_RELEASES=https://xorg.freedesktop.org/releases/individual
13 - XCB_RELEASES=https://xcb.freedesktop.org/dist
14 - WAYLAND_RELEASES=https://wayland.freedesktop.org/releases
15 - XORGMACROS_VERSION=util-macros-1.19.0
16 - GLPROTO_VERSION=glproto-1.4.17
17 - DRI2PROTO_VERSION=dri2proto-2.8
18 - LIBPCIACCESS_VERSION=libpciaccess-0.13.4
19 - LIBDRM_VERSION=libdrm-2.4.74
20 - XCBPROTO_VERSION=xcb-proto-1.13
21 - RANDRPROTO_VERSION=randrproto-1.3.0
22 - LIBXRANDR_VERSION=libXrandr-1.3.0
23 - LIBXCB_VERSION=libxcb-1.13
24 - LIBXSHMFENCE_VERSION=libxshmfence-1.2
25 - LIBVDPAU_VERSION=libvdpau-1.1
26 - LIBVA_VERSION=libva-1.7.0
27 - LIBWAYLAND_VERSION=wayland-1.15.0
28 - WAYLAND_PROTOCOLS_VERSION=wayland-protocols-1.8
29 - PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig:$HOME/prefix/share/pkgconfig
30 - LD_LIBRARY_PATH="$HOME/prefix/lib:$LD_LIBRARY_PATH"
31 - PATH="$HOME/prefix/bin:$PATH"
32
33 matrix:
34 include:
35 - env:
36 - LABEL="meson Vulkan"
37 - BUILD=meson
38 - DRI_DRIVERS=""
39 - GALLIUM_DRIVERS=""
40 - VULKAN_DRIVERS="intel,amd"
41 - LLVM_VERSION=6.0
42 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
43 addons:
44 apt:
45 sources:
46 - llvm-toolchain-trusty-6.0
47 # llvm-6 requires libstdc++4.9 which is not in main repo
48 - ubuntu-toolchain-r-test
49 packages:
50 # From sources above
51 - llvm-6.0-dev
52 # Common
53 - xz-utils
54 - libexpat1-dev
55 - libelf-dev
56 - python3.5
57 - python3-pip
58 - env:
59 - LABEL="meson loaders/classic DRI"
60 - BUILD=meson
61 - DRI_DRIVERS="i915,i965,r100,r200,swrast,nouveau"
62 - GALLIUM_DRIVERS=""
63 - VULKAN_DRIVERS=""
64 addons:
65 apt:
66 packages:
67 - xz-utils
68 - x11proto-xf86vidmode-dev
69 - libexpat1-dev
70 - libx11-xcb-dev
71 - libxdamage-dev
72 - libxfixes-dev
73 - python3.5
74 - python3-pip
75 - env:
76 - LABEL="make loaders/classic DRI"
77 - BUILD=make
78 - MAKEFLAGS="-j4"
79 - MAKE_CHECK_COMMAND="make check"
80 - DRI_LOADERS="--enable-glx --enable-gbm --enable-egl --with-platforms=x11,drm,surfaceless,wayland --enable-osmesa"
81 - DRI_DRIVERS="i915,i965,radeon,r200,swrast,nouveau"
82 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
83 - GALLIUM_DRIVERS=""
84 - VULKAN_DRIVERS=""
85 - LIBUNWIND_FLAGS="--disable-libunwind"
86 addons:
87 apt:
88 packages:
89 - xz-utils
90 - x11proto-xf86vidmode-dev
91 - libexpat1-dev
92 - libx11-xcb-dev
93 - libxdamage-dev
94 - libxfixes-dev
95 - python3-pip
96 - env:
97 # NOTE: Building SWR is 2x (yes two) times slower than all the other
98 # gallium drivers combined.
99 # Start this early so that it doesn't hunder the run time.
100 - LABEL="make Gallium Drivers SWR"
101 - BUILD=make
102 - MAKEFLAGS="-j4"
103 - MAKE_CHECK_COMMAND="true"
104 - LLVM_VERSION=6.0
105 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
106 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
107 - DRI_DRIVERS=""
108 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
109 - GALLIUM_DRIVERS="swr"
110 - VULKAN_DRIVERS=""
111 - LIBUNWIND_FLAGS="--enable-libunwind"
112 addons:
113 apt:
114 sources:
115 - llvm-toolchain-trusty-6.0
116 # llvm-6 requires libstdc++4.9 which is not in main repo
117 - ubuntu-toolchain-r-test
118 packages:
119 # From sources above
120 - llvm-6.0-dev
121 # Common
122 - xz-utils
123 - libexpat1-dev
124 - libx11-xcb-dev
125 - libelf-dev
126 - libunwind8-dev
127 - python3-pip
128 - env:
129 - LABEL="make Gallium Drivers RadeonSI"
130 - BUILD=make
131 - MAKEFLAGS="-j4"
132 - MAKE_CHECK_COMMAND="true"
133 - LLVM_VERSION=6.0
134 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
135 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
136 - DRI_DRIVERS=""
137 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
138 - GALLIUM_DRIVERS="radeonsi"
139 - VULKAN_DRIVERS=""
140 - LIBUNWIND_FLAGS="--enable-libunwind"
141 addons:
142 apt:
143 sources:
144 - llvm-toolchain-trusty-6.0
145 # llvm-6 requires libstdc++4.9 which is not in main repo
146 - ubuntu-toolchain-r-test
147 packages:
148 # From sources above
149 - llvm-6.0-dev
150 # Common
151 - xz-utils
152 - libexpat1-dev
153 - libx11-xcb-dev
154 - libelf-dev
155 - libunwind8-dev
156 - python3-pip
157 - env:
158 - LABEL="make Gallium Drivers Other"
159 - BUILD=make
160 - MAKEFLAGS="-j4"
161 - MAKE_CHECK_COMMAND="true"
162 - LLVM_VERSION=3.9
163 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
164 # New binutils linker is required for llvm-3.9
165 - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin
166 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
167 - DRI_DRIVERS=""
168 - GALLIUM_ST="--enable-dri --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
169 - GALLIUM_DRIVERS="i915,nouveau,pl111,r300,r600,freedreno,svga,swrast,v3d,vc4,virgl,etnaviv,imx"
170 - VULKAN_DRIVERS=""
171 - LIBUNWIND_FLAGS="--enable-libunwind"
172 addons:
173 apt:
174 sources:
175 - llvm-toolchain-trusty-3.9
176 packages:
177 - binutils-2.26
178 # LLVM packaging is broken and misses these dependencies
179 - libedit-dev
180 # From sources above
181 - llvm-3.9-dev
182 # Common
183 - xz-utils
184 - libexpat1-dev
185 - libx11-xcb-dev
186 - libelf-dev
187 - libunwind8-dev
188 - python3-pip
189 - env:
190 - LABEL="make Gallium ST Clover LLVM-3.9"
191 - BUILD=make
192 - MAKEFLAGS="-j4"
193 - MAKE_CHECK_COMMAND="true"
194 - LLVM_VERSION=3.9
195 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
196 - OVERRIDE_CC=gcc-4.7
197 - OVERRIDE_CXX=g++-4.7
198 # New binutils linker is required for llvm-3.9
199 - OVERRIDE_PATH=/usr/lib/binutils-2.26/bin
200 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
201 - DRI_DRIVERS=""
202 - 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"
203 - GALLIUM_DRIVERS="r600"
204 - VULKAN_DRIVERS=""
205 - LIBUNWIND_FLAGS="--enable-libunwind"
206 addons:
207 apt:
208 sources:
209 - llvm-toolchain-trusty-3.9
210 packages:
211 - binutils-2.26
212 - libclc-dev
213 # LLVM packaging is broken and misses these dependencies
214 - libedit-dev
215 - g++-4.7
216 # From sources above
217 - llvm-3.9-dev
218 - clang-3.9
219 - libclang-3.9-dev
220 # Common
221 - xz-utils
222 - libexpat1-dev
223 - libx11-xcb-dev
224 - libelf-dev
225 - libunwind8-dev
226 - python3-pip
227 - env:
228 - LABEL="make Gallium ST Clover LLVM-4.0"
229 - BUILD=make
230 - MAKEFLAGS="-j4"
231 - MAKE_CHECK_COMMAND="true"
232 - LLVM_VERSION=4.0
233 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
234 - OVERRIDE_CC=gcc-4.8
235 - OVERRIDE_CXX=g++-4.8
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 sources:
245 - llvm-toolchain-trusty-4.0
246 packages:
247 - libclc-dev
248 # LLVM packaging is broken and misses these dependencies
249 - libedit-dev
250 - g++-4.8
251 # From sources above
252 - llvm-4.0-dev
253 - clang-4.0
254 - libclang-4.0-dev
255 # Common
256 - xz-utils
257 - libexpat1-dev
258 - libx11-xcb-dev
259 - libelf-dev
260 - libunwind8-dev
261 - python3-pip
262 - env:
263 - LABEL="make Gallium ST Clover LLVM-5.0"
264 - BUILD=make
265 - MAKEFLAGS="-j4"
266 - MAKE_CHECK_COMMAND="true"
267 - LLVM_VERSION=5.0
268 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
269 - OVERRIDE_CC=gcc-4.8
270 - OVERRIDE_CXX=g++-4.8
271 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
272 - DRI_DRIVERS=""
273 - 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"
274 - GALLIUM_DRIVERS="r600"
275 - VULKAN_DRIVERS=""
276 - LIBUNWIND_FLAGS="--enable-libunwind"
277 addons:
278 apt:
279 sources:
280 - llvm-toolchain-trusty-5.0
281 packages:
282 - libclc-dev
283 # LLVM packaging is broken and misses these dependencies
284 - libedit-dev
285 - g++-4.8
286 # From sources above
287 - llvm-5.0-dev
288 - clang-5.0
289 - libclang-5.0-dev
290 # Common
291 - xz-utils
292 - libexpat1-dev
293 - libx11-xcb-dev
294 - libelf-dev
295 - libunwind8-dev
296 - python3-pip
297 - env:
298 - LABEL="make Gallium ST Clover LLVM-6.0"
299 - BUILD=make
300 - MAKEFLAGS="-j4"
301 - MAKE_CHECK_COMMAND="true"
302 - LLVM_VERSION=6.0
303 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
304 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
305 - DRI_DRIVERS=""
306 - 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"
307 - GALLIUM_DRIVERS="r600,radeonsi"
308 - VULKAN_DRIVERS=""
309 - LIBUNWIND_FLAGS="--enable-libunwind"
310 addons:
311 apt:
312 sources:
313 - llvm-toolchain-trusty-6.0
314 # llvm-6 requires libstdc++4.9 which is not in main repo
315 - ubuntu-toolchain-r-test
316 packages:
317 - libclc-dev
318 # From sources above
319 - llvm-6.0-dev
320 - clang-6.0
321 - libclang-6.0-dev
322 # Common
323 - xz-utils
324 - libexpat1-dev
325 - libx11-xcb-dev
326 - libelf-dev
327 - libunwind8-dev
328 - python3-pip
329 - env:
330 - LABEL="make Gallium ST Clover LLVM-7"
331 - BUILD=make
332 - MAKEFLAGS="-j4"
333 - MAKE_CHECK_COMMAND="true"
334 - LLVM_VERSION=7
335 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
336 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
337 - DRI_DRIVERS=""
338 - 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"
339 - GALLIUM_DRIVERS="r600,radeonsi"
340 - VULKAN_DRIVERS=""
341 - LIBUNWIND_FLAGS="--enable-libunwind"
342 addons:
343 apt:
344 sources:
345 - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
346 key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
347 # llvm-7 requires libstdc++4.9 which is not in main repo
348 - ubuntu-toolchain-r-test
349 packages:
350 - libclc-dev
351 # From sources above
352 - llvm-7-dev
353 - clang-7
354 - libclang-7-dev
355 # Common
356 - xz-utils
357 - libexpat1-dev
358 - libx11-xcb-dev
359 - libelf-dev
360 - libunwind8-dev
361 - env:
362 - LABEL="make Gallium ST Other"
363 - BUILD=make
364 - MAKEFLAGS="-j4"
365 - MAKE_CHECK_COMMAND="true"
366 - LLVM_VERSION=3.3
367 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
368 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl"
369 - DRI_DRIVERS=""
370 - GALLIUM_ST="--enable-dri --disable-opencl --enable-xa --enable-nine --enable-xvmc --enable-vdpau --enable-va --enable-omx-bellagio --enable-gallium-osmesa"
371 # We need swrast for osmesa and nine.
372 # i915 most likely doesn't work with most ST.
373 # Regardless - we're doing a quick build test here.
374 - GALLIUM_DRIVERS="i915,swrast"
375 - VULKAN_DRIVERS=""
376 - LIBUNWIND_FLAGS="--enable-libunwind"
377 addons:
378 apt:
379 packages:
380 # We actually want to test against llvm-3.3
381 - llvm-3.3-dev
382 # Nine requires gcc 4.6... which is the one we have right ?
383 - libxvmc-dev
384 # Build locally, for now.
385 #- libvdpau-dev
386 #- libva-dev
387 - libomxil-bellagio-dev
388 # LLVM packaging is broken and misses these dependencies
389 - libedit-dev
390 # Common
391 - xz-utils
392 - libexpat1-dev
393 - libx11-xcb-dev
394 - libelf-dev
395 - libunwind8-dev
396 - python3-pip
397 - env:
398 - LABEL="make Vulkan"
399 - BUILD=make
400 - MAKEFLAGS="-j4"
401 - MAKE_CHECK_COMMAND="make -C src/gtest check && make -C src/intel check"
402 - LLVM_VERSION=6.0
403 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
404 - DRI_LOADERS="--disable-glx --disable-gbm --disable-egl --with-platforms=x11,wayland"
405 - DRI_DRIVERS=""
406 - GALLIUM_ST="--enable-dri --enable-dri3 --disable-opencl --disable-xa --disable-nine --disable-xvmc --disable-vdpau --disable-va --disable-omx-bellagio --disable-gallium-osmesa"
407 - GALLIUM_DRIVERS=""
408 - VULKAN_DRIVERS="intel,radeon"
409 - LIBUNWIND_FLAGS="--disable-libunwind"
410 addons:
411 apt:
412 sources:
413 - llvm-toolchain-trusty-6.0
414 # llvm-6 requires libstdc++4.9 which is not in main repo
415 - ubuntu-toolchain-r-test
416 packages:
417 # From sources above
418 - llvm-6.0-dev
419 # Common
420 - xz-utils
421 - libexpat1-dev
422 - libx11-xcb-dev
423 - libelf-dev
424 - python3-pip
425 - env:
426 - LABEL="scons"
427 - BUILD=scons
428 - SCONSFLAGS="-j4"
429 # Explicitly disable.
430 - SCONS_TARGET="llvm=0"
431 # Keep it symmetrical to the make build.
432 - SCONS_CHECK_COMMAND="scons llvm=0 check"
433 addons:
434 apt:
435 packages:
436 # Common
437 - xz-utils
438 - x11proto-xf86vidmode-dev
439 - libexpat1-dev
440 - libx11-xcb-dev
441 - libelf-dev
442 - env:
443 - LABEL="scons LLVM"
444 - BUILD=scons
445 - SCONSFLAGS="-j4"
446 - SCONS_TARGET="llvm=1"
447 # Keep it symmetrical to the make build.
448 - SCONS_CHECK_COMMAND="scons llvm=1 check"
449 - LLVM_VERSION=3.3
450 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
451 addons:
452 apt:
453 packages:
454 # LLVM packaging is broken and misses these dependencies
455 - libedit-dev
456 - llvm-3.3-dev
457 # Common
458 - xz-utils
459 - x11proto-xf86vidmode-dev
460 - libexpat1-dev
461 - libx11-xcb-dev
462 - libelf-dev
463 - env:
464 - LABEL="scons SWR"
465 - BUILD=scons
466 - SCONSFLAGS="-j4"
467 - SCONS_TARGET="swr=1"
468 - LLVM_VERSION=6.0
469 - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
470 # Keep it symmetrical to the make build. There's no actual SWR, yet.
471 - SCONS_CHECK_COMMAND="true"
472 addons:
473 apt:
474 sources:
475 - llvm-toolchain-trusty-6.0
476 # llvm-6 requires libstdc++4.9 which is not in main repo
477 - ubuntu-toolchain-r-test
478 packages:
479 # From sources above
480 - llvm-6.0-dev
481 # Common
482 - xz-utils
483 - x11proto-xf86vidmode-dev
484 - libexpat1-dev
485 - libx11-xcb-dev
486 - libelf-dev
487 - env:
488 - LABEL="macOS make"
489 - BUILD=make
490 - MAKEFLAGS="-j4"
491 - MAKE_CHECK_COMMAND="make check"
492 - DRI_LOADERS="--with-platforms=x11 --disable-egl"
493 os: osx
494 - env:
495 - LABEL="macOS meson"
496 - BUILD=meson
497 os: osx
498
499 before_install:
500 - |
501 if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
502 HOMEBREW_NO_AUTO_UPDATE=1 brew install python3 ninja expat gettext
503 # Set PATH for homebrew pip3 installs
504 PATH="$HOME/Library/Python/3.6/bin:${PATH}"
505 # Set PKG_CONFIG_PATH for keg-only expat
506 PKG_CONFIG_PATH="/usr/local/opt/expat/lib/pkgconfig:${PKG_CONFIG_PATH}"
507 # Set PATH for keg-only gettext
508 PATH="/usr/local/opt/gettext/bin:${PATH}"
509
510 # Install xquartz for prereqs ...
511 XQUARTZ_VERSION="2.7.11"
512 wget -nv https://dl.bintray.com/xquartz/downloads/XQuartz-${XQUARTZ_VERSION}.dmg
513 hdiutil attach XQuartz-${XQUARTZ_VERSION}.dmg
514 sudo installer -pkg /Volumes/XQuartz-${XQUARTZ_VERSION}/XQuartz.pkg -target /
515 hdiutil detach /Volumes/XQuartz-${XQUARTZ_VERSION}
516 # ... and set paths
517 PATH="/opt/X11/bin:${PATH}"
518 PKG_CONFIG_PATH="/opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:${PKG_CONFIG_PATH}"
519 ACLOCAL="aclocal -I /opt/X11/share/aclocal -I /usr/local/share/aclocal"
520 fi
521
522 install:
523 # Install a more modern meson from pip, since the version in the
524 # ubuntu repos is often quite old. This requires python>=3.5, so
525 # let's make it default
526 - if test "x$BUILD" = xmeson; then
527 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 10;
528 pip3 install --user meson;
529 pip3 install --user mako;
530 fi
531
532 # Install autotools build dependencies
533 - if test "x$BUILD" = xmake; then
534 pip2 install --user mako;
535 fi
536
537 # Install a more modern scons from pip.
538 - if test "x$BUILD" = xscons; then
539 pip2 install --user "scons>=2.4";
540 pip2 install --user mako;
541 fi
542
543 # Since libdrm gets updated in configure.ac regularly, try to pick up the
544 # latest version from there.
545 - for line in `grep "^LIBDRM.*_REQUIRED=" configure.ac`; do
546 old_ver=`echo $LIBDRM_VERSION | sed 's/libdrm-//'`;
547 new_ver=`echo $line | sed 's/.*REQUIRED=//'`;
548 if `echo "$old_ver,$new_ver" | tr ',' '\n' | sort -Vc 2> /dev/null`; then
549 export LIBDRM_VERSION="libdrm-$new_ver";
550 fi;
551 done
552
553 # Install dependencies where we require specific versions (or where
554 # disallowed by Travis CI's package whitelisting).
555
556 - |
557 if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
558 wget $XORG_RELEASES/util/$XORGMACROS_VERSION.tar.bz2
559 tar -jxvf $XORGMACROS_VERSION.tar.bz2
560 (cd $XORGMACROS_VERSION && ./configure --prefix=$HOME/prefix && make install)
561
562 wget $XORG_RELEASES/proto/$GLPROTO_VERSION.tar.bz2
563 tar -jxvf $GLPROTO_VERSION.tar.bz2
564 (cd $GLPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
565
566 wget $XORG_RELEASES/proto/$DRI2PROTO_VERSION.tar.bz2
567 tar -jxvf $DRI2PROTO_VERSION.tar.bz2
568 (cd $DRI2PROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
569
570 wget $XCB_RELEASES/$XCBPROTO_VERSION.tar.bz2
571 tar -jxvf $XCBPROTO_VERSION.tar.bz2
572 (cd $XCBPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
573
574 wget $XCB_RELEASES/$LIBXCB_VERSION.tar.bz2
575 tar -jxvf $LIBXCB_VERSION.tar.bz2
576 (cd $LIBXCB_VERSION && ./configure --prefix=$HOME/prefix && make install)
577
578 wget $XORG_RELEASES/lib/$LIBPCIACCESS_VERSION.tar.bz2
579 tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2
580 (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install)
581
582 wget https://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2
583 tar -jxvf $LIBDRM_VERSION.tar.bz2
584 (cd $LIBDRM_VERSION && ./configure --prefix=$HOME/prefix --enable-vc4 --enable-freedreno --enable-etnaviv-experimental-api && make install)
585
586 wget $XORG_RELEASES/proto/$RANDRPROTO_VERSION.tar.bz2
587 tar -jxvf $RANDRPROTO_VERSION.tar.bz2
588 (cd $RANDRPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install)
589
590 wget $XORG_RELEASES/lib/$LIBXRANDR_VERSION.tar.bz2
591 tar -jxvf $LIBXRANDR_VERSION.tar.bz2
592 (cd $LIBXRANDR_VERSION && ./configure --prefix=$HOME/prefix && make install)
593
594 wget $XORG_RELEASES/lib/$LIBXSHMFENCE_VERSION.tar.bz2
595 tar -jxvf $LIBXSHMFENCE_VERSION.tar.bz2
596 (cd $LIBXSHMFENCE_VERSION && ./configure --prefix=$HOME/prefix && make install)
597
598 wget https://people.freedesktop.org/~aplattner/vdpau/$LIBVDPAU_VERSION.tar.bz2
599 tar -jxvf $LIBVDPAU_VERSION.tar.bz2
600 (cd $LIBVDPAU_VERSION && ./configure --prefix=$HOME/prefix && make install)
601
602 wget https://www.freedesktop.org/software/vaapi/releases/libva/$LIBVA_VERSION.tar.bz2
603 tar -jxvf $LIBVA_VERSION.tar.bz2
604 (cd $LIBVA_VERSION && ./configure --prefix=$HOME/prefix --disable-wayland --disable-dummy-driver && make install)
605
606 wget $WAYLAND_RELEASES/$LIBWAYLAND_VERSION.tar.xz
607 tar -axvf $LIBWAYLAND_VERSION.tar.xz
608 (cd $LIBWAYLAND_VERSION && ./configure --prefix=$HOME/prefix --enable-libraries --without-host-scanner --disable-documentation --disable-dtd-validation && make install)
609
610 wget $WAYLAND_RELEASES/$WAYLAND_PROTOCOLS_VERSION.tar.xz
611 tar -axvf $WAYLAND_PROTOCOLS_VERSION.tar.xz
612 (cd $WAYLAND_PROTOCOLS_VERSION && ./configure --prefix=$HOME/prefix && make install)
613
614 # Meson requires ninja >= 1.6, but trusty has 1.3.x
615 wget https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-linux.zip
616 unzip ninja-linux.zip
617 mv ninja $HOME/prefix/bin/
618
619 # Generate this header since one is missing on the Travis instance
620 mkdir -p linux
621 printf "%s\n" \
622 "#ifndef _LINUX_MEMFD_H" \
623 "#define _LINUX_MEMFD_H" \
624 "" \
625 "#define MFD_CLOEXEC 0x0001U" \
626 "#define MFD_ALLOW_SEALING 0x0002U" \
627 "" \
628 "#endif /* _LINUX_MEMFD_H */" > linux/memfd.h
629
630 # Generate this header, including the missing SYS_memfd_create
631 # macro, which is not provided by the header in the Travis
632 # instance
633 mkdir -p sys
634 printf "%s\n" \
635 "#ifndef _SYSCALL_H" \
636 "#define _SYSCALL_H 1" \
637 "" \
638 "#include <asm/unistd.h>" \
639 "" \
640 "#ifndef _LIBC" \
641 "# include <bits/syscall.h>" \
642 "#endif" \
643 "" \
644 "#ifndef __NR_memfd_create" \
645 "# define __NR_memfd_create 319 /* Taken from <asm/unistd_64.h> */" \
646 "#endif" \
647 "" \
648 "#ifndef SYS_memfd_create" \
649 "# define SYS_memfd_create __NR_memfd_create" \
650 "#endif" \
651 "" \
652 "#endif" > sys/syscall.h
653 fi
654
655 script:
656 - if test "x$BUILD" = xmake; then
657 test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC";
658 test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX";
659 test -n "$OVERRIDE_PATH" && export PATH="$OVERRIDE_PATH:$PATH";
660
661 export CFLAGS="$CFLAGS -isystem`pwd`";
662
663 mkdir build &&
664 cd build &&
665 ../autogen.sh --enable-debug
666 $LIBUNWIND_FLAGS
667 $DRI_LOADERS
668 --with-dri-drivers=$DRI_DRIVERS
669 $GALLIUM_ST
670 --with-gallium-drivers=$GALLIUM_DRIVERS
671 --with-vulkan-drivers=$VULKAN_DRIVERS
672 --disable-llvm-shared-libs
673 &&
674 make && eval $MAKE_CHECK_COMMAND;
675 fi
676
677 - if test "x$BUILD" = xscons; then
678 test -n "$OVERRIDE_CC" && export CC="$OVERRIDE_CC";
679 test -n "$OVERRIDE_CXX" && export CXX="$OVERRIDE_CXX";
680 scons $SCONS_TARGET && eval $SCONS_CHECK_COMMAND;
681 fi
682
683 - |
684 if test "x$BUILD" = xmeson; then
685
686 if test "x$TRAVIS_OS_NAME" == xosx; then
687 MESON_OPTIONS="-Degl=false"
688 fi
689
690 if test "x$TRAVIS_OS_NAME" == xlinux; then
691 MESON_OPTIONS="-Ddri-drivers=${DRI_DRIVERS:-[]} -Dgallium-drivers=${GALLIUM_DRIVERS:-[]} -Dvulkan-drivers=${VULKAN_DRIVERS:-[]}"
692 fi
693
694 # Travis CI has moved to LLVM 5.0, and meson is detecting
695 # automatically the available version in /usr/local/bin based on
696 # the PATH env variable order preference.
697 #
698 # As for 0.44.x, Meson cannot receive the path to the
699 # llvm-config binary as a configuration parameter. See
700 # https://github.com/mesonbuild/meson/issues/2887 and
701 # https://github.com/dcbaker/meson/commit/7c8b6ee3fa42f43c9ac7dcacc61a77eca3f1bcef
702 #
703 # We want to use the custom (APT) installed version. Therefore,
704 # let's make Meson find our wanted version sooner than the one
705 # at /usr/local/bin
706 #
707 # Once this is corrected, we would still need a patch similar
708 # to:
709 # https://lists.freedesktop.org/archives/mesa-dev/2017-December/180217.html
710 test -f /usr/bin/$LLVM_CONFIG && ln -s /usr/bin/$LLVM_CONFIG $HOME/prefix/bin/llvm-config
711
712 export CFLAGS="$CFLAGS -isystem`pwd`"
713 meson _build $MESON_OPTIONS
714 ninja -C _build
715 fi