This chapter explains how to build and install the library.
Before building the library, you will need:
- Ada Utility Library available at https://github.com/stcarrez/ada-util.
First get, build and install the Ada Utility Library.
The library uses the
configure script to detect the build environment,
check for Ada Utility Library library.
configure script provides several standard options
and you may use:
--prefix=DIRto control the installation directory,
--enable-sharedto enable the build of shared libraries,
--disable-staticto disable the build of static libraries,
--enable-distribto build for a distribution and strip symbols,
--disable-distribto build with debugging support,
--enable-coverageto build with code coverage support (
--with-ada-util=PATHto control the installation path of Ada Utility Library,
--helpto get a detailed list of supported options.
In most cases you will configure with the following command:
After configuration is successful, you can build the library by running:
After building, it is good practice to run the unit tests before installing the library. The unit tests are built and executed using:
And unit tests are executed by running the
bin/security_harness test program.
The installation is done by running the
If you want to install on a specific place, you can change the
prefix and indicate the installation
direction as follows:
make install prefix=/opt
To use the library in an Ada project, add the following line at the beginning of your GNAT project file: