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