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