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,6da02c98ea5cc99c X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!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: Project file - suggestions/help needed. Date: Sun, 03 Aug 2008 11:41:20 +0100 Organization: Pushface Message-ID: References: <4895659d$0$15880$edfadb0f@dtext01.news.tele.dk> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1217760080 25749 62.49.19.209 (3 Aug 2008 10:41:20 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 3 Aug 2008 10:41:20 +0000 (UTC) Cancel-Lock: sha1:dsDYZFcyGgf+x6PvRhdk1ygKRVY= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) Xref: g2news1.google.com comp.lang.ada:1425 Date: 2008-08-03T11:41:20+01:00 List-Id: Thomas writes: > Hey all, > > I'm trying to learn how to setup project files. This is what I'm > currently using: > > http://pastebin.ca/1091592 I suppose we ought to say why each setting is in our GPRs! We can use Ada-style comments (advice I'm not very good at taking myself). You have a lot of settings there that I don't recognise. For the Compiler, I set all standard warnings (except elaboration-order) and styles, with normal optimisation: -gnatwaL -gnatqQafoy -O2 though I'm not sure about qQ. I think -E belongs with the Binder, not the Builder. I specify debug symbols with -g on the Builder. > 1. A fairly well optimized executable > 2. Generate as many style warnings as possible > 3. Enable Ada 2005 extensions > 4. It should work for basic Ada projects, coded by two beginners > > Also, it looks as if I will be needing XML/Ada for the project I'm > currently working on. How would I go about adding the XML/Ada stuff to > my project file? Would I just move all the XML/Ada source files to my > source/ directory, and that would be it? XML/Ada is meant to be installed, which would I suppose create an xmlada.gpr, then you'd either ensure that that was on your ADA_PROJECT_PATH and say eg with "XMLAda.gpr"; or with "/full/path/to/XMLAda.gpr"; (I don't know the actual file name!) However, I see that for my XML/Ada-using project I've just said Home := external ("HOME"); for Source_Dirs use ( ".", Home & "/xmlada/**", Home & "/bc" ); ie all Ada source under ~/xmlada. Might have to be careful if there is test source under there (this was with 2.1). --S