Skip to content
GNAT Components Collection – Bindings to C libraries
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gmp setup_support.py: introduce a --library-types config option Feb 8, 2019
iconv */setup.py: remove obsolete support for --disable-shared Feb 8, 2019
lzma */setup.py: remove obsolete support for --disable-shared Feb 8, 2019
python S402-005 Public subprogram to obtain backtrace of Python execution. Apr 4, 2019
readline */setup.py: remove obsolete support for --disable-shared Feb 8, 2019
syslog */setup.py: remove obsolete support for --disable-shared Feb 8, 2019
testsuite testsuite/drivers: fix a typo (missing dash in command line) Feb 8, 2019
zlib */setup.py: remove obsolete support for --disable-shared Feb 8, 2019
.gitattributes Simplify API for header storage pool Mar 22, 2017
.gitignore
.gitreview Initial version of gnatcoll-bindings module. Oct 29, 2017
COPYING.RUNTIME Add GPLv3 run-time license. Dec 20, 2011
COPYING3 Update GPL to version 3 Dec 20, 2011
README.md
gen_gps_help.py Initial version of gnatcoll-bindings module. Oct 29, 2017
gnat_debug.adc Initial version of gnatcoll-bindings module. Oct 29, 2017
setup_support.py
version_information

README.md

The GNAT Components Collection (GNATcoll) - Bindings

This is the bindings module of the GNAT Components Collection. Please refer to individual components for more details.

Dependencies

This module depends on the following external components, that should be available on your system:

  • GPRbuild
  • gnatcoll-core
  • As well as relevant third-party libraries you need to build bindings for.

Building

The components of GNATcoll Bindings are built using standalone GPR project files. To build each of them you can simply do:

$ gprbuild -P <component>/gnatcoll-<component>.gpr

However, this method has several limitations:

  • it builds one version of the library (static, relocatable and static-pic) at a time
  • it might depend on the environment (C_INCLUDE_PATH, LIBRARY_PATH, ...)

In order to simplify that process, each component contains a Python script called setup.py. Each script provides the following subcommands: build, install, clean, uninstall.

On the first call to build, the user can setup some preferences. You can do setup.py build --help to get the list of available options for each module. After first call previous preferences will be reused unless you use the --reconfigure switch.

Note that you can perform an out-of-source-tree build by just invoking setup.py from another directory.

Installing

In order to install a given component, either call gprinstall or use setup.py script:

$ setup.py install --prefix=some_path

Note that if --prefix is not used, then projects will be installed into the location of the used compiler.

Bindings

The following bindings are provided:

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.

You can’t perform that action at this time.