26 Commits

Author SHA1 Message Date
Joel Brobecker
38a8e1e337 Replace references to report@adacore.com with support@adacore.com
The latter is now our official email address for support services,
so update our README files accordingly.
2025-02-18 14:44:33 +04:00
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
anisimko
0819d68de5 Remove unused package references
no-tn-check

GNAT style check became more strict.

Change-Id: I24b59f7b3ffdfa58d8a54b3ede6bfa56fbdcc46d
2020-09-14 11:12:41 +06: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
750379af7b gnatcoll_{postgres2ada|postgres|xref}.gpr: unifiy default value for BUILD
Part of T717-016.

Change-Id: Iacf0b56f7c6c1ab4670c8fc5f0fd36963b41dce3
2020-07-17 16:46:39 +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
anisimko
5c77364d3d Fix case sensitivity of the prepared statement name
T315-007

Make prepare statement name case sensitive on postgres. Before this change
the name of prepared statement was sent to postgres server unquoted in
direct SQL statement PREPARE. As a result, the name was stored in lowercase
in the database server session. PQexecPrepared API call with the statement
name in original casing returned with error about failure to find the
prepared statement. To fix that, we use PQprepare call (available starting
from postgres version 8.0) or quoted name in direct SQL PREPARE statement in
older postgres versions.

Change-Id: I7ba455908de4d768f7bdc57102359ddfb5e6aaae
2020-03-20 18:48:30 +01:00
Vasiliy Fofanov
6d85dd1e76 Update copyright headers (no-tn-check)
Change-Id: Ie0bb124d3b360c37372f10ce8645af35a08fc03a
2019-05-28 18:48:19 +02:00
Pierre-Marie de Rodat
22f18fb3b2 Disable parallelism in Makefiles
(no-tn-check)

Change-Id: Iccd88aad5fa9a3e2e8b61ed060d7cb1f0549f8bb
2018-05-09 16:21: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
Nicolas Roche
01b7285c4e Fix path to version_information
Part of R314-020

Change-Id: I56ab27fa0e32b27f269f2c94b2fe688fba457849
2018-03-20 10:36:14 -04:00
Dmitriy Anisimkov
7ff0255592 Add db2ada routine for all available DB backends
Change-Id: Idcc8bbac22b110bdab8f204529ee5b26d90c6d55
2018-02-22 00:14:24 +06:00
Vadim Godunko
4247e9ce0c QB01-037 Set library kind for libgpr.
Change-Id: Iffb6a6eca2c3ef76c6de5d2caa96bc8ddfe95ceb
2018-02-07 10:54:38 +01:00
Vasiliy Fofanov
86c928de85 Rename projects to avoid backward compatibility issues
Part of R117-015

Change-Id: I257dd1a2bb26853102226484d8d623e249d3eb6d
2018-01-17 17:59:01 +01:00
Dmitriy Anisimkov
5bc629ad27 New Setup routine support
QB01-040

Rename libraries due to standalone library name have to be Ada indentifier.
Add control under TEMPLATES build parameter.

Change-Id: I6dea946764acbc8dd59c3d0acf879891c8026449
2017-11-29 14:33:09 +06:00
Dmitriy Anisimkov
115acab753 Remove obsolete routines
Change-Id: Ic8d7e48d1057a735bb64fabed0c5c5f0945b9f83
2017-11-23 14:10:53 +01:00
Dmitriy Anisimkov
dfebb72bee Adding -lpq in Library_Options is only relevant for relocatable
Doing likewise in static libraries does not work as the linker it is
then considered as an object.

Change-Id: Ia974790cefd97243cba32e726de48bd4c148776c
2017-11-22 10:57:59 +02:00
Vasiliy Fofanov
c35a79f5b7 Compute normalized target and use it throughout. P909-033
Change-Id: I72dac0e351071db8f99efa206342a83796df28ea
2017-10-31 17:09:47 +01:00