1set /a errorno=1 2for /F "delims=#" %%E in ('"prompt #$E# & for %%E in (1) do rem"') do set "esc=%%E" 3 4rem https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference 5 6set "sln=lz4.sln" 7 8@rem set "Configuration=Debug" 9@rem set "Platform=Win32" 10 11set "BIN=.\bin\!Platform!_!Configuration!" 12rmdir /S /Q "!BIN!" 2>nul 13echo msbuild "%sln%" /p:Configuration=!Configuration! /p:Platform=!Platform! 14msbuild "%sln%" ^ 15 /nologo ^ 16 /v:minimal ^ 17 /m ^ 18 /p:Configuration=!Configuration! ^ 19 /p:Platform=!Platform! ^ 20 /t:Clean,Build ^ 21 || goto :ERROR 22 23if not exist "!BIN!\datagen.exe" ( echo FAIL: "!BIN!\datagen.exe" && goto :ERROR ) 24if not exist "!BIN!\frametest.exe" ( echo FAIL: "!BIN!\frametest.exe" && goto :ERROR ) 25if not exist "!BIN!\fullbench-dll.exe" ( echo FAIL: "!BIN!\fullbench-dll.exe" && goto :ERROR ) 26if not exist "!BIN!\fullbench.exe" ( echo FAIL: "!BIN!\fullbench.exe" && goto :ERROR ) 27if not exist "!BIN!\fuzzer.exe" ( echo FAIL: "!BIN!\fuzzer.exe" && goto :ERROR ) 28if not exist "!BIN!\liblz4.dll" ( echo FAIL: "!BIN!\liblz4.dll" && goto :ERROR ) 29if not exist "!BIN!\liblz4.lib" ( echo FAIL: "!BIN!\liblz4.lib" && goto :ERROR ) 30if not exist "!BIN!\liblz4_static.lib" ( echo FAIL: "!BIN!\liblz4_static.lib" && goto :ERROR ) 31if not exist "!BIN!\lz4.exe" ( echo FAIL: "!BIN!\lz4.exe" && goto :ERROR ) 32 33set /a errorno=0 34goto :END 35 36:ERROR 37 38:END 39exit /B %errorno% 40