码迷,mamicode.com
首页 > Windows程序 > 详细

delphi10.2 命令行编译x64脚本

时间:2019-11-05 13:57:20      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:source   off   use   asn   inf   结构   x86   mdr   技术   

Build.bat

@echo off

@echo delphi x64编译测试
@cd /d %~dp0
@echo 设置Delphi参数信息

@set SourcePath=%~dp0.\src
@set BinPath=%~dp0Bin

@echo 编译delphi x64
if exist %BinPath%\Test64.exe del /q %BinPath%\Test64.exe 

@set DCC64EXE="%systemdrive%\Program Files (x86)\Embarcadero\Studio\19.0\bin\DCC64.exe"
if not exist %DCC64EXE% 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.

目录结构:

技术图片

delphi10.2 命令行编译x64脚本

标签:source   off   use   asn   inf   结构   x86   mdr   技术   

原文地址:https://www.cnblogs.com/onlyou13/p/11797661.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!