Enable support for building rz-libswift on cutter (#2841)

This commit is contained in:
Giovanni 2022-01-15 21:02:01 +01:00 committed by GitHub
parent 239343bb20
commit 75c334596e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 63 additions and 1 deletions

19
scripts/rz-libswift.sh Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
set -e
SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
cd "$SCRIPTPATH/.."
if [[ ! -d libswift ]]; then
git clone https://github.com/rizinorg/rz-libswift.git --depth 1 libswift
fi
cd libswift
rm -rf build || sleep 0
mkdir build && cd build
meson --buildtype=release "$@" ..
ninja
ninja install