was ist neu ¦  programmier tips ¦  indy artikel ¦  intraweb artikel ¦  informationen ¦  links ¦  interviews
 sonstiges ¦  tutorials ¦  Add&Win Gewinnspiel

Tips (1541)

Dateien (137)
Datenbanken (90)
Drucken (35)
Grafik (114)
IDE (21)
Indy (5)
Internet / LAN (130)
IntraWeb (0)
Mathematik (76)
Multimedia (45)
Oberfläche (107)
Objekte/
ActiveX (51)

OpenTools API (3)
Sonstiges (126)
Strings (83)
System (266)
VCL (242)

Tips sortiert nach
Komponente


Tip suchen

Tip hinzufügen

Add&Win Gewinnspiel

Werbung

55 Visitors Online


 
...Delphi Projekte per Batch kompilieren?
Autor: Superhausi
Homepage: http://www.superhausi.ch
[ Tip ausdrucken ]  

Tip Bewertung (36):  
     


Um ein Delphi-Projekt ohne die IDE aufzurufen zu kompilieren, kann man folgende Batch-Datei verwenden.
To build a delphi project without opening the IDE, use the following batch file.
==================================================================
@Echo off
Echo ******* Building *******

if exist .cfg ren .cfg .cf~
if exist DCC32.cfg ren DCC32.cfg DCC32.cf~
rem # Make console target, unless overridden later
echo -M -CC >> DCC32.cfg
echo -$A+ >> DCC32.cfg
echo -$B- >> DCC32.cfg
echo -$C+ >> DCC32.cfg
echo -$D- >> DCC32.cfg
echo -$G+ >> DCC32.cfg
echo -$H+ >> DCC32.cfg
echo -$I+ >> DCC32.cfg
echo -$J- >> DCC32.cfg
echo -$L- >> DCC32.cfg
echo -$M- >> DCC32.cfg
echo -$O+ >> DCC32.cfg
echo -$P+ >> DCC32.cfg
echo -$Q- >> DCC32.cfg
echo -$R- >> DCC32.cfg
echo -$T- >> DCC32.cfg
echo -$U- >> DCC32.cfg
echo -$V+ >> DCC32.cfg
echo -$W- >> DCC32.cfg
echo -$X+ >> DCC32.cfg
echo -$Y2 >> DCC32.cfg
rem # ShowHints
echo -H >> DCC32.cfg
rem # ShowWarnings
echo -W >> DCC32.cfg
rem # ImageBase
echo -K$41000000 >> DCC32.cfg
rem # OutputDir
echo -E"%OpusTools%" >> DCC32.cfg
rem # OutputDir
echo -LN"%OpusTools%" >> DCC32.cfg
rem # Packages
echo -LUvcl50;vclx50 >> DCC32.cfg
rem # SearchPath
echo -U"" >> DCC32.cfg
rem # SearchPath
echo -R"" >> DCC32.cfg
rem # SearchPath
echo -O"" >> DCC32.cfg
rem # SearchPath
echo -I"" >> DCC32.cfg
rem # BuildAll
echo -B >> DCC32.cfg
rem # Min/MaxStackSize
echo -M16384,1048576 >> DCC32.cfg

"\Bin\DCC32.exe" .dpr %1 %2 %3 %4 %5 %6 %7 %8 %9
if errorlevel 1 goto GotError
goto Finish

rem # Got an error. Wait for user input
:GotError
echo Error!
pause

:Finish
del DCC32.cfg
if exist DCC32.cf~ ren DCC32.cf~ DCC32.cfg
if exist .cf~ ren .cf~ .cfg
Echo ******* Done. *******

:End
==================================================================
Nun müssen nur noch folgende Anpassungen gemacht werden:
Now just adjust the following things:
=> Projekt Datei/ Project file
Ex / Bsp: Project1
=> Delphi Pfad/ Delphi path
Ex / Bsp: C:\Programme\Borland\Delphi5
=> Suchpfad für Units/ Search path for units
Ex / Bsp: "C:\Dev\Lib;C:\Dev\Lib\Base"

 

Bewerten Sie diesen Tipp:

dürftig
ausgezeichnet


Copyright © by SwissDelphiCenter.ch
All trademarks are the sole property of their respective owners