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