Re: Delphi language support in CMake build system



On 2008-10-17, eric.lemings@xxxxxxxxx <eric@xxxxxxxxxxx> wrote:
Cross-posted from CMake's mailing list <http://www.cmake.org/pipermail/
cmake/2008-October/024670.html> so that Delphi experts might possibly
answer the "intermediate translation" problem below:


Delphi, as I've just discovered, is quite different from the familiar
C/C++ compile/link phases assumed by CMake. For example, different
types of Delphi source files produce different types of output files
as shown below:

I think that is the least of your problems. The real problem you see is
that, is the autobuilding aspect.

You can see that if you create a few more empty units like "unit c", and
then put uses C,c1,c2,c3; into the D.pas file just after the "program"
line.

Then compile D, and you will see c..c3 auto built.

In general, with Delphi/FPC, make file systems are mostly only useful to
script external processing and various build directories together.

If you want a non trivial example, see how the main FPC/Lazarus trees work
with gmake. (and be quick, since gmake use will be eliminated soon I hope)
.