Documentation
Docs/en/reference/packages/declaration.md
Package Declaration Grammar
Generated reference. Do not edit this page directly. Update
BuildTools/PackageInterface.jsonorBuildTools/package.py, then runpython BuildTools/docs_package.py --write.
| Index | Declaration | Matrix | Payloads | CLI | Canonical JSON |
Declare a named package target and one or more binary payloads.
Stable ID: package.declaration.DefinePackage
Source: BuildTools/cmake/helpers/Build.cmake; consumer: BuildTools/cmake/stages/Packages.cmake.
DefinePackage(<name>
CONFIG <config>
BINARY <target> <platform> <arch[+arch...]> <pack[+pack...]> [POSTFIX <value>]
[BINARY ...]
)
Per-binary modifiers
DefinePackage requires CONFIG. Each BINARY becomes one package.py invocation. POSTFIX is optional and belongs only to the immediately preceding BINARY; it has no package-wide fallback.