mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-12 14:02:33 +00:00
25 lines
571 B
Bash
Executable file
25 lines
571 B
Bash
Executable file
#!/bin/bash
|
|
set -eu -o pipefail
|
|
|
|
git clone --depth 1 https://github.com/keystone-engine/keystone.git || true
|
|
|
|
source ctf-tools-venv-activate
|
|
|
|
mkdir -p keystone/build/
|
|
pushd keystone/build/
|
|
cmake -DCMAKE_INSTALL_PREFIX="$VIRTUAL_ENV" \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DLLVM_TARGETS_TO_BUILD="all" \
|
|
-G "Unix Makefiles" ..
|
|
make -j$(getconf _NPROCESSORS_ONLN) install
|
|
popd
|
|
|
|
pushd keystone/bindings/python
|
|
#pip install -U .
|
|
make DEST_DIR="$VIRTUAL_ENV" BUILD_DIR="../../build/" install
|
|
popd
|
|
|
|
|
|
echo "WARNING: keystone installation is broken"
|
|
exit 1
|