From: Greg Moncreaff <moncreg@gmail.com>
Subject: Re: Question about GNAT project files.
Date: Sun, 26 Feb 2012 14:18:02 -0800 (PST)
Date: 2012-02-26T14:18:02-08:00 [thread overview]
Message-ID: <40c94126-d9e5-41f4-b656-43ef1ce021bb@a15g2000yqf.googlegroups.com> (raw)
In-Reply-To: Cc6dnSeN8twuEdfS4p2dnAA@giganews.com
On Feb 26, 2:48 pm, "Peter C. Chapin" <PCha...@vtc.vsc.edu> wrote:
> I have a library described by a project file, say lib.gpr. I also have a
> test program that exercises the library described by a different project
> file tests.gpr. Finally I have a benchmark program that does speed tests
> of the library described by a project file benchmarks.gpr.
>
> This is fine but it's a pain having three separate projects. Typically
> if I change the library I also want to update the tests and benchmarks.
> I'd like to do all that from a single instance of GPS.
>
> Thought #1: Create an empty "master" project that imports the three
> projects I mentioned above as subprojects. This doesn't work. As soon as
> I try to build something GPS tells me that my project (the master
> project) doesn't have any Ada sources. Perhaps I'm doing it wrong.
>
Look for something called an 'aggregate' project.
http://www.adacore.com/wp-content/files/auto_update/gnat-unw-docs/html/gnat_ugn_12.html#SEC152
next prev parent reply other threads:[~2012-02-26 22:19 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-26 19:48 Question about GNAT project files Peter C. Chapin
2012-02-26 20:15 ` Dmitry A. Kazakov
2012-02-26 22:18 ` Greg Moncreaff [this message]
2012-02-27 13:41 ` Peter C. Chapin
2012-02-28 16:59 ` Yannick Duchêne (Hibou57)
2012-02-28 18:10 ` AdaMagica
2012-02-28 18:14 ` Simon Wright
2012-02-27 13:08 ` Ludovic Brenta
2012-02-27 13:43 ` Peter C. Chapin
2012-02-27 15:27 ` Simon Wright
2012-02-28 2:02 ` Peter C. Chapin
2012-02-28 6:56 ` Phil Thornley
2012-02-29 0:04 ` Peter C. Chapin
2012-02-29 9:18 ` Phil Thornley
2012-02-29 14:51 ` Peter C. Chapin
2012-02-29 16:49 ` Phil Thornley
2012-02-29 17:17 ` Peter C. Chapin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox