Skip to content

Commit

Permalink
Try windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeodrippe committed Jul 30, 2024
1 parent 769c275 commit 2aaa3e2
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions bin/jextract-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ if [ ! -d "libsodium-1.0.20" ]; then
fi
fi

$VYBE_GCC \
$VYBE_GCC_FLECS_OPTS \
-shared \
netcode/netcode.c \
-I netcode \
-I libsodium-win64/include \
-o "native/${VYBE_LIB_PREFIX}netcode.$VYBE_EXTENSION"

if [[ $VYBE_EXTENSION == "dll" ]]; then
$VYBE_GCC \
$VYBE_GCC_FLECS_OPTS \
-shared \
netcode/netcode.c \
-I netcode \
-I libsodium-win64/include \
-o "native/${VYBE_LIB_PREFIX}netcode.$VYBE_EXTENSION" -L libsodium-win64/lib libsodium-win64/lib/libsodium.a -static-libgcc

$VYBE_JEXTRACT \
--use-system-load-library \
--library sodium \
Expand All @@ -115,6 +115,14 @@ if [[ $VYBE_EXTENSION == "dll" ]]; then
--header-class-name netcode \
-t org.vybe.netcode netcode/netcode.h
else
$VYBE_GCC \
$VYBE_GCC_FLECS_OPTS \
-shared \
netcode/netcode.c \
-I netcode \
-o "native/${VYBE_LIB_PREFIX}netcode.$VYBE_EXTENSION"


$VYBE_JEXTRACT \
-l ":${VYBE_TMP_PREFIX}/tmp/pfeodrippe_vybe_native/${VYBE_LIB_PREFIX}sodium.$VYBE_EXTENSION" \
-l ":${VYBE_TMP_PREFIX}/tmp/pfeodrippe_vybe_native/${VYBE_LIB_PREFIX}netcode.$VYBE_EXTENSION" \
Expand Down

0 comments on commit 2aaa3e2

Please sign in to comment.