drm-shim: Let the driver choose to overwrite the first render node.
[mesa.git] / .gitlab-ci / build-apitrace.sh
1 #!/bin/bash
2
3 set -ex
4
5 # Need an unreleased version of Waffle for surfaceless support in apitrace
6 # Replace this build with the Debian package once that's possible
7
8 WAFFLE_VERSION="e3c995d9a2693b687501715b6550619922346089"
9 git clone https://gitlab.freedesktop.org/mesa/waffle.git --single-branch --no-checkout /waffle
10 pushd /waffle
11 git checkout "$WAFFLE_VERSION"
12 cmake -B_build -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release .
13 make -C _build -j4 install
14 popd
15 rm -rf /waffle
16
17 APITRACE_VERSION="9.0"
18
19 git clone https://github.com/apitrace/apitrace.git --single-branch --no-checkout /apitrace
20 pushd /apitrace
21 git checkout "$APITRACE_VERSION"
22 cmake -G Ninja -B_build -H. -DCMAKE_BUILD_TYPE=Release -DENABLE_GUI=False -DENABLE_WAFFLE=on -DWaffle_DIR=/usr/local/lib/cmake/Waffle/
23 ninja -C _build
24 mkdir build
25 cp _build/apitrace build
26 cp _build/glretrace build
27 cp _build/eglretrace build
28 strip build/*
29 find . -not -path './build' -not -path './build/*' -delete
30 popd