forked from cheng/wallet
101 lines
2.1 KiB
Batchfile
101 lines
2.1 KiB
Batchfile
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"
|
|
del /Q build
|
|
del /Q libsodium\obj
|
|
del /Q libsodium\bin
|
|
del /Q libsodium\src\libsodium\include\sodium\version.h
|
|
cd mpir
|
|
del config.h
|
|
del gmp-mparam.h
|
|
del gmp.h
|
|
del /Q lib
|
|
del longlong.h
|
|
del mpir.h
|
|
del msvc\output_params.bat
|
|
del msvc\tmp.h
|
|
del /Q msvc\vs22\lib_mpir_cxx\x64
|
|
del /Q msvc\vs22\lib_mpir_gc\x64
|
|
del msvc\vs22\test-config.props
|
|
cd ..\wxWidgets
|
|
del /Q build\msw\vc_x64_mswu
|
|
del /Q build\msw\vc_x64_mswud
|
|
del /Q lib\vc_x64_lib
|
|
cd ..
|
|
echo check to see that everything is cleaned
|
|
echo off
|
|
git submodule foreach --recursive "git clean -xnf"
|
|
git clean -xnf
|
|
PAUSE
|
|
echo on
|
|
cd libsodium/builds/msvc/vs2022
|
|
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
|
|
)
|
|
echo on
|
|
call msbuild.bat gc lib x64 Release test
|
|
echo off
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
cd ..
|
|
PAUSE
|
|
GOTO:EOF
|
|
)
|
|
echo on
|
|
call msbuild.bat gc lib x64 Release tune
|
|
echo off
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
cd ..
|
|
PAUSE
|
|
GOTO:EOF
|
|
)
|
|
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 ..\..\..
|
|
msbuild wallet.sln -p:Configuration=Release;Platform=x64 -m
|
|
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
|
|
)
|