projects
/
ldk-java
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d464171
)
Set a library suffix for all platforms, useful for android builds
author
Matt Corallo
<git@bluematt.me>
Wed, 23 Jun 2021 14:41:29 +0000
(14:41 +0000)
committer
Matt Corallo
<git@bluematt.me>
Thu, 24 Jun 2021 14:40:37 +0000
(14:40 +0000)
genbindings.sh
patch
|
blob
|
history
diff --git
a/genbindings.sh
b/genbindings.sh
index 30af22a9663ad91d1dac8b22ac734a3b6c04787b..7ecbdeba7e59ed278dafbb2d9e50d16f838099c4 100755
(executable)
--- a/
genbindings.sh
+++ b/
genbindings.sh
@@
-26,13
+26,19
@@
if [ "$TARGET_STRING" = "" ]; then
fi
case "$TARGET_STRING" in
"x86_64-pc-linux"*)
fi
case "$TARGET_STRING" in
"x86_64-pc-linux"*)
- LDK_TARGET_SUFFIX="_Linux-amd64" ;;
+ LDK_TARGET_SUFFIX="_Linux-amd64"
+ LDK_JAR_TARGET=true
+ ;;
"x86_64-apple-darwin"*)
"x86_64-apple-darwin"*)
- LDK_TARGET_SUFFIX="_MacOSX-x86_64" ;;
+ LDK_TARGET_SUFFIX="_MacOSX-x86_64"
+ LDK_JAR_TARGET=true
+ ;;
"aarch64-apple-darwin"*)
"aarch64-apple-darwin"*)
- LDK_TARGET_SUFFIX="_MacOSX-aarch64" ;;
+ LDK_TARGET_SUFFIX="_MacOSX-aarch64"
+ LDK_JAR_TARGET=true
+ ;;
*)
*)
- LDK_TARGET_SUFFIX=""
+ LDK_TARGET_SUFFIX="
_${TARGET_STRING}
"
esac
if [ "$LDK_TARGET_CPU" = "" ]; then
LDK_TARGET_CPU="sandybridge"
esac
if [ "$LDK_TARGET_CPU" = "" ]; then
LDK_TARGET_CPU="sandybridge"
@@
-96,7
+102,7
@@
else
exit 1
fi
fi
exit 1
fi
fi
- if [ "$LDK_
TARGET_SUFFIX" != "
" ]; then
+ if [ "$LDK_
JAR_TARGET" = "true
" ]; then
# Copy to JNI native directory for inclusion in JARs
cp liblightningjni_release$LDK_TARGET_SUFFIX.so src/main/resources/liblightningjni$LDK_TARGET_SUFFIX.nativelib
fi
# Copy to JNI native directory for inclusion in JARs
cp liblightningjni_release$LDK_TARGET_SUFFIX.so src/main/resources/liblightningjni$LDK_TARGET_SUFFIX.nativelib
fi