compile.bat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @echo off
  2. rem Inno Setup
  3. rem Copyright (C) 1997-2022 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 ISHelpGen
  8. setlocal
  9. if exist compilesettings.bat goto compilesettingsfound
  10. :compilesettingserror
  11. echo ishelp\ishelpgen\compilesettings.bat is missing or incomplete. It needs to be created
  12. echo with the following lines, adjusted for your system:
  13. echo.
  14. echo set DELPHIXEROOT=C:\Program Files\Embarcadero\RAD Studio\20.0 [Path to Delphi 10.4 Sydney (or later)]
  15. goto failed2
  16. :compilesettingsfound
  17. set DELPHIXEROOT=
  18. call .\compilesettings.bat
  19. if "%DELPHIXEROOT%"=="" goto compilesettingserror
  20. rem -------------------------------------------------------------------------
  21. set DELPHIXEDISABLEDWARNINGS=-W-SYMBOL_DEPRECATED -W-SYMBOL_PLATFORM -W-UNSAFE_CAST -W-EXPLICIT_STRING_CAST -W-EXPLICIT_STRING_CAST_LOSS -W-IMPLICIT_INTEGER_CAST_LOSS -W-IMPLICIT_CONVERSION_LOSS
  22. echo Compiling ISHelpGen.dpr:
  23. "%DELPHIXEROOT%\bin\dcc32.exe" --no-config -NSsystem;system.win;winapi -Q -B -H -W %DELPHIXEDISABLEDWARNINGS% %1 -U"%DELPHIXEROOT%\lib\win32\release" ISHelpGen.dpr
  24. if errorlevel 1 goto failed
  25. echo Success!
  26. exit /b 0
  27. :failed
  28. echo *** FAILED ***
  29. :failed2
  30. exit /b 1