Re: Delphi language support in CMake build system
- From: Bart <broersma.juda_ANTISPAM_@xxxxxxxxxx>
- Date: Mon, 20 Oct 2008 19:54:36 +0200
Op Mon, 20 Oct 2008 08:45:13 -0700 (PDT) schreef
"eric.lemings@xxxxxxxxx" <eric@xxxxxxxxxxx>:
On Oct 17, 11:53 pm, Rob Kennedy <m...@xxxxxxxxxxx> wrote:
eric.lemi...@xxxxxxxxx wrote:...
make CMake aware of this.
What, in particular, does CMake need to be aware of?
After CMake finds the Delphi compiler (or any language compiler/
translator/interpreter for that matter), it does a sanity check by
building a small program in that language. Without having to
customize
a lot of CMake's internal scripting, the tool, by default, will assume
a
typical C/C++ compile/link cycle to build a simple test program.
Example (on most Unix systems):
$ ls
a.c
$ cat a.c
int main () { return 0; }
$ cc -c a.c
$ ls
a.c a.o
$ cc a.o -o a
$ ls
a a.c a.o
$ ./a
$ echo $?
0
This doesn't really apply to Delphi since, AFAICT, there is no way to
compile and then link a simple Delphi program. (There probably is and
I'm just not aware of it. Assuming there is, could someone post an
example, complete with build commands? If there isn't, I'll have to
do a lot more customization of CMake's internal scripting.)
Thanks,
Eric.
Delphi used to have a commandline compiler (in D3 it was called
dcc32.exe)
F:> type hello.pas
{$APPTYPE CONSOLE}
program hallo_world;
begin
writeln('Hello World');
end.
F:>dcc32 hello.pas
Delphi for Win32 Version 10.0 Copyright (c) 1983,97 Borland
International
hello.pas(8)
9 lines, 0.60 seconds, 10184 bytes code, 1377 bytes data.
F:>dir hello*
HELLO PAS 87 20-10-08 19:48 hello.pas
HELLO EXE 15.360 20-10-08 19:49 hello.exe
I'm not sure if this still applies to newer Delphi versions.
Bart
--
Bart Broersma
broersma.juda_ANTISPAM_@xxxxxxxxxx
(ff _ANTISPAM_ wegpoetsen uit dit adres natuurlijk)
.
- Follow-Ups:
- Re: Delphi language support in CMake build system
- From: eric.lemings@xxxxxxxxx
- Re: Delphi language support in CMake build system
- References:
- Delphi language support in CMake build system
- From: eric.lemings@xxxxxxxxx
- Re: Delphi language support in CMake build system
- From: Rob Kennedy
- Re: Delphi language support in CMake build system
- From: eric.lemings@xxxxxxxxx
- Delphi language support in CMake build system
- Prev by Date: Re: Delphi language support in CMake build system
- Next by Date: Re: Delphi language support in CMake build system
- 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
|