Skip to content

Commit

Permalink
try 1.0.20 libsodium precompiled on github
Browse files Browse the repository at this point in the history
  • Loading branch information
neodiX committed Jun 9, 2024
1 parent fa13a78 commit 5ce3695
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions assembly/native/build-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,12 @@ echo Using secp256k1...
)


if not exist "libsodium" (
git clone https://github.com/jedisct1/libsodium.git
cd libsodium
git fetch -a
git checkout 1.0.19-RELEASE
cd builds\msvc\vs2022\libsodium
msbuild libsodium.vcxproj /p:Configuration=ReleaseLIB /p:platform=x64 -p:PlatformToolset=v143

curl -Lo libsodium-1.0.20-stable-msvc.zip https://download.libsodium.org/libsodium/releases/libsodium-1.0.20-stable-msvc.zip
IF %errorlevel% NEQ 0 (
echo Can't download libsodium
exit /b %errorlevel%
)
cd ..\..\..\..\..
unzip libsodium-1.0.20-stable-msvc.zip
) else (
echo Using libsodium...
)
Expand Down Expand Up @@ -139,9 +132,9 @@ cmake -GNinja -DCMAKE_BUILD_TYPE=Release ^
-DPORTABLE=1 ^
-DSODIUM_USE_STATIC_LIBS=1 ^
-DSODIUM_FOUND=1 ^
-DSODIUM_LIBRARY_RELEASE=%root%\libsodium\bin\x64\Release\v143\static\libsodium.lib ^
-DSODIUM_LIBRARY_DEBUG=%root%\libsodium\bin\x64\Release\v143\static\libsodium.lib ^
-DSODIUM_INCLUDE_DIR=%root%\libsodium\src\libsodium\include ^
-DSODIUM_LIBRARY_RELEASE=%root%\libsodium\x64\Release\v143\static\libsodium.lib ^
-DSODIUM_LIBRARY_DEBUG=%root%\libsodium\x64\Release\v143\static\libsodium.lib ^
-DSODIUM_INCLUDE_DIR=%root%\libsodium\include ^
-DSECP256K1_FOUND=1 ^
-DSECP256K1_INCLUDE_DIR=%root%\secp256k1\include ^
-DSECP256K1_LIBRARY=%root%\secp256k1\build\src\Release\libsecp256k1.lib ^
Expand Down

0 comments on commit 5ce3695

Please sign in to comment.