comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: gnat Project files
Date: Wed, 4 Nov 2009 15:50:59 +0100
Date: 2009-11-04T15:50:59+01:00	[thread overview]
Message-ID: <1tzhcfeh461no.1ulcgpyaijyz4.dlg@40tude.net> (raw)
In-Reply-To: 2b75c222-406d-45ae-b091-2f7a4047d3ef@p35g2000yqh.googlegroups.com

On Wed, 4 Nov 2009 06:20:32 -0800 (PST), Hibou57 (Yannick Duch�ne) wrote:

> On 4 nov, 14:23, AdaMagica <christoph.gr...@eurocopter.com> wrote:
>>> Yes, I have the same problem too. So far the best solution I know is:
>>
>>> with "common.gpr";
>>> project Dependent is
>>> � �for Object_Dir use Common'Object_Dir;
>>
>> This is not the best solution, it's *the* solution AdaCore has in mind.
> 
> Currently, I do not use GPS, nor the GNAT project facilities, but
> still have a question : is it possible to use a relative path for this
> common path ? I mean, a relative path which would be interpreted
> relatively to another path specific to each project.

Sure. For example:

 � for Object_Dir use "../../" & Common'Object_Dir;

P.S. '/' works under Windows as if it were '\'. Also you should better use
all quoted file names in lower case to make it working under both Linux and
Windows.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  parent reply	other threads:[~2009-11-04 14:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-04  2:02 gnat Project files RasikaSrinivasan@gmail.com
2009-11-04  9:09 ` Dmitry A. Kazakov
2009-11-04 13:23   ` AdaMagica
2009-11-04 14:20     ` Hibou57 (Yannick Duchêne)
2009-11-04 14:39       ` AdaMagica
2009-11-04 17:51         ` Robert A Duff
2009-11-04 14:50       ` Dmitry A. Kazakov [this message]
2009-11-04 15:29         ` Hibou57 (Yannick Duchêne)
2009-11-05 10:22 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox