Files
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
..
2022-08-26 15:41:02 +02:00
2018-05-23 11:52:19 -04:00

The GNAT Components Collection (GNATCOLL) - Sqlite

This component extends the GNATCOLL.SQL hierarchy for the sqlite3 DBMS.

Dependencies

This component requires the following external components, that should be available on your system:

  • gprbuild
  • gnatcoll-core
  • sqlite3 if you are using external library

Configuring the build process

The following variables can be used to configure the build process:

General:

prefix : location of the installation, the default is the running GNAT installation root.

BUILD : control the build options : PROD (default) or DEBUG

PROCESSORS : parallel compilation (default is 0, which uses all available cores)

TARGET : for cross-compilation, auto-detected for native platforms

SOURCE_DIR : for out-of-tree build

INTEGRATED : treat prefix as compiler installation (yes/no) this is so that installed gnatcoll project can later be referenced as predefined project of this compiler; this adds a normalized target subdir to prefix default is "no"

Component-specific:

GNATCOLL_SQLITE : Sqlite3 implementation to use (embedded/external)

To use the default options:

$ make setup

Building

The component is built using a standalone GPR project file.

However, to build all versions of the library (static, relocatable and static-pic) it is simpler to use the provided Makefile:

$ make

Then, to install it:

$ make install

Bug reports

Please send questions and bug reports to report@adacore.com following the same procedures used to submit reports with the GNAT toolset itself.