This little repository uses Alire to download the libadalang-tools source code, build, and install tools like gnatpp
and gnatmetric
to a desired location.
Make sure you have Alire installed. Then clone this repository:
$ git clone https://github.com/dinkelk/libadalang_tool_builder.git
To build:
$ cd libadalang_tool_builder
$ alr build --release
This can take a while. Install the binaries by running:
$ sh install.sh /path/to/destination/bin
Alternatively, there is a Dockerfile available with the libadalang tools precompiled and preinstalled.
$ alr init --bin libadalang_tool_builder
$ cd libadalang_tool_builder
Then I added the following to the bottom of alire.toml.
[[depends-on]]
libadalang_tools = "23.0.0"