This chapter explains how to build and install the library.
Before building the library, you will need:
The build process may also need the following commands:
- make (GNU make),
- gcc (with Ada language support)
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,
--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:
By default, the library will be installed in
If you want to install the library in a specific directory, use the
--prefix option as follows:
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/wiki_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: