Pierre Béguet 9b9e94de82 Documentation generator initial release
Release of python script that uses gprdoc output
and generates a reStructuredText file.
Integration of the new generated reStructuredText file
into different makefiles to have a complete chain of
attributes documentation generation.

TN: V324-004
Change-Id: I02bb31dc8b19f5516e63c4432b88daad9c6b82bd
Depends-On: I06ab7e68000b587d3f43b08b8981115d0885385f
2022-04-27 11:23:07 +02:00
2022-01-06 12:50:02 +01:00
2022-01-06 12:50:02 +01:00
2016-02-23 14:31:42 +01:00
2022-04-19 15:11:37 +00:00
2022-04-21 10:02:55 +00:00

LibGPR2 - Parser for GPR Project files

INSTALLING THIS LIBRARY

The LibGPR2 library depends on some other external libraries:

Both must be installed on the system to be able to compile LibGPR2.

The library also depends on the Knowledge Base containing information of different targets, runtimes, compilers, etc.:

To regenerate the GPR parser from the Langkit grammar the following additional external modules are required:

  • Python

  • Langkit (build directory)

CONFIGURING LibGPR2

The following variables can be used to configure the libGPR2 library:

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

  • GPR2_BUILD: Control the build options: release (default) or debug.

  • PROCESSORS: Parallel compilation (default is 0, depends on the number of cores).

  • TARGET: For cross-compilation, auto-detected for native platforms.

  • SOURCE_DIR: For out-of-tree build.

  • GPR2KBDIR: Location of the Knowledge Base contents (by default library expects them in src/kb/gprconfig_kb).

To use the default options:

$ make setup

For example, to setup LibGPR2 to install a debug version on /opt/libgpr2:

$ make setup prefix=/opt/libgpr2 GPR2_BUILD=debug install

To point out the location of the Knowledge Base (assuming it has been checked out to /usr/share/gprconfig_kb):

$ make setup GPR2KBDIR=/usr/share/gprconfig_kb/db

BUILDING LibGPR2

To build all versions of the library (static, relocatable and static-pic) plus the associated tools use the provided Makefile:

$ make

Then, to install it:

$ make install

USING THE LIBRARY

See the LibGPR2 examples.

TESTING THE LIBRARY

To run the testsuite e3-core and e3-testsuite are required:

$ cd testsuite
$ ./testsuite.py

BUG REPORTS

If you got this source file from GNATtracker, please send questions and bug reports to report@gnat.com following the same procedures used to submit reports with the GNAT toolset itself.

If you read this from the GitHub repository, please open issues to send questions and bug reports.

Description
No description provided
Readme 20 MiB
Languages
Ada 88.2%
text 6.1%
Python 4.4%
C 0.9%
Roff 0.2%
Other 0.2%