| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- @echo off
- rem Inno Setup
- rem Copyright (C) 1997-2025 Jordan Russell
- rem Portions by Martijn Laan
- rem For conditions of distribution and use, see LICENSE.TXT.
- rem
- rem Batch file to compile Inno Setup
- setlocal
- cd /d %~dp0
- if exist compilesettings.bat goto compilesettingsfound
- :compilesettingserror
- echo compilesettings.bat is missing or incomplete. It needs to contain
- echo the following line, adjusted for your system:
- echo.
- echo set DELPHIXEROOT=C:\Program Files\Embarcadero\RAD Studio\20.0 [Path to Delphi 10.4 Sydney (or later)]
- goto failed2
- :compilesettingsfound
- set DELPHIXEROOT=
- call .\compilesettings.bat
- if "%DELPHIXEROOT%"=="" goto compilesettingserror
- rem -------------------------------------------------------------------------
- rem Compile each project separately because it seems Delphi
- rem carries some settings (e.g. $APPTYPE) between projects
- rem if multiple projects are specified on the command line.
- 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
- cd Projects
- if errorlevel 1 goto failed
- if "%1"=="issigtool" goto issigtool
- if not "%1"=="" goto failed
- echo - ISPP.dpr
- mkdir Dcu\ISPP.dpr 2>nul
- "%DELPHIXEROOT%\bin\dcc32.exe" --no-config -NSSystem;System.Win;Winapi -Q -B -H -W %DELPHIXEDISABLEDWARNINGS% %1 -U"%DELPHIXEROOT%\lib\win32\release" -E..\Files -NUDcu\ISPP.dpr ISPP.dpr
- if errorlevel 1 goto failed
- echo - Compil32.dpr
- mkdir Dcu\Compil32.dpr 2>nul
- "%DELPHIXEROOT%\bin\dcc32.exe" --no-config -NSSystem;System.Win;Winapi;Vcl;Vcl.Imaging -Q -B -H -W %DELPHIXEDISABLEDWARNINGS% %1 -U"%DELPHIXEROOT%\lib\win32\release;..\Components\UniPs\Source" -E..\Files -NUDcu\Compil32.dpr -DCOMPIL32PROJ;PS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS Compil32.dpr
- if errorlevel 1 goto failed
- echo - ISCC.dpr
- mkdir Dcu\ISCC.dpr 2>nul
- "%DELPHIXEROOT%\bin\dcc32.exe" --no-config -NSSystem;System.Win;Winapi -Q -B -H -W %DELPHIXEDISABLEDWARNINGS% %1 -U"%DELPHIXEROOT%\lib\win32\release;..\Components\UniPs\Source" -E..\Files -NUDcu\ISCC.dpr -DPS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS ISCC.dpr
- if errorlevel 1 goto failed
- echo - ISCmplr.dpr
- mkdir Dcu\ISCmplr.dpr 2>nul
- "%DELPHIXEROOT%\bin\dcc32.exe" --no-config -NSSystem;System.Win;Winapi -Q -B -H -W %DELPHIXEDISABLEDWARNINGS% %1 -U"%DELPHIXEROOT%\lib\win32\release;..\Components\UniPs\Source" -E..\Files -NUDcu\ISCmplr.dpr -DPS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS ISCmplr.dpr
- if errorlevel 1 goto failed
- echo - SetupLdr.dpr
- mkdir Dcu\SetupLdr.dpr 2>nul
- "%DELPHIXEROOT%\bin\dcc32.exe" --no-config -NSSystem;System.Win;winapi -Q -B -H -W %DELPHIXEDISABLEDWARNINGS% %1 -U"%DELPHIXEROOT%\lib\win32\release" -E..\Files -NUDcu\SetupLdr.dpr -DSETUPLDRPROJ SetupLdr.dpr
- if errorlevel 1 goto failed
- echo - Setup.dpr
- mkdir Dcu\Setup.dpr 2>nul
- "%DELPHIXEROOT%\bin\dcc32.exe" --no-config -NSSystem;System.Win;Winapi;Vcl -Q -B -W %DELPHIXEDISABLEDWARNINGS% %1 -U"%DELPHIXEROOT%\lib\win32\release;..\Components\UniPs\Source" -E..\Files -NUDcu\Setup.dpr -DSETUPPROJ;PS_MINIVCL;PS_NOGRAPHCONST;PS_PANSICHAR;PS_NOINTERFACEGUIDBRACKETS Setup.dpr
- if errorlevel 1 goto failed
- echo - Renaming E32 files
- cd ..\Files
- if errorlevel 1 goto failed
- move SetupLdr.exe SetupLdr.e32
- if errorlevel 1 goto failed
- move Setup.exe Setup.e32
- if errorlevel 1 goto failed
- cd ..\Projects
- if errorlevel 1 goto failed
- :issigtool
- echo - ISSigTool.dpr
- mkdir Dcu\ISSigTool.dpr 2>nul
- "%DELPHIXEROOT%\bin\dcc32.exe" --no-config -NSSystem;System.Win;Winapi -Q -B -H -W %DELPHIXEDISABLEDWARNINGS% %1 -U"%DELPHIXEROOT%\lib\win32\release" -E..\Files -NUDcu\ISSigTool.dpr ISSigTool.dpr
- if errorlevel 1 goto failed
- cd ..
- if errorlevel 1 goto failed
- echo Success!
- goto exit
- :failed
- echo *** FAILED ***
- cd ..
- :failed2
- exit /b 1
- :exit
|