buildexportdepend
Buildexportdepend is a directive used in some multi-package build systems to control how a target’s build-time dependencies are propagated to downstream packages. When enabled, the build system exports the dependency graph of a target so that consumers can reason about what they must build, even if they do not directly depend on the original source. This can improve correctness and efficiency in complex hierarchies and support more reliable incremental builds.
In practice, buildexportdepend is implemented as a boolean flag or attribute on a build rule or package
Example usage in a hypothetical package definition:
With this flag set, any package depending on libfoo can receive the full set of libfoo’s build-time
Considerations and limitations: enabling buildexportdepend can increase the size of dependency metadata and the work required
See also: dependency graph, build system, dependencies, transitive dependencies, export metadata.