Previous: Building aggregate library projects, Up: Aggregate Library Projects


11.8.2 Syntax of aggregate library projects

An aggregate library project follows the general syntax of project files. The recommended extension is still .gpr. However, a special aggregate library qualifier must be put before the keyword project.

An aggregate library project cannot with any other project (standard or aggregate), except an abstract project which can be used to share attribute values.

An aggregate library project does not have any source files directly (only through other standard projects). Therefore a number of the standard attributes and packages are forbidden in an aggregate library project. Here is the (non exhaustive) list:

The only package that is authorized (albeit optional) is Builder.

The Project_Files attribute (See see Aggregate Projects) is used to described the aggregated projects whose object files have to be included into the aggregate library. The environment variables ADA_PROJECT_PATH, GPR_PROJECT_PATH and GPR_PROJECT_PATH_FILE are not used to find the project files.