-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use shell scripts to build bdk-jvm
- Loading branch information
1 parent
1b00bd1
commit 3b4f911
Showing
16 changed files
with
100 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
bdk-jvm/plugins/src/main/kotlin/org/bitcoindevkit/plugins/Enums.kt
This file was deleted.
Oops, something went wrong.
150 changes: 0 additions & 150 deletions
150
bdk-jvm/plugins/src/main/kotlin/org/bitcoindevkit/plugins/UniFfiJvmPlugin.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
COMPILATION_TARGET="x86_64-unknown-linux-gnu" | ||
TARGET_DIR="target/x86_64-unknown-linux-gnu/release-smaller" | ||
RESOURCE_DIR="resources/linux-x86-64" | ||
LIB_NAME="libbdkffi.so" | ||
|
||
# Move to the Rust library directory | ||
cd ../bdk-ffi/ || exit | ||
|
||
# Build the Rust library | ||
rustup default 1.77.1 | ||
rustup target add $COMPILATION_TARGET | ||
cargo build --profile release-smaller --target $COMPILATION_TARGET | ||
|
||
# Generate Kotlin bindings using uniffi-bindgen | ||
cargo run --bin uniffi-bindgen generate --library ./$TARGET_DIR/$LIB_NAME --language kotlin --out-dir ../bdk-jvm/lib/src/main/kotlin/ --no-format | ||
|
||
# Copy the binary to the resources directory | ||
mkdir -p ../bdk-jvm/lib/src/main/$RESOURCE_DIR/ | ||
cp ./$TARGET_DIR/$LIB_NAME ../bdk-jvm/lib/src/main/$RESOURCE_DIR/ |
Oops, something went wrong.