blob: 3f450184d40e771c3a8cbb65182b3d857a9c35cf [file] [log] [blame]
Andres Gomez028ab482020-02-20 14:18:54 +02001#!/bin/bash
2
3set -ex
4
Andres Gomezd15e1222020-07-01 23:45:08 +03005GFXRECONSTRUCT_VERSION=57c588c04af631d1d6d381a48e2b9283f9d9d528
Andres Gomez028ab482020-02-20 14:18:54 +02006
Andres Gomezd15e1222020-07-01 23:45:08 +03007# 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
Andres Gomez028ab482020-02-20 14:18:54 +020010pushd /gfxreconstruct
11git checkout "$GFXRECONSTRUCT_VERSION"
12git submodule update --init
13git submodule update
14cmake -G Ninja -B_build -H. -DCMAKE_BUILD_TYPE=Release
Andres Gomezd15e1222020-07-01 23:45:08 +030015ninja -C _build gfxrecon-replay gfxrecon-info
Andres Gomez028ab482020-02-20 14:18:54 +020016mkdir -p build/bin
17install _build/tools/replay/gfxrecon-replay build/bin
Andres Gomezd15e1222020-07-01 23:45:08 +030018install _build/tools/info/gfxrecon-info build/bin
Andres Gomez028ab482020-02-20 14:18:54 +020019strip build/bin/*
20find . -not -path './build' -not -path './build/*' -delete
21popd