servicepoint-binding-csharp/generate-binding.sh
Vinzenz Schroeter 3e599a4735
Some checks failed
Rust / build (push) Failing after 28s
move c# bindings into separate repository
2025-02-16 13:59:41 +01:00

16 lines
423 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"
echo "Output: $LIBRARIES_PATH"
"$TARGET_PATH/uniffi-bindgen-cs" --library "$SERVICEPOINT_SO" --out-dir "SCRIPT_PATH/ServicePoint"