1#!/bin/bash 2 3set -ex 4 5GFXRECONSTRUCT_VERSION=57c588c04af631d1d6d381a48e2b9283f9d9d528 6 7# Using the "dev" branch by now because it solves a crash and will allow us to 8# use the gfxreconstruct-info tool 9git clone https://github.com/LunarG/gfxreconstruct.git --single-branch -b dev --no-checkout /gfxreconstruct 10pushd /gfxreconstruct 11git checkout "$GFXRECONSTRUCT_VERSION" 12git submodule update --init 13git submodule update 14cmake -G Ninja -B_build -H. -DCMAKE_BUILD_TYPE=Release 15ninja -C _build gfxrecon-replay gfxrecon-info 16mkdir -p build/bin 17install _build/tools/replay/gfxrecon-replay build/bin 18install _build/tools/info/gfxrecon-info build/bin 19strip build/bin/* 20find . -not -path './build' -not -path './build/*' -delete 21popd 22