简体   繁体   English

如何在不使用IDE的情况下编译Delphi应用程序?

[英]How can I compile a Delphi application without using the IDE?

I need to build the components, package, and project file without using the Delphi XE7 RAD Studio IDE. 我需要在不使用Delphi XE7 RAD Studio IDE的情况下构建组件,包和项目文件。 Is there some way to do this using command line instead? 有没有办法使用命令行来做到这一点?

  • When you installed RAD Studio, it added a shortcut in the start menu named RAD Studio Command Prompt . 安装RAD Studio后,它在名为RAD Studio命令提示符的开始菜单中添加了一个快捷方式。 Execute that shortcut. 执行该快捷方式。 You now have a command prompt window for an environment that includes all you need to build at the comment line. 现在,您有一个命令提示符窗口,其中包含您在注释行中构建所需的所有内容。
  • Change directory to the directory containing your .dproj files. 将目录更改为包含.dproj文件的目录。
  • Execute the following command: msbuild YourProjectName.dproj . 执行以下命令: msbuild YourProjectName.dproj
  • If you have multiple projects build them all. 如果您有多个项目,那么就构建它们。 Of course you'd want to script all this up in due course. 当然,你想要在适当的时候编写所有这些脚本。
  • Control the build target (clean, make, build) and configuration (debug, release, win32, win64) using command line arguments as documented here: http://docwiki.embarcadero.com/RADStudio/en/Building_a_Project_Using_an_MSBuild_Command 使用命令行参数控制构建目标(清理,制作,构建)和配置(调试,发布,win32,win64),如下所示: http//docwiki.embarcadero.com/RADStudio/en/Building_a_Project_Using_an_MSBuild_Command

For more details, start with the documentation here: http://docwiki.embarcadero.com/RADStudio/en/MSBuild_Overview 有关更多详细信息,请从以下文档开始: http//docwiki.embarcadero.com/RADStudio/en/MSBuild_Overview

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM