如何在命令行上编译我的delphi项目? [英] How do I compile my delphi project on the command line?
问题描述
我看到的所有说明都不是很清楚,究竟需要去哪里!
我正在寻找一步一步的指示。
答案应限于Delphi 6& 7,我明白Delphi2006和>使用MSBuild这是更容易。
链接也很高兴。
Gath
这不难做到。我的机器上安装了标准的Delphi 5,当我打开命令提示符时,导航到 $(DELPHI)\Demos\Threads
目录并输入 dcc32.exe thrddemo.dpr
应用程序是建立在命令行上的。
对于您自己的项目,您可能需要添加一些开关以包括文件目录,输出目录,定义或类似的东西。运行 dcc32.exe
没有参数给出一个开关和参数的列表。
对于重复性,您应该创建批处理文件或常规Makefile。
请注意,Delphi目录中的项目 cfg
文件和常用 dcc32.cfg
包含重要设置。有关它们如何影响构建的一些信息,请参见在Delphi维基中的此链接。
Has anyone ever managed to compile there Delphi 6 & 7 (NOT any Delphi > 7 ) project using the command line?
All the instructions i see are not very clear on what exactly need to go where!
Am looking for step by step kind of instructions.
Answers should be limited to Delphi 6 & 7, i understand Delphi2006 and > uses MSBuild which is far much easier.
Links are also high appreciated.
Gath
This is not difficult to do. I have a standard Delphi 5 install on my machine here, and when I open a command prompt, navigate to the $(DELPHI)\Demos\Threads
directory and enter dcc32.exe thrddemo.dpr
the application is built on the command line.
For your own project you may need to add some switches to include file directories, output directories, defines or similar things. Running dcc32.exe
without parameters gives a list of switches and parameters. It is all described in the documentation, as well.
For repeatability you should create a batch file or a regular Makefile.
Note that both the project cfg
file and the common dcc32.cfg
in the Delphi directory contain important settings. For some information about how they affect the build see for example this link on Delphi Wikia.
这篇关于如何在命令行上编译我的delphi项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!