xref: /aosp_15_r20/external/lz4/build/VS2022/build-and-test-win32-debug.bat (revision 27162e4e17433d5aa7cb38e7b6a433a09405fc7f)
1@setlocal enabledelayedexpansion
2@echo off
3set /a errorno=1
4for /F "delims=#" %%E in ('"prompt #$E# & for %%E in (1) do rem"') do set "esc=%%E"
5
6call _setup.bat || goto :ERROR
7
8set "Configuration=Debug"
9set "Platform=Win32"
10
11call _build.bat || goto :ERROR
12call _test.bat  || goto :ERROR
13
14
15echo Build Status -%esc%[92m SUCCEEDED %esc%[0m
16set /a errorno=0
17goto :END
18
19
20:ERROR
21echo Abort by error.
22echo Build Status -%esc%[91m ERROR %esc%[0m
23
24
25:END
26exit /B %errorno%
27