File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,19 @@ if [ "$TARGET_STRING" = "" ]; then
2626fi
2727case " $TARGET_STRING " in
2828 " x86_64-pc-linux" * )
29- LDK_TARGET_SUFFIX=" _Linux-amd64" ;;
29+ LDK_TARGET_SUFFIX=" _Linux-amd64"
30+ LDK_JAR_TARGET=true
31+ ;;
3032 " x86_64-apple-darwin" * )
31- LDK_TARGET_SUFFIX=" _MacOSX-x86_64" ;;
33+ LDK_TARGET_SUFFIX=" _MacOSX-x86_64"
34+ LDK_JAR_TARGET=true
35+ ;;
3236 " aarch64-apple-darwin" * )
33- LDK_TARGET_SUFFIX=" _MacOSX-aarch64" ;;
37+ LDK_TARGET_SUFFIX=" _MacOSX-aarch64"
38+ LDK_JAR_TARGET=true
39+ ;;
3440 * )
35- LDK_TARGET_SUFFIX=" "
41+ LDK_TARGET_SUFFIX=" _ ${TARGET_STRING} "
3642esac
3743if [ " $LDK_TARGET_CPU " = " " ]; then
3844 LDK_TARGET_CPU=" sandybridge"
96102 exit 1
97103 fi
98104 fi
99- if [ " $LDK_TARGET_SUFFIX " ! = " " ]; then
105+ if [ " $LDK_JAR_TARGET " = " true " ]; then
100106 # Copy to JNI native directory for inclusion in JARs
101107 cp liblightningjni_release$LDK_TARGET_SUFFIX .so src/main/resources/liblightningjni$LDK_TARGET_SUFFIX .nativelib
102108 fi
You can’t perform that action at this time.
0 commit comments