@echo off
rem ---------------------------------------------------------------------------
rem  build.cmd - thin wrapper for build.ps1
rem
rem  ASCII only. cmd.exe reads this file in the OEM/ANSI codepage (CP932 on a
rem  Japanese Windows), so non-ASCII comments would be mojibake here.
rem  All Japanese text lives in build.ps1, which is saved as UTF-8 with BOM.
rem
rem  Usage:
rem      tools\build.cmd
rem      tools\build.cmd -Config Debug
rem      tools\build.cmd -Config Both
rem      tools\build.cmd -Rebuild
rem      tools\build.cmd -Clean
rem
rem  Exit codes:
rem      0 = all configurations built successfully
rem      1 = build failed (error summary is printed)
rem      2 = environment problem (MSBuild not found, etc.)
rem ---------------------------------------------------------------------------
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0build.ps1" %*
exit /b %ERRORLEVEL%
