GPR2 Library Reference
Contents:
Overview
Loading a Project
Views
Attributes
Sources and Units
Reporter
Custom Incremental Builder
GNU Free Documentation License
Index
GPR2 Library Reference
GPR2 Library Reference
View page source
GPR2 Library Reference
Version 27.0w
Date: Jun 05, 2026
Contents:
Overview
Core capabilities
Design principles
Package naming
Key packages at a glance
Loading a Project
Using GPR2.Options
Integrating with GNATCOLL.Opt_Parse
Load parameters
Views
Project kinds
Accessing views
Iterating the tree
Navigating from a view
View properties
Aggregate projects and namespace roots
Commonly used view API
Attributes
Attribute registry
Standard attribute constants
Reading attributes from a view
Single vs. list attributes
Indexed attributes
Attribute metadata
Sources and Units
Populating source information
The Source object
Iterating sources
Compilation units
Iterating units
Ada closure
Reporter
Built-in reporters
Installing a reporter
Verbosity levels
Reporting messages manually
The Message type
Writing a custom reporter
Custom Incremental Builder
Overview
The build database
Populating the standard action graph
Executing the graph
Actions
Artifacts
Implementing a custom action
GNU Free Documentation License