1
0
forked from cheng/wallet
wallet/msvc/winConfig.bat

99 lines
1.9 KiB
Batchfile
Raw Permalink Normal View History

echo on
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"
echo on
cd libsodium/builds/msvc/vs2022
msbuild libsodium.sln -p:Configuration=StaticRelease;Platform=x64 -m
2022-02-16 21:25:44 -05:00
echo off
IF %ERRORLEVEL% NEQ 0 (
cd ..
PAUSE
GOTO:EOF
)
echo on
msbuild libsodium.sln -p:Configuration=StaticDebug;Platform=x64 -m
2022-02-16 21:25:44 -05:00
echo off
IF %ERRORLEVEL% NEQ 0 (
cd ..
PAUSE
GOTO:EOF
)
echo on
cd ../../../..
cd mpir\msvc\vs22
2022-02-16 21:25:44 -05:00
call msbuild.bat gc lib x64 Debug
echo off
IF %ERRORLEVEL% NEQ 0 (
cd ..
PAUSE
GOTO:EOF
)
echo on
call msbuild.bat gc lib x64 Release
echo off
IF %ERRORLEVEL% NEQ 0 (
cd ..
PAUSE
GOTO:EOF
)
echo on
cd ..\..\..
cd wxWidgets
cmake . -Bbuild\msw\vc_x64_mswu
2022-02-16 21:25:44 -05:00
echo off
IF %ERRORLEVEL% NEQ 0 (
echo Failed during cmake create build directory
PAUSE
GOTO:EOF
2022-02-16 21:25:44 -05:00
)
echo on
cd build\msw\vc_x64_mswu
cmake --build . --config Release
2022-02-16 21:25:44 -05:00
echo off
IF %ERRORLEVEL% NEQ 0 (
echo Failed during cmake --build . --config Release
PAUSE
GOTO:EOF
2022-02-16 21:25:44 -05:00
)
echo on
cmake --build . --config Debug
2022-02-16 21:25:44 -05:00
IF %ERRORLEVEL% NEQ 0 (
echo Failed during cmake --build . --config Debug
PAUSE
GOTO:EOF
2022-02-16 21:25:44 -05:00
)
echo on
xcopy /E /F /Y lib ..\..\..\lib
2022-02-16 21:25:44 -05:00
cd ..\..\..
cd ..
2022-02-16 21:25:44 -05:00
echo on
msbuild msvc/wallet.sln -p:Configuration=Debug;Platform=x64 -m
2022-02-16 21:25:44 -05:00
echo off
IF %ERRORLEVEL% NEQ 0 (
PAUSE
GOTO:EOF
)
echo on
msbuild msvc/wallet.sln -p:Configuration=Release;Platform=x64 -m
2022-02-16 21:25:44 -05:00
echo off
IF %ERRORLEVEL% NEQ 0 (
PAUSE
GOTO:EOF
)
echo on
2022-06-30 06:54:26 -04:00
.\build\Debug\wallet.exe --complete --test
2022-02-16 21:25:44 -05:00
echo off
IF %ERRORLEVEL% NEQ 0 (
2022-05-04 08:03:46 -04:00
echo failed unit test on debug build
2022-02-16 21:25:44 -05:00
) ELSE (
echo passed unit test on debug build
)
2022-05-04 08:03:46 -04:00
echo on
2022-06-30 06:54:26 -04:00
.\build\Release\wallet.exe --complete --test
2022-05-04 08:03:46 -04:00
echo off
IF %ERRORLEVEL% NEQ 0 (
echo failed unit test on release build
) ELSE (
echo passed unit test on release build
)