post_build
post_build
Type: object or list of object
Properties for post-build steps to be performed for this project. The project may reference an SDK template profile (A), or an existing, specific post-build file (B). When generating a project referencing an SDK template profile, the .slcp file shall be rewritten to point to the path of the resolved post-build file.
Key |
Required |
Type |
Description |
profile |
A |
String |
The ID of the post-build profile to use from the SDK as a template for this project. If the requested profile doesn't exist in the SDK, an error is raised. |
path |
B |
String |
Path to post-build file. |
condition |
No |
List of features |
The post-build file or profile is added if all the given features are present |
unless |
No |
List of features |
The post-build file or profile is added unless any of the given features are present |
After resolving conditions, a maximum of one post-build file or profile can be associated with a project. Tools must handle the scenario where multiple conditions are true by selecting the first matching post-build file or profile. A warning may optionally be emitted.
Example:
| post_build:
profile: trustzone-secure
|
| post_build:
- profile: trustzone-secure
condition: [foo]
- profile: trustzone-secure-alt
unless: [foo]
|
| post_build:
path: my_project.slpb
|
| post_build:
- path: my_project_a.slpb
condition: [foo]
- path: my_project_b.slpb
condition: [bar]
|