From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d13bf824aeeb7e2b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.135.231 with SMTP id pv7mr9277456pbb.8.1330294774767; Sun, 26 Feb 2012 14:19:34 -0800 (PST) Path: h9ni12813pbe.0!nntp.google.com!news2.google.com!postnews.google.com!a15g2000yqf.googlegroups.com!not-for-mail From: Greg Moncreaff Newsgroups: comp.lang.ada Subject: Re: Question about GNAT project files. Date: Sun, 26 Feb 2012 14:18:02 -0800 (PST) Organization: http://groups.google.com Message-ID: <40c94126-d9e5-41f4-b656-43ef1ce021bb@a15g2000yqf.googlegroups.com> References: NNTP-Posting-Host: 199.46.199.232 Mime-Version: 1.0 X-Trace: posting.google.com 1330294774 15642 127.0.0.1 (26 Feb 2012 22:19:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 26 Feb 2012 22:19:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a15g2000yqf.googlegroups.com; posting-host=199.46.199.232; posting-account=95T5lgoAAADbcAro2csVwCIG3o1qfV_4 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: AELNKCHRU X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-02-26T14:18:02-08:00 List-Id: On Feb 26, 2:48=A0pm, "Peter C. Chapin" 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