13 Commits

Author SHA1 Message Date
Boris Yakobowski
be1a7c6281 Refine dependencies to gnatcoll
Some of the bindings only require gnatcoll_core.
(However, xref and gnatinspect require GNATColl.Projects.)

For eng/toolchain/gnatcoll-db#5
2024-09-18 18:40:45 +02:00
Fabien Chouteau
6308e597eb Avoid shared gpr files
In the Alire index we have one crate for each of the GNATColl DB
libraries (xref, sql, sqlite, postgres). They all come from the same
repository but use different checkouts. The result is that the
"gnatcoll_db_shared.gpr" is found multiple times in the closure of a
project, e.g. for gnatcoll_xref that depends on gnatcoll_sqlite and
gnatcoll_sql. This result in an error from gprbuild.

To circumvent the issue, this patch duplicates gnatcoll_db_shared.gpr in
each of the sql, sqlite, xref and postgres folders with a different name
for each.

Part of V826-023.

Change-Id: I9058e5f88fa307806c483c02d3c0de7298018821
2022-08-26 15:41:02 +02:00
Nicolas Boulenguez
031bdcc731 projects: style improvements
Remove the Name variable, which duplicates an attribute.

Replace hardcoded Mains with Name.

Remove transitional Library_Type variable from library projects.

Make explicit that Library_Version is only useful during relocatable
builds.

Compute Library_Version from Library_Name, in case it ever differs
from Name.

Make the list of possible Library_Type values explicit (the
documentation mentions "dynamic").
2022-08-09 12:44:51 +02:00
Nicolas Boulenguez
040e1cc35e projects: explictly qualify as standard or library 2022-08-09 12:44:51 +02:00
Nicolas Boulenguez
6c87fb7476 library projects: independent selection of each shared object version 2022-08-09 12:35:10 +02:00
Nicolas Boulenguez
f96aad04cd projects: share settings, inherit build flags, drop unused variables 2022-08-09 12:34:55 +02:00
Fabien Chouteau
5bdd20ae4d gnatcoll_*.gpr: rename external GNATCOLL_BUILD into GNATCOLL_BUILD_MODE
To avoid conflict with installed gnatcoll.gpr where GNATCOLL_BUILD means
library type.

Part of S709-037.

Change-Id: I372b3fc7b35faf14a223465069968ff1e5550250
2020-09-10 18:42:36 +02:00
Fabien Chouteau
d9a2231ff0 gnatcoll_*.gpr: rename all external GNATCOLL_*_BUILD into GNATCOLL_BUILD
To have a unified external for all GNATCOLL project, as discussed for
gnatcoll-db.

Part of S709-037.

Change-Id: I5b6c843df6926288b8906a8c285a6d682394d7bf
2020-08-26 18:38:05 +02:00
Fabien Chouteau
b3a055d835 gnatcoll_*.gpr: introduce the GNATCOLL_*_BUILD external
Like for gnatcoll_core, these externals allow gnatcoll_*.gpr to be used
from a project that defines the BUILD external in an incompatible way.

Part of S709-037.

Change-Id: Ib69453688c4c3ea112aa8b00d3a610bdc2f5426f
2020-07-27 16:56:56 +02:00
Fabien Chouteau
afd3bbfb2f gnatcoll.gpr_{postgres|sql|sqlite|xref}: set default LIBRARY_TYPE
Part of T717-016.

Change-Id: Idd60944d984b2cf9c05759a87cd4b4bb8cc8e8b4
2020-07-17 16:46:32 +02:00
Vasiliy Fofanov
c067251840 Fix various typos and headers, bump copyright.
Motivated by github PR #14. no-tn-check

Change-Id: I866431c55fe0937f348d08cd8a188eb40fc8f061
2020-06-12 19:29:25 +02:00
Nicolas Roche
9e196abb0d Review makefile and project file
Part of R314-019

Change-Id: I3c83968fa5b8e61716599399c8fa9642c699b6b3
2018-03-28 16:11:59 +02:00
Dmitriy Anisimkov
5a40249df9 Move GNATCOLL.SQL from gnatcoll-core
R314-019

Change-Id: I3c91eb31c5f93b632dccb4f16bafe498dbeaf7de
2018-03-28 19:07:56 +06:00