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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC 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-7-bit Received: by 10.68.241.37 with SMTP id wf5mr9093472pbc.4.1330287351721; Sun, 26 Feb 2012 12:15:51 -0800 (PST) Path: h9ni12498pbe.0!nntp.google.com!news2.google.com!news.glorb.com!feeder.erje.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Question about GNAT project files. Date: Sun, 26 Feb 2012 21:15:49 +0100 Organization: cbb software GmbH Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: kuQH/mT1psJwQvBx6E6CEw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-02-26T21:15:49+01:00 List-Id: On Sun, 26 Feb 2012 14:48:56 -0500, 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. with "../lib.gpr"; project Lib.Tests is for Main use (); package Compiler renames Lib.Compiler; package Binder renames Lib.Binder; package Builder renames Lib.Builder; package Linker renames Lib.Linker; end Lib.Tests; P.S. Lib is not really a library, rather a project containing the source files of the library. For a true library, you would need a separate project specially for building it static, dynamic, debug, release. I usually generate this from a script because it depends on the target due to various packaging policies. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de