Questions tagged [gprbuild]
29 questions
1
vote
0 answers
Why does gprbuild behave differently when building a library on Linux and Windows?
I'm porting a dynamic Ada library from Windows to CentOS 7 with the following options:
for Library_Kind use "dynamic";
for Library_Auto_Init use "False";
for Library_Interface use ("my_lib_interface");
On Windows, gprbuild starts by compiling…

chameleon
- 41
- 5
1
vote
1 answer
External configuration of Project_Version in gpr file
With gnatpro 19.1, I'm trying to add gnathub to my project and am wondering how to set dynamically Project_Version as in:
package Dashboard is
for Project_Version use @git --describe --tags@; -- this needs to be updated.
end Dashboard;
I can't…

Vser
- 578
- 4
- 18
1
vote
1 answer
Determine required Ada source files for project build
Imagine a large Ada project build with GPRbuild and a single *.gpr project file. The source directory contains many Ada package specification and body files but a few of them are not required to build the project (an executable).
Does GPRbuild…

Marcello90
- 1,313
- 4
- 18
- 33
1
vote
2 answers
Shell command to compile C in Gprbuild
Using GtkAda, I'm trying to use the resource API to include the Glade file directly inside my code.
For this, we can generate C code from a set of resources using glib-compile-resources which can then be linked to the Ada code.
The problem is that…

Frédéric Praca
- 1,620
- 15
- 29
1
vote
0 answers
'With-in' duplicate GPRBuild name files
I try to build a_project (3rd party) where:
a_project.gpr
--> with config.gpr
--> with a_lib.gpr
a_lib.gpr
--> with config.gpr
note 1: config.gpr in a_lib and a_project are distinct files.
note 2: both config.gpr are 'abstract project'.
The…

douche_satan
- 179
- 2
- 7
1
vote
1 answer
Profiling GPRBuild
I have a large GPR based project that can take over 30 minutes to compile.
Having analyzed the build process I noticed many obvious inefficiencies (multiple calls to gprbuild rather than aggregates, excessive use of alternative files rather than…

LambdaBeta
- 1,479
- 1
- 13
- 25
0
votes
0 answers
is there a way to make gprconfig use $USER for pathnames so that output file is independent of logged-in USER?
I created gpr file for mixed language project by running gprconfig. Unfortunately the resulting gpor file has fixed usernames in every path, eg /home/tomsmith/.... I need to make gprconfig generate, instead, something like /home/$USER/... so the…

capt tuttle
- 1
- 1
0
votes
0 answers
GPRBUILD and multiple file suffix (.cc, .cpp)
The GNAT Project files (.gpr) allow to specify the suffix of source code for compilation.
For example:
package Naming is
for Spec_Suffix ("c++") use ".h";
for Body_Suffix ("c++") use ".cc";
end Naming;
However in some cases, like C++ you…

maxime-esa
- 215
- 1
- 9
0
votes
1 answer
How to install gprbuild on Linux - Centos7
I have recently dowloaded GNAT Community on my Linux machine (Centos7).
Within /home/parallels/opt/GNAT/2019 there is a folder gprbuild, my understanding is that to install this I need to execute the bootstrap.sh script that is located within…

Lloyd Thomas
- 345
- 2
- 12
0
votes
0 answers
Building ada with gcov option
I have some trouble to compile an Ada project with gcov.
There are my options :
gprbuild -P project.gpr -XOS=Linus -j2 -s -k -p -cargs --coverage -largs --coverage
Compilation is ok (I see --coverage when the adb are compiled) but the linking is ko…

A.Pissicat
- 3,023
- 4
- 38
- 93
0
votes
1 answer
GPRbuild: `runtime` attribute ignored in aggregated project
I am working on a few libraries for coding Arduinos in Ada. Each library is its own project, and I have an aggregate project that aggregates the libraries. I need to specify the runtime for each project since they are running on different chips. So…

Rodeo
- 151
- 9
0
votes
1 answer
Can GprBuild be used with GNAT to make non-GPL software?
I want to use GprBuild to create a product not licensed under the GPL. Is this possible, and what variant of it and GNAT would I need to use for this to be legal?
I read that in order to make an application not licensed under the GPL with GNAT, I…

silentTeee
- 187
- 10
0
votes
2 answers
In Adacore's GPR file, how can I set the compiler to exclude file with full path
I have a project which contains several files which have the same name but in differents folders.
Ex :
->sources
->src
- a.c
- b.c
->stub
- a.c
- z.c
In my gprfile I included the source with
for Source_Dirs use (…

LnlB
- 180
- 2
- 11
-1
votes
1 answer
How to exclude with GPRbuild some functions?
I have an executable in Ada compiled with gprbuild.the executable use some simple function (like sin e cos).This executable is operating in a App binded to a POS (Partition Operating System) designed with vxwork. Once recompiled the whole process…

Giovanni
- 3
- 2