This commit is contained in:
2021-08-02 22:12:33 +02:00
parent fed29ebbbe
commit 7b3498bd27
57 changed files with 2778 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#!/usr/bin/env sh
#
# Call with the following arguments:
#
# ./build_and_install_libolm.sh <libolm version> <python bindings install dir>
#
# Example:
#
# ./build_and_install_libolm.sh 3.1.4 /python-bindings
#
# Note that if a python bindings installation directory is not supplied, bindings will
# be installed to the default directory.
#
set -ex
# Download the specified version of libolm
git clone -b "$1" https://gitlab.matrix.org/matrix-org/olm.git olm && cd olm
# Build libolm
cmake . -Bbuild
cmake --build build
# Install
make install
# Build the python3 bindings
cd python && make olm-python3
# Install python3 bindings
mkdir -p "$2" || true
DESTDIR="$2" make install-python3