Next: Specifying Switch Settings, Previous: Specifying the Exec Directory, Up: Common Sources with Different Switches and Different Output Directories
A GNAT tool integrated with the Project Manager is modeled by a
corresponding package in the project file.
The Debug
project defines the packages Builder
(for gnatmake) and Compiler
;
the Release
project defines only the Compiler
package.
The Ada package syntax is not to be taken literally. Although packages in project files bear a surface resemblance to packages in Ada source code, the notation is simply a way to convey a grouping of properties for a named entity. Indeed, the package names permitted in project files are restricted to a predefined set, corresponding to the project-aware tools, and the contents of packages are limited to a small set of constructs. The packages in the example above contain attribute definitions.