comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Aggregate GPRs
Date: Mon, 07 Sep 2015 12:50:07 +0100
Date: 2015-09-07T12:50:07+01:00	[thread overview]
Message-ID: <ly8u8ixxcg.fsf@pushface.org> (raw)
In-Reply-To: 06ca8009-c7b6-45f4-b4b9-b6c036db31a6@googlegroups.com

Mark Lorenzen <mark.lorenzen@gmail.com> writes:

> On Sunday, August 30, 2015 at 7:24:01 PM UTC+2, Simon Wright wrote:
>> I see from the documentation[1] that, for projects built through the
>> aggregate project, package Builder is ignored (even if the aggregate
>> project doesn't have a package Builder?).
>> 
>> I've just found (with GPRBUILD GPL 2015) that the attributes Target and
>> Runtime are also ignored!
>
> I think this is reasonable. When aggregating several projects into an
> aggregate project, it is natural that they are build for the same
> target and same RTS. No?

No, I don't think so; what if you were building two sides of a
communications protocol to run on different hardware?

From my point of view, you can't use aggregate GPRs for cross-builds
unless you're prepared to go through hoops to set up a configuration
GPR. Which could *not* be done except on the user's compilation platform
[unless of course you know different], so I'd have to write a
complicated set of instructions for users rather than providing a set of
GPRs that could be used out of the box.

>> These features seem to me to reduce the usefulness of aggregate projects
>> to the point of uselessness. Does anyone have positive experiences with
>> them?
>
> Yes. We use an aggregate project to set an environment variable
> (LDSCRIPT) that is used by the linker to locate the linker script. The
> value is derived from a scenario variable and it would thus not be
> easy to set it in the shell before invoking GPS or command-line
> tools. The aggregate project is thus a simple wrapper around the
> "real" project.

Which is exactly what I wanted to do, but couldn't.


      reply	other threads:[~2015-09-07 11:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-30 17:23 Aggregate GPRs Simon Wright
2015-08-31 12:37 ` Stephen Leake
2015-08-31 13:39   ` Simon Wright
2015-08-31 13:45     ` Simon Wright
2015-09-07  8:41 ` Mark Lorenzen
2015-09-07 11:50   ` Simon Wright [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox