1#!/usr/bin/env bash 2# shellcheck disable=SC2086 # we want word splitting 3 4# When changing this file, you need to bump the following 5# .gitlab-ci/image-tags.yml tags: 6# DEBIAN_X86_64_TEST_GL_TAG 7# DEBIAN_X86_64_TEST_VK_TAG 8# KERNEL_ROOTFS_TAG 9 10set -ex 11 12APITRACE_VERSION="0a6506433e1f9f7b69757b4e5730326970c4321a" 13 14git clone https://github.com/apitrace/apitrace.git --single-branch --no-checkout /apitrace 15pushd /apitrace 16git checkout "$APITRACE_VERSION" 17git submodule update --init --depth 1 --recursive 18cmake -S . -B _build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_GUI=False -DENABLE_WAFFLE=on $EXTRA_CMAKE_ARGS 19cmake --build _build --parallel --target apitrace eglretrace 20mkdir build 21cp _build/apitrace build 22cp _build/eglretrace build 23${STRIP_CMD:-strip} build/* 24find . -not -path './build' -not -path './build/*' -delete 25popd 26