delphi10.2 command-line compiler script x64

Build.bat

@echo  OFF 

@echo Delphi compiler x64-test 
@ CD / D% ~ DP0
 @echo setting parameter information Delphi 

@ SET the SourcePath DP0 =% ~. \ the src 
@ SET BinPath = % ~ dp0Bin 

@echo compiled x64-Delphi
 IF  exist % BinPath% Test64 .exe del % BinPath% Test64.exe / q 

@ the SET DCC64EXE = "% SystemDrive% \ Program Files (x86) \ Embarcadero \ Studio \ 19.0 \ bin \ DCC64.exe"
 IF  not  exist % DCC64EXE% the SET DCC64EXE = "% SystemDrive % \ Program Files \ Embarcadero \ Studio \ 19.0 \ bin \ DCC64.exe "
 IF  not exist %DCC64EXE% set DCC64EXE="C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\DCC64.exe"
@set BorlandPath=%systemdrive%\Program Files (x86)\Embarcadero\Studio\19.0
if not exist %BorlandPath% set BorlandPath=C:\Program Files (x86)\Embarcadero\Studio\19.0


@set UseBuild=/build
@set RPath="%BorlandPath%\lib"
@set IPATH="%BorlandPath%\lib"
@set UPATH="%BorlandPath%\lib"

set NameSpace="Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;System;Xml;Data;Datasnap;Web;Soap;Winapi;System.Win;REST;" 

echo.
@set OTYPE=-DCheckUpdate;RELEASE;
set EXEOUTPUT="%Binpath%"

@echo 开始编译Test64.dpr......%time%
cd /d %SourcePath%\
%DCC64EXE% -$D0 -$L- -$Y- -B -Q -GD -NS%NameSpace% -D%OTYPE% -U%UPATH% -I%IPath% -R%RPath% -E%EXEOUTPUT% %UseBuild% -W-SYMBOL_PLATFORM Test64.dpr
@cd /d %~dp0

@echo Test64.dpr编译完成...%time%
@echo.

Directory Structure:

Guess you like

Origin www.cnblogs.com/onlyou13/p/11797661.html