HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gprbuild — A high-level build tool for projects written in Ada and other languages (C/C++/Fortran). More inform

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandgprbuildlevelbuildclitoolhighfor

Problem

How to use the gprbuild command: A high-level build tool for projects written in Ada and other languages (C/C++/Fortran). More information: <https://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html>.

Solution

gprbuild — A high-level build tool for projects written in Ada and other languages (C/C++/Fortran). More information: <https://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html>.

Build a project (assuming only one *.gpr file exists in the current directory):
gprbuild


Build a specific [P]roject file:
gprbuild -P {{project_name}}


Clean up the build workspace:
gprclean


Install compiled binaries:
gprinstall --prefix {{path/to/installation_directory}}

Code Snippets

Build a project (assuming only one `*.gpr` file exists in the current directory)

gprbuild

Build a specific [P]roject file

gprbuild -P {{project_name}}

Clean up the build workspace

gprclean

Install compiled binaries

gprinstall --prefix {{path/to/installation_directory}}

Context

tldr-pages: common/gprbuild

Revisions (0)

No revisions yet.