Re: Delphi language support in CMake build system



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)
.



Relevant Pages

  • Re: vista avalon etc.
    ... I've done one ASP.NET program in Delphi. ... All the language "improvements" of C#, VB.NET, etc., I think, don't ... (for Pascal you surely have to ship the compiler, ...
    (borland.public.delphi.non-technical)
  • Delphi language support in CMake build system
    ... Where can I find info/tutorials on adding support for new languages to ... Look at Modules/CMakeAddNewLanguage.txt in the CMake source tree. ... language support files. ... Delphi, as I've just discovered, is quite different from the familiar ...
    (comp.lang.pascal.delphi.misc)
  • Re: Future of Delphi 7.x - need official word from Borland
    ... of the IDE is Borland innovation. ... The Delphi for .NET compiler is entirely Borland's design as it compiles ... The language has evolved with much more than just that, ... So retro-fitting new .NET language features into the Win32 compiler doesn't ...
    (borland.public.delphi.non-technical)
  • Re: Delphi marketing manager..
    ... It is a different language. ... if you were to plug a Basic compiler into Delphi that would be ... I'd call that a killer app, and I think a lot of other ClassicVB ... > If you had VB compiler to plug in. ...
    (borland.public.delphi.non-technical)
  • Re: Delphi to bytecode compiler
    ... As somebody write here, Borland presente at BorCon, some years ago, a Delphi ... to bytecode compiler, but its seem that they stop that development (may M$ ... we know that RemOBjects has a project to develop a Delphi like language ... There are already several langages (e.g. Java, Jython, ...
    (borland.public.delphi.thirdpartytools.general)