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