2023-09-17 17:10:41 -04:00
|
|
|
echo as it is a bitch to make sure you are linking to the correct libraries, this batch Files
|
|
|
|
echo exists to make sure no other libraries are around
|
|
|
|
echo off
|
|
|
|
call C:\"Program Files (x86)"\"Microsoft Visual Studio"\2022\BuildTools\VC\Auxiliary\Build\vcvarsamd64_x86.bat
|
|
|
|
call C:\"Program Files"\"Microsoft Visual Studio"\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
|
2024-02-20 23:40:57 -05:00
|
|
|
|
|
|
|
echo on
|
|
|
|
rmdir /Q /S build
|
|
|
|
rmdir /Q /S msvc\.vs
|
|
|
|
cd libsodium
|
|
|
|
rmdir /Q /S bin
|
|
|
|
rmdir /Q /S obj
|
|
|
|
del src\libsodium\include\sodium\version.h
|
|
|
|
cd ..\mpir
|
|
|
|
rmdir /Q /S lib
|
2023-09-17 17:10:41 -04:00
|
|
|
del config.h
|
|
|
|
del gmp-mparam.h
|
|
|
|
del gmp.h
|
|
|
|
del longlong.h
|
|
|
|
del mpir.h
|
|
|
|
del msvc\output_params.bat
|
2024-02-20 23:40:57 -05:00
|
|
|
rmdir /Q /S msvc\vs22\lib_mpir_cxx\x64
|
|
|
|
rmdir /Q /S msvc\vs22\lib_mpir_gc\x64
|
2023-09-17 17:10:41 -04:00
|
|
|
del msvc\vs22\test-config.props
|
2024-02-20 23:40:57 -05:00
|
|
|
cd ..
|
|
|
|
cd wxWidgets
|
|
|
|
rmdir /Q /S build\msw\vc_x64_mswu
|
|
|
|
rmdir /Q /S build\msw\vc_x64_mswud
|
|
|
|
rmdir /Q /S lib\vc_x64_lib
|
2023-09-17 17:10:41 -04:00
|
|
|
cd ..
|
|
|
|
echo check to see that everything is cleaned
|
2024-02-20 23:40:57 -05:00
|
|
|
rem echo off
|
|
|
|
git clean -xdn
|
|
|
|
git submodule foreach git clean -xdn
|
2023-09-17 17:10:41 -04:00
|
|
|
PAUSE
|
|
|
|
echo on
|
2024-02-20 23:40:57 -05:00
|
|
|
|
|
|
|
echo on
|
|
|
|
cd libsodium\builds\msvc\vs2022
|
2023-09-17 17:10:41 -04:00
|
|
|
msbuild libsodium.sln -p:Configuration=StaticRelease;Platform=x64 -m
|
|
|
|
echo off
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
|
|
cd ..
|
|
|
|
PAUSE
|
|
|
|
GOTO:EOF
|
|
|
|
)
|
|
|
|
echo on
|
|
|
|
cd ../../../..
|
|
|
|
cd mpir\msvc\vs22
|
|
|
|
echo on
|
|
|
|
call msbuild.bat gc lib x64 Release
|
|
|
|
echo off
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
|
|
cd ..
|
|
|
|
PAUSE
|
|
|
|
GOTO:EOF
|
|
|
|
)
|
2024-02-20 23:40:57 -05:00
|
|
|
|
2023-09-17 17:10:41 -04:00
|
|
|
echo on
|
|
|
|
cd ..\..\..
|
|
|
|
cd wxWidgets\build\msw
|
|
|
|
msbuild wx_vc17.sln -m -p:Configuration=Release;Platform=x64;PlatformToolset=v143;WindowsTargetPlatformVersion=10.0
|
|
|
|
echo off
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
|
|
PAUSE
|
|
|
|
GOTO:EOF
|
|
|
|
)
|
|
|
|
echo on
|
|
|
|
msbuild wx_vc17.sln -m -p:Configuration=Debug;Platform=x64;PlatformToolset=v143;WindowsTargetPlatformVersion=10.0
|
|
|
|
echo off
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
|
|
PAUSE
|
|
|
|
GOTO:EOF
|
|
|
|
)
|
|
|
|
|
|
|
|
echo on
|
|
|
|
cd ..\..\..
|
2024-02-14 07:03:40 -05:00
|
|
|
msbuild msvc/wallet.sln -p:Configuration=Release;Platform=x64 -m
|
2023-09-17 17:10:41 -04:00
|
|
|
echo off
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
|
|
PAUSE
|
|
|
|
GOTO:EOF
|
|
|
|
)
|
|
|
|
echo on
|
|
|
|
.\build\Release\wallet.exe --complete --test
|
|
|
|
echo off
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
|
|
echo failed unit test on release build
|
|
|
|
) ELSE (
|
|
|
|
echo passed unit test on release build
|
|
|
|
)
|