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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d831f4147659ab6a X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!kanaga.switch.ch!switch.ch!newsfeed2.funet.fi!newsfeeds.funet.fi!news.cc.tut.fi!not-for-mail From: Tero Koskinen Newsgroups: comp.lang.ada Subject: Re: Using GNAT project files and libraries Date: Sat, 8 Mar 2008 13:59:56 +0200 Message-ID: <20080308135956.dbc56394.tero.koskinen@iki.fi> References: <571db1b9-0d10-4044-8217-81311a35c7f2@e31g2000hse.googlegroups.com> NNTP-Posting-Host: ip154.otanner14.opintanner.fi Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: news.cc.tut.fi 1204977596 12847 195.148.53.154 (8 Mar 2008 11:59:56 GMT) X-Complaints-To: abuse@tut.fi NNTP-Posting-Date: Sat, 8 Mar 2008 11:59:56 +0000 (UTC) X-Newsreader: Sylpheed 2.4.5 (GTK+ 2.12.7; i386-unknown-openbsd4.3) Xref: g2news1.google.com comp.lang.ada:20236 Date: 2008-03-08T13:59:56+02:00 List-Id: On Fri, 7 Mar 2008 14:37:15 -0800 (PST) Maciej Sobczak wrote: > Hi, > > I have a library composed of two packages: the root library package, > which is empty (pure), and one child containing Some_Procedure. Let's > say the packages are named L and L.Child. [snip] > > How should I write the complete A.gpr project file so that my a.adb > can use the L library? My unit testing library at http://svn.gna.org/viewcvs/ahven/trunk/ contains some examples. I have library sources in 'src'. The executable is in the 'test' directory. And there is another executable in the 'examples' directory. You probably also need to make .ali files read-only to avoid unnecessary (re)compilations. -- Tero Koskinen - http://iki.fi/tero.koskinen/