mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 23:41:13 +00:00
f5269b0b6a
The -S and -B flags were officially introduced in CMake 3.13. Avoids the following warning: " CMake Warning: No source or binary directory provided. Both will be assumed to be the same as the current working directory, but note that this warning will become a fatal error in future CMake releases. " Signed-off-by: Andres Gomez <agomez@igalia.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6388>
22 lines
727 B
Bash
22 lines
727 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
GFXRECONSTRUCT_VERSION=57c588c04af631d1d6d381a48e2b9283f9d9d528
|
|
|
|
# Using the "dev" branch by now because it solves a crash and will allow us to
|
|
# use the gfxreconstruct-info tool
|
|
git clone https://github.com/LunarG/gfxreconstruct.git --single-branch -b dev --no-checkout /gfxreconstruct
|
|
pushd /gfxreconstruct
|
|
git checkout "$GFXRECONSTRUCT_VERSION"
|
|
git submodule update --init
|
|
git submodule update
|
|
cmake -S . -B _build -G Ninja -DCMAKE_BUILD_TYPE=Release
|
|
ninja -C _build gfxrecon-replay gfxrecon-info
|
|
mkdir -p build/bin
|
|
install _build/tools/replay/gfxrecon-replay build/bin
|
|
install _build/tools/info/gfxrecon-info build/bin
|
|
strip build/bin/*
|
|
find . -not -path './build' -not -path './build/*' -delete
|
|
popd
|