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