Document how to add custom JNI bindings (#50)

This is how we add Linux Arm64 JNI bindings.
This commit is contained in:
Fabrice Drouin
2022-04-04 11:26:18 +02:00
committed by GitHub
parent 4df49dd8f6
commit 7af7b7760e
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/bash -x
if [ $# -eq 0 ]
then
echo "specify either snapshot or release"
exit 1
fi
# add aarch64 (ARM64) library to the linux jar
if [ -e fr/acinq/secp256k1/jni/native/linux-aarch64/libsecp256k1-jni.so ]
then
jar -uf $1/fr/acinq/secp256k1/secp256k1-kmp-jni-jvm-linux/$VERSION/secp256k1-kmp-jni-jvm-linux-$VERSION.jar fr || exit
else
libsecp256k1-jni.so for arch64 is missing
exit 1
fi