From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: Project file - suggestions/help needed.
Date: Sun, 03 Aug 2008 11:41:20 +0100
Date: 2008-08-03T11:41:20+01:00 [thread overview]
Message-ID: <m2vdyi4bzj.fsf@mac.com> (raw)
In-Reply-To: 4895659d$0$15880$edfadb0f@dtext01.news.tele.dk
Thomas <me@pancon.dk> 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
next prev parent reply other threads:[~2008-08-03 10:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-03 8:00 Project file - suggestions/help needed Thomas
2008-08-03 10:41 ` Simon Wright [this message]
2008-08-03 11:03 ` Stephen Leake
2008-08-03 15:22 ` Gautier
2008-08-04 20:59 ` Colin_Paul_Gloster
2008-08-03 17:13 ` Jeffrey R. Carter
2008-08-03 22:09 ` Simon Wright
2008-08-04 9:17 ` Samuel Tardieu
2008-08-04 21:05 ` Colin_Paul_Gloster
2008-08-05 5:27 ` Thomas Locke
2008-08-13 21:56 ` DScott
2008-08-03 18:43 ` Gene
2008-08-04 14:24 ` Thomas Locke
2008-08-13 21:58 ` DScott
2008-08-04 20:54 ` Colin_Paul_Gloster
2008-08-05 5:26 ` Thomas Locke
2008-08-05 8:00 ` Pascal Obry
2008-08-05 8:10 ` Thomas Locke
2008-08-05 8:05 ` Jean-Pierre Rosen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox