forked from cheng/wallet
47f9e77aec
that by default it searches for header files in the source directory as well as on the include line - which is very nice but non standard and breaks every other build system, resulting in incomprehensible and misleading error messages that send one down a hundred rabbit holes.
50 lines
1.2 KiB
Batchfile
50 lines
1.2 KiB
Batchfile
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 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=Debug;Platform=x64 -m
|
|
echo off
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
PAUSE
|
|
GOTO:EOF
|
|
)
|
|
echo on
|
|
msbuild wallet.sln -p:Configuration=Release;Platform=x64 -m
|
|
echo off
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
PAUSE
|
|
GOTO:EOF
|
|
)
|
|
echo on
|
|
.\build\Debug\wallet.exe --complete --test
|
|
echo off
|
|
IF %ERRORLEVEL% NEQ 0 (
|
|
echo failed unit test on debug build
|
|
) ELSE (
|
|
echo passed unit test on debug build)
|
|
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
|
|
)
|