15 lines
406 B
Bash
Executable file
15 lines
406 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
|
|
|
cd "$SCRIPT_PATH"
|
|
cargo build --release
|
|
|
|
TARGET_PATH="$(realpath "$SCRIPT_PATH"/target/release)"
|
|
SERVICEPOINT_SO="$TARGET_PATH/libservicepoint_binding_uniffi.so"
|
|
|
|
echo "Source: $SERVICEPOINT_SO"
|
|
|
|
"$TARGET_PATH/uniffi-bindgen" generate --library "$SERVICEPOINT_SO" --language ruby --out-dir "$SCRIPT_PATH/lib"
|