etnaviv: drm: Use NSEC_PER_SEC
[mesa.git] / .gitlab-ci / build-gfxreconstruct.sh
1 #!/bin/bash
2
3 set -ex
4
5 # https://github.com/LunarG/gfxreconstruct/issues/328
6 GFXRECONSTRUCT_VERSION=b66cd392a84b226cb60ad9d4130ddeb58a1559cb
7
8 git clone https://github.com/LunarG/gfxreconstruct.git --single-branch --no-checkout /gfxreconstruct
9 pushd /gfxreconstruct
10 git checkout "$GFXRECONSTRUCT_VERSION"
11 git submodule update --init
12 git submodule update
13 cmake -G Ninja -B_build -H. -DCMAKE_BUILD_TYPE=Release
14 ninja -C _build gfxrecon-replay
15 mkdir -p build/bin
16 install _build/tools/replay/gfxrecon-replay build/bin
17 strip build/bin/*
18 find . -not -path './build' -not -path './build/*' -delete
19 popd