mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 23:41:13 +00:00
7406d627c8
Builds the renderdoc and apitrace programs so we can replay GL traces on DUTs. [Separated out from 5472's commit that also enabled the jobs in LAVA, dropped unnecessary python packages from arm_build, fixed up arm64_test build, traces-db in baremetal, new commit message by anholt] Signed-off-by: Rohan Garg <rohan.garg@collabora.com> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5433>
18 lines
536 B
Bash
18 lines
536 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
RENDERDOC_VERSION=da02e88201dc3b64316fc33ce6ff69cc729689aa
|
|
|
|
git clone https://github.com/baldurk/renderdoc.git --single-branch --no-checkout /renderdoc
|
|
pushd /renderdoc
|
|
git checkout "$RENDERDOC_VERSION"
|
|
cmake -G Ninja -B_build -H. -DENABLE_QRENDERDOC=false -DCMAKE_BUILD_TYPE=Release $EXTRA_CMAKE_ARGS
|
|
ninja -C _build
|
|
mkdir -p build/lib
|
|
${STRIP_CMD:-strip} _build/lib/*.so
|
|
cp _build/lib/renderdoc.so build/lib
|
|
cp _build/lib/librenderdoc.so build/lib
|
|
find . -not -path './build' -not -path './build/*' -delete
|
|
popd
|