bdk-ffi/build.sh

15 lines
418 B
Bash
Raw Normal View History

# rust
2021-06-04 18:00:55 -07:00
cargo build
cargo test --features c-headers -- generate_headers
# cc
export LD_LIBRARY_PATH=`pwd`/target/debug
cc cc/bdk_ffi_test.c -o cc/bdk_ffi_test -L target/debug -l bdk_ffi -l pthread -l dl -l m
#valgrind --leak-check=full cc/bdk_ffi_test
cc/bdk_ffi_test
2021-06-08 18:15:20 -07:00
# bdk-kotlin
mkdir -p bdk-kotlin/jar/libs/x86_64_linux
cp target/debug/libbdk_ffi.so bdk-kotlin/jar/libs/x86_64_linux
(cd bdk-kotlin && gradle test)