bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GPRInstall usage for Ada.


From: Pascal
Subject: Re: GPRInstall usage for Ada.
Date: Sat, 11 Jul 2020 10:48:59 +0200

> Le 5 juil. 2020 à 12:24, Thomas Dickey <dickey@his.com> a écrit :
> 
> On Sun, Jul 05, 2020 at 11:13:18AM +0200, Pascal wrote:
>> Hello,
>> 
>> How to use the "NEW" installation tool gprinstall in Ada makefile as the
>> corresponding lines are disabled?
> 
> There's two issues:
> 
> a) using gprinstall, because it's "new"
> 
> b) changing the directory-layout of installed code because the "new" tool
>   cannot handle the older layout.
> 
> I'd rather keep the two separate, so I commented-out what I'd tried.
> 
> (Someone might want to file a bug report, but I won't because I found
> the developer's discussion of gnatmake vs gprbuild to be lacking...)

Thomas, I may give some clues ;-)

- gnatmake is said by Adacore to be deprecated, it is kept only as backward 
compatibility. How many times yet?
GPR tools are the only supported GNAT building suite especially with GPR 
project files.

- Adacore also recommends to use GPR project files instead the old way with the 
-xxdir switches as -aIdir, -aOdir, etc.
Thus gprinstall creates the corresponding folders and projet in oder to use the 
library simply as:
"with mylib;" in our program projet file.

I think it's preferable to let gprinstall arrange the folders especially with 
you mix static et dynamic libraries.
I propose the following changes with makefile target with "-new" suffix:

Attachment: patch01.diff
Description: Binary data

(see 
https://docs.adacore.com/gprbuild-docs/html/gprbuild_ug/companion_tools.html#installing-with-gprinstall)
Note: I'm not using -m because .adb files are useful when debugging the lib
Note: it includes also the fix for building shared libs

Regards, Pascal.
https://blady.pagesperso-orange.fr



reply via email to

[Prev in Thread] Current Thread [Next in Thread]