2020-02-20 12:18:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2021-02-03 21:35:29 +00:00
|
|
|
GFXRECONSTRUCT_VERSION=3738decc2f4f9ff183818e5ab213a75a79fb7ab1
|
2020-02-20 12:18:54 +00:00
|
|
|
|
2021-02-03 21:35:29 +00:00
|
|
|
git clone https://github.com/LunarG/gfxreconstruct.git --single-branch -b master --no-checkout /gfxreconstruct
|
2020-02-20 12:18:54 +00:00
|
|
|
pushd /gfxreconstruct
|
|
|
|
git checkout "$GFXRECONSTRUCT_VERSION"
|
|
|
|
git submodule update --init
|
|
|
|
git submodule update
|
2020-11-09 15:35:46 +00:00
|
|
|
cmake -S . -B _build -G Ninja -DCMAKE_BUILD_TYPE=Release
|
2020-07-01 21:45:08 +01:00
|
|
|
ninja -C _build gfxrecon-replay gfxrecon-info
|
2020-02-20 12:18:54 +00:00
|
|
|
mkdir -p build/bin
|
|
|
|
install _build/tools/replay/gfxrecon-replay build/bin
|
2020-07-01 21:45:08 +01:00
|
|
|
install _build/tools/info/gfxrecon-info build/bin
|
2020-02-20 12:18:54 +00:00
|
|
|
strip build/bin/*
|
|
|
|
find . -not -path './build' -not -path './build/*' -delete
|
|
|
|
popd
|