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,80eb73f0b0257a79 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!feeder.xsnews.nl!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Recompiling? Date: Thu, 01 Sep 2005 06:28:15 +0100 Organization: Pushface Message-ID: References: <1125324015.247179.276030@g43g2000cwa.googlegroups.com> <1125329216.771128.216930@g49g2000cwa.googlegroups.com> <1125484327.398754.139480@z14g2000cwz.googlegroups.com> <1149885.BZgla1m33M@linux1.krischik.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1125552497 27408 62.49.19.209 (1 Sep 2005 05:28:17 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 1 Sep 2005 05:28:17 +0000 (UTC) Cancel-Lock: sha1:NHyFgfZHDmofOn/cW8wAxHdVayA= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:4355 Date: 2005-09-01T06:28:15+01:00 List-Id: Martin Krischik writes: > Harald Korneliussen wrote: > >> There's another pretty basic question I want to ask, about the >> correct and portable way to install something like the Booch >> components as a shared library. The package is just a bunch of >> source files. I suppose I could copy them to every project that I >> use booch on, but that seems so unclean and wasteful. I can see your point, though (here) the BC's Ada library directory seems to be about a megabyte; most of the cost comes in the instantiations. That would be different for a non-generic library, of course. > AdaCL (adacl.sf.net) has an appropriate .gpr for the booch > components. Just look into the Script directory for bc.gpr. It's appropriate if you buy in to the AdaCL view of directory structures, options etc. Not that that's a bad thing, Martin has done a great job here! I had real trouble understanding how to deal with library projects in GPRs, and (as far as I can remember) there was a problem with VxWorks anyway last time I looked (or was it Linux?). That would have been at 3.16a1, and we do not have support for Linux. So I've always been content with a plain subproject; this is what I use for ColdFrame (coldframe.sf.net): with "Options"; project BC is -- You must define the top node under which software is installed: -- for example, "/usr/local/lib" Top := external ("TOP"); -- You must define where under TOP the BCs are installed; for -- example, "bc-20030111" BC := external ("BC"); for Source_Dirs use (Top & "/" & BC); for Object_Dir use Options'Object_Dir & "/bc"; package Ide renames Options.Ide; package Builder renames Options.Builder; package Compiler renames Options.Compiler; package Binder renames Options.Binder; package Linker renames Options.Linker; end BC; but you can see that it's only intended for source inclusion -- amongst other things it assumes that each user project will have its own view of the standard Options.