On 06/25/2010 12:46 PM, Stephen Leake wrote:
> Vadim Godunko <[email protected]> writes:
>
>> On 06/25/2010 04:31 AM, Roger Mc Murtrie wrote:
>>> Any idea of what might cause the moc files not to be regenerated?
>> Regeneration of moc files is a bug in the gprbuild.
>
> Can you elaborate on this? I'm maintaining gprbuild for Debian, and I
> now use it at work in a way similar to your use in qtada. Specifically,
> it runs auto_text_io to generate some packages, then gcc to compile
> them and others.
>
> This works with GNAT Pro 6.3, with one minor problem; gprbuild doesn't
> understand the ordering requirement between auto_text_io and gcc,
> so it generates some files after they are needed. This requires two
> passes of gprbuild, but the top level project file is the same.
>
> To get a clean build from scratch, it is convenient to run gprbuild with
> the auto_text_io top level project file first, then again with the main
> top level project file. But that's not strictly necessary.
>
Probably, you have slightly another approach, could you please share it
with us?
>> This bug was fixed
>
> Can you say what changed?
>
I mean gprbuild from <= GNAT GPL 2009 allows to have two project files
line this (I typed from memory, sorry for possible error):
--- p_moc.gpr ---
project P_Moc is
for Languages use ("Amoc");
for Source_Files use ("p.ads");
end P_Moc;
--- p.gpr ---
with "p_moc";
project P is
for Main use ("driver.adb");
end P;
p.ads file is presented in both projects but associated with different
languages. This trick doesn't work longer, because each file can belongs
to only one project.
_______________________________________________
qtada-users mailing list
[email protected]
http://box347.bluehost.com/mailman/listinfo/qtada-users_lists.qtada.com