1#!/bin/bash 2 3set -ex 4 5GFXRECONSTRUCT_VERSION=3738decc2f4f9ff183818e5ab213a75a79fb7ab1 6 7git clone https://github.com/LunarG/gfxreconstruct.git --single-branch -b master --no-checkout /gfxreconstruct 8pushd /gfxreconstruct 9git checkout "$GFXRECONSTRUCT_VERSION" 10git submodule update --init 11git submodule update 12cmake -S . -B _build -G Ninja -DCMAKE_BUILD_TYPE=Release 13ninja -C _build gfxrecon-replay gfxrecon-info 14mkdir -p build/bin 15install _build/tools/replay/gfxrecon-replay build/bin 16install _build/tools/info/gfxrecon-info build/bin 17strip build/bin/* 18find . -not -path './build' -not -path './build/*' -delete 19popd 20