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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,474f983404143522 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!newsfeed101.telia.com!nf02.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Compiling Ada from another directory Date: Tue, 18 Sep 2007 22:21:02 +0100 Organization: Pushface Message-ID: References: <1189634389.893905.5800@50g2000hsm.googlegroups.com> <1189692969.193051.231830@19g2000hsx.googlegroups.com> <1190056112.291445.188680@50g2000hsm.googlegroups.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 1190150462 28337 62.49.19.209 (18 Sep 2007 21:21:02 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 18 Sep 2007 21:21:02 +0000 (UTC) Cancel-Lock: sha1:CnvREZZj3PX+TiJan5ZMwd+PXpI= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Xref: g2news2.google.com comp.lang.ada:2027 Date: 2007-09-18T22:21:02+01:00 List-Id: rotinom writes: > You're right that the Project files are rather trivial, and the > easiest way to go. However I am using a build tool called SCons, and > adding Ada support to that. It has support for dozens of languages, > and handles the dependency issues that gnatmake does by itself. I'm > just figuring out what the gnattools do under the hood, and adding > that support in. Sounds like a lot of work to do that! Have to deal with generics, inlining, all sorts of stuff; gnatbind will say 'no, you should have recompiled foo.adb' and isn't likely to say '... because it withs Bar, which has an inlined subprogram, and bar.adb has been changed in a non-trivial way'. We used Ant (I've only just figured out that the reason I have so much trouble grasping Ant is that it's procedural rather than declarative!), and had targets to use gnatmake to build the Ada bits. You used to have to do clever stuff with the gnat tools when the main program wasn't in Ada, but I believe that's much easier now (not working on that project any more, hence the vagueness).