2024-02-22 07:44:30 -05:00
|
|
|
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"
|
|
|
|
|
|
|
|
echo on
|
|
|
|
rmdir /Q /S build
|
|
|
|
rmdir /Q /S msvc\.vs
|
|
|
|
cd wxWidgets
|
|
|
|
del lib\wxWidgetsConfig.cmake
|
|
|
|
del lib\wxWidgetsConfigVersion.cmake
|
|
|
|
rmdir /Q /S build\msw\vc_x64_mswu
|
|
|
|
rmdir /Q /S build\msw\vc_x64_mswud
|
|
|
|
rmdir /Q /S lib\vc_x64_lib
|
|
|
|
cd ..
|
|
|
|
rem echo check to see that everything is cleaned
|
|
|
|
rem git clean -xdn
|
|
|
|
rem cd wxWidgets
|
|
|
|
rem git clean -xdn
|
|
|
|
rem cd ..
|
|
|
|
rem PAUSE
|
|
|
|
|
|
|
|
cd wxWidgets
|
2024-02-22 16:21:53 -05:00
|
|
|
cmake . -Bbuild\msw\vc_x64_mswu
|
2024-02-22 07:44:30 -05:00
|
|
|
echo off
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
|
|
echo Failed during cmake create build directory
|
|
|
|
PAUSE
|
|
|
|
GOTO:EOF
|
|
|
|
)
|
|
|
|
echo on
|
|
|
|
cd build\msw\vc_x64_mswu
|
|
|
|
cmake --build . --config Release
|
|
|
|
echo off
|
|
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
|
|
echo Failed during cmake --build .
|
|
|
|
PAUSE
|
|
|
|
GOTO:EOF
|
|
|
|
)
|
|
|
|
echo on
|
|
|
|
xcopy /E /F /Y lib ..\..\..\lib
|
|
|
|
cd ..\..\..
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
msbuild msvc/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
|
|
|
|
)
|