mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-24 13:33:16 +00:00
23 lines
717 B
Bash
23 lines
717 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
# Build liblogosdelivery from this repo and place it where the Python binding expects it.
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||
|
|
LIBDIR="$ROOT/tests-e2e/vendor/logos-delivery-python-bindings/lib"
|
||
|
|
|
||
|
|
cd "$ROOT"
|
||
|
|
make update
|
||
|
|
make V=1 liblogosdelivery
|
||
|
|
|
||
|
|
mkdir -p "$LIBDIR"
|
||
|
|
if [ -f build/liblogosdelivery.so ]; then
|
||
|
|
cp build/liblogosdelivery.so "$LIBDIR/liblogosdelivery.so"
|
||
|
|
elif [ -f build/liblogosdelivery.dylib ]; then
|
||
|
|
cp build/liblogosdelivery.dylib "$LIBDIR/liblogosdelivery.dylib"
|
||
|
|
ln -sf liblogosdelivery.dylib "$LIBDIR/liblogosdelivery.so"
|
||
|
|
else
|
||
|
|
echo "ERROR: built library not found in build/" >&2
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
echo "Placed liblogosdelivery in $LIBDIR"
|