compile-bcc32c.bat 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. @echo off
  2. rem Inno Setup
  3. rem Copyright (C) 1997-2024 Jordan Russell
  4. rem Portions by Martijn Laan
  5. rem For conditions of distribution and use, see LICENSE.TXT.
  6. rem
  7. rem Batch file to compile IS7zDec.c using Embarcadero's free
  8. rem C++ compiler from https://www.embarcadero.com/free-tools/ccompiler
  9. rem with source debugging turned on
  10. setlocal
  11. cd /d %~dp0
  12. if exist compilesettings.bat goto compilesettingsfound
  13. :compilesettingserror
  14. echo compilesettings.bat is missing or incomplete. It needs to be created
  15. echo with the following line, adjusted for your system:
  16. echo.
  17. echo set BCCROOT=C:\BCC102
  18. goto failed2
  19. :compilesettingsfound
  20. set BCCROOT=
  21. call .\compilesettings.bat
  22. if "%BCCROOT%"=="" goto compilesettingserror
  23. rem -------------------------------------------------------------------------
  24. echo - Compiling IS7zDec.c
  25. "%BCCROOT%\bin\bcc32c.exe" -c -O2 -v IS7zDec.c
  26. if errorlevel 1 goto failed
  27. echo Success!
  28. goto exit
  29. :failed
  30. echo *** FAILED ***
  31. :failed2
  32. exit /b 1
  33. :exit