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