Re: Delphi language support in CMake build system



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



Relevant Pages

  • 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: The trend is to move away from Delphi...
    ... This goes for any language. ... If Delphi were in Delphi you could recompile it with FPC, ... intermediate / P-Code ... Is there a full blown delphi compiler that runs on Java then? ...
    (borland.public.delphi.non-technical)
  • Re: Delphi language support in CMake build system
    ... What, in particular, does CMake need to be aware of? ... After CMake finds the Delphi compiler (or any language compiler/ ... This doesn't really apply to Delphi since, AFAICT, there is no way to ...
    (comp.lang.pascal.delphi.misc)
  • Re: Thought for the Day
    ... > that one language could use, and even extend through normal OOP ... The issue is that the Delphi compiler isn't ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Over 100 Microsoft MVPs Have Signed Online Petition - Give Us Back VB!!
    ... My prime interest is *language* stability. ... "VB data controls" are com controls, ... > I wouldn't ever want to use them in Delphi - or in VB; ... My code is core to the app, business logic that is focused on the market I ...
    (borland.public.delphi.non-technical)