Hello,

I just have added QtAda's Meta Object Compiler support to the GPRbuild tool. This allows to use only GPRbuild for application build and avoid to use any Makefile mystery ;-)

Anyone who want to check GPRbuild integration can download and install latest QtAda 2.1.0 snapshot from

http://www.qtada.com/en/download.html

Please note, if you install QtAda with different prefix when GNAT GPL 2008, you also need to copy file ${qtada_prefix}/share/gprconfig/amoc.xml to the ${gnat_prefix}/share/gprconfig directory.

For example, for build t4 tutorial you need to write two GNAT Project files.

First, primary project file t4.gpr:

with "t4_moc";
project T4 is
   for Main use ("main.adb");
   for Object_Dir use ".objs";
   for Source_Dirs use (".", ".amoc");
end T4;

Second, auxiliary project file t4_moc.gpr:

with "qt_gui";
project T4_Moc is
   for Languages use ("Amoc");
   for Source_Files use ("my_widgets-impl.ads");
   for Object_Dir use ".amoc";
end T4_Moc;

You can use gprbuild tool for build your program:

gprbuild -p -Pt4

PS. Many thanks to the GNAT team for help!

_______________________________________________
qtada-users mailing list
[email protected]
http://lists.qtada.com/mailman/listinfo/qtada-users_lists.qtada.com

Reply via email to