comp.lang.ada
 help / color / mirror / Atom feed
* GNAT project and search directories
@ 2009-12-28  9:44 Hibou57 (Yannick Duchêne)
  2009-12-28 10:21 ` Jean-Pierre Rosen
  2009-12-29  2:11 ` Stephen Leake
  0 siblings, 2 replies; 5+ messages in thread
From: Hibou57 (Yannick Duchêne) @ 2009-12-28  9:44 UTC (permalink / raw)


Hi all, hope you have a merry Christmas in peace

Compiling AdaDep, I've noticed different behaviors when compiling with
and without the provided GPR file.

When the compilation is done without the GPR file, I have to give
gnatmake, the path for the ASIS source directory with an -I option.

When the compilation is done with the GPR file, this option is not
needed while there is no directory specification at all for the ASIS
library path in the GPR file.

So, it seems search paths are not the same with and without a GPR
file.

I've searched the web about it, and did not find a clear explanation.

http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gnat_ugn_unw/Search-Paths-for-gnatbind.html
and http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gnat_ugn_unw/Search-Paths-and-the-Run_002dTime-Library-_0028RTL_0029.html
are just talking about ADA_PRJ_OBJECTS_FILE and ADA_PRJ_INCLUDE_FILE,
but lack explanation about how these are assigned.

Why are the paths not the same with and without a GPR file and what
are formally the difference when a a GPR file is or is not used ?

By the way, just because I feel inquisitive with it : did someone know
what is the license of the GPRBuild language ?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNAT project and search directories
  2009-12-28  9:44 GNAT project and search directories Hibou57 (Yannick Duchêne)
@ 2009-12-28 10:21 ` Jean-Pierre Rosen
  2009-12-28 12:22   ` Hibou57 (Yannick Duchêne)
  2009-12-29  2:11 ` Stephen Leake
  1 sibling, 1 reply; 5+ messages in thread
From: Jean-Pierre Rosen @ 2009-12-28 10:21 UTC (permalink / raw)


Hibou57 (Yannick Duch�ne) a �crit :
> Hi all, hope you have a merry Christmas in peace
> 
> Compiling AdaDep, I've noticed different behaviors when compiling with
> and without the provided GPR file.
> 
> When the compilation is done without the GPR file, I have to give
> gnatmake, the path for the ASIS source directory with an -I option.
> 
> When the compilation is done with the GPR file, this option is not
> needed while there is no directory specification at all for the ASIS
> library path in the GPR file.
> 
The provided build.gpr has a "with asis" line. This will search for an
asis.gpr file.

If (as recommended) you installed ASIS under the gnat root directory,
there is an asis.gpr file in <gnat-root>/lib/gnat, which is always a
default location for .gpr files.

No such mechanism exists if you don't use project files.

-- 
---------------------------------------------------------
           J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNAT project and search directories
  2009-12-28 10:21 ` Jean-Pierre Rosen
@ 2009-12-28 12:22   ` Hibou57 (Yannick Duchêne)
  0 siblings, 0 replies; 5+ messages in thread
From: Hibou57 (Yannick Duchêne) @ 2009-12-28 12:22 UTC (permalink / raw)


Thanks for this reply

On 28 déc, 11:21, Jean-Pierre Rosen <ro...@adalog.fr> wrote:
> The provided build.gpr has a "with asis" line.
Found, I've first missed it as it is the first line and I surprisingly
oftenly miss any first line if it is not preceded by a blank line (do
not know why, cognitivism may tell more).

> If (as recommended) you installed ASIS under the gnat root directory,
> there is an asis.gpr file in <gnat-root>/lib/gnat, which is always a
> default location for .gpr files.
>
> No such mechanism exists if you don't use project files.
Indeed a clean way to “ link ” to a library



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNAT project and search directories
  2009-12-28  9:44 GNAT project and search directories Hibou57 (Yannick Duchêne)
  2009-12-28 10:21 ` Jean-Pierre Rosen
@ 2009-12-29  2:11 ` Stephen Leake
  2009-12-29 12:42   ` sjw
  1 sibling, 1 reply; 5+ messages in thread
From: Stephen Leake @ 2009-12-29  2:11 UTC (permalink / raw)


"Hibou57 (Yannick Duch�ne)" <yannick_duchene@yahoo.fr> writes:

> By the way, just because I feel inquisitive with it : did someone know
> what is the license of the GPRBuild language ?

The gprbuild and related tools are GPL (with or without the GNAT
modification, depending on where you get it).

I assume by "the GPRBuild language" you mean the language used to
write GNAT Project files; *.gpr.

I don't think the language is licensed separately. Normally, the way
to license a language is to publish a language definition. The gpr
language is not documented very clearly; partly in the GNAT Reference
Manual, partly in the GNAT User guide (_not_ in the GPRBuild user
guide!). Those documents are licensed under the GNU Free Documentation
license.

This is only a concern if you are considering doing an independent
implementation of the language; is that the case?

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GNAT project and search directories
  2009-12-29  2:11 ` Stephen Leake
@ 2009-12-29 12:42   ` sjw
  0 siblings, 0 replies; 5+ messages in thread
From: sjw @ 2009-12-29 12:42 UTC (permalink / raw)


On Dec 29, 2:11 am, Stephen Leake <stephen_le...@stephe-leake.org>
wrote:
> "Hibou57 (Yannick Duch ne)" <yannick_duch...@yahoo.fr> writes:
>
> > By the way, just because I feel inquisitive with it : did someone know
> > what is the license of the GPRBuild language ?
>
> The gprbuild and related tools are GPL (with or without the GNAT
> modification, depending on where you get it).
>
> I assume by "the GPRBuild language" you mean the language used to
> write GNAT Project files; *.gpr.
>
> I don't think the language is licensed separately. Normally, the way
> to license a language is to publish a language definition. The gpr
> language is not documented very clearly; partly in the GNAT Reference
> Manual, partly in the GNAT User guide (_not_ in the GPRBuild user
> guide!). Those documents are licensed under the GNU Free Documentation
> license.
>
> This is only a concern if you are considering doing an independent
> implementation of the language; is that the case?

Also I think if Yannick was proposing to set up a business
distributing GPR scripts.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-29 12:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-28  9:44 GNAT project and search directories Hibou57 (Yannick Duchêne)
2009-12-28 10:21 ` Jean-Pierre Rosen
2009-12-28 12:22   ` Hibou57 (Yannick Duchêne)
2009-12-29  2:11 ` Stephen Leake
2009-12-29 12:42   ` sjw

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