mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-12 11:44:53 +08:00
93138ef122
Needed to be able to replay traces for performance tracking. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-By: Rohan Garg <rohan.garg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7987>
19 lines
558 B
Bash
19 lines
558 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
APITRACE_VERSION="170424754bb46002ba706e16ee5404b61988d74a"
|
|
|
|
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
|
|
ninja -C _build
|
|
mkdir build
|
|
cp _build/apitrace build
|
|
cp _build/eglretrace build
|
|
${STRIP_CMD:-strip} build/*
|
|
find . -not -path './build' -not -path './build/*' -delete
|
|
popd
|