如何在命令行上编译我的delphi项目? [英] How do I compile my delphi project on the command line?
问题描述
有人曾经设法编译Delphi 6& 7(不是任何Delphi> 7)项目使用命令行?
我看到的所有指令都不清楚什么确切需要去哪里!
我正在寻找一步一步的指示。
答案应该限制在Delphi 6& 7,我理解Delphi2006和>使用MSBuild这是容易得多。
链接也很高兴。
Gath
这不难做。我在我的机器上有一个标准的Delphi 5安装,当我打开一个命令提示符,导航到 $(DELPHI)\Demos\Threads
目录并输入 dcc32.exe thrddemo.dpr
该应用程序是在命令行上构建的。
对于您自己的项目,您可能需要添加一些开关以包括文件目录,输出目录,定义或类似的东西。运行 dcc32.exe
(不带参数)提供了开关和参数的列表。
对于重复性,您应该创建一个批处理文件或一个常规的Makefile。
请注意,Delphi目录中的项目 cfg
和常见的 dcc32.cfg
。有关如何影响构建的一些信息,请参阅 Delphi上的此链接Wikia 。
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屋!