Skip to content

batmanwgd/gpr

 
 

Repository files navigation

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.

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.

  • 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.

To use the default options:

$ make setup

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

$ make prefix=/opt/libgpr2 BUILD=debug install

BUILDING LibGPR2

LibGPR2 is using project file, to build it is as simple as:

$ gprbuild gpr2.gpr

Though, to build all versions of the library (static, relocatable and static-pic) plus the associated tools it is simpler to 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 GNATpython is 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.

About

The framework for analyzing the GNAT Project (GPR) files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ada 45.3%
  • Python 40.3%
  • C++ 13.8%
  • C 0.3%
  • Makefile 0.3%
  • GAP 0.0%