This includes the fixes discovered in https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30417#note_2810243 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34245>
30 lines
902 B
Bash
30 lines
902 B
Bash
#!/usr/bin/env bash
|
|
# shellcheck disable=SC2086 # we want word splitting
|
|
|
|
# When changing this file, you need to bump the following
|
|
# .gitlab-ci/image-tags.yml tags:
|
|
# DEBIAN_TEST_GL_TAG
|
|
# DEBIAN_TEST_VK_TAG
|
|
# KERNEL_ROOTFS_TAG
|
|
|
|
set -uex
|
|
|
|
uncollapsed_section_start apitrace "Building apitrace"
|
|
|
|
APITRACE_VERSION="952bad1469ea747012bdc48c48993bd5f13eec04"
|
|
|
|
git clone https://github.com/apitrace/apitrace.git --single-branch --no-checkout /apitrace
|
|
pushd /apitrace
|
|
git checkout "$APITRACE_VERSION"
|
|
git submodule update --init --depth 1 --recursive
|
|
cmake -S . -B _build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_GUI=False -DENABLE_WAFFLE=on ${EXTRA_CMAKE_ARGS:-}
|
|
cmake --build _build --parallel --target apitrace eglretrace
|
|
mkdir build
|
|
cp _build/apitrace build
|
|
cp _build/eglretrace build
|
|
${STRIP_CMD:-strip} build/*
|
|
find . -not -path './build' -not -path './build/*' -delete
|
|
popd
|
|
|
|
section_end apitrace
|