Re: Delphi language support in CMake build system
- From: Marco van de Voort <marcov@xxxxxxxx>
- Date: Tue, 21 Oct 2008 10:38:50 +0000 (UTC)
On 2008-10-18, Rob Kennedy <me3@xxxxxxxxxxx> wrote:
But yes, your point remains: There is not a one-to-one correspondence
between primary input file extension and primary output file extension.
A DPR file can yield either an EXE file or a DLL. (Or anything else,
really. See the $OUTPUTEXT compiler directive.)
To state the obvious: the extensions are conventions for the IDE, the
actual compiler cares less:
1) the compiler will happily compile a file with any extension, as long as
the base name matches the unit (module) name.
2) The autobuilder has a list of extensions to search for, .pas mostly, FPC
also .pp
3) main programs in-source name (the program statement) is ignored, and
mainprograms don't have any filename convention at all, as far as the
compiler is concerned.
All this as a first order approx. There might be exceptions for "special"
projects/mainfile types.
If you just give dcc32 the names of your project files, it will go out
and compile the units it needs. (In fact, as you can see from the output
of c.pas, it looks like dcc32 can get a little confused if you ask it to
compile standalone units.) You don't need an external build system to
determine which of your units have been modified and which units depend
on them, or to compile each of those units separately. Delphi's compiler
does all that for you, not just by looking at file timestamps, but by
checking whether the interfaces of units have changed.
(note to Eric: this aspect is what I mean with "autobuilder" in my other
mails. Sorry if I didn't explain it there properly)
.
- References:
- Delphi language support in CMake build system
- From: eric.lemings@xxxxxxxxx
- Re: Delphi language support in CMake build system
- From: Rob Kennedy
- Delphi language support in CMake build system
- Prev by Date: Re: Delphi language support in CMake build system
- Next by Date: Inherited explained
- Previous by thread: Re: Delphi language support in CMake build system
- Next by thread: Re: Delphi language support in CMake build system
- Index(es):
Relevant Pages
|