coin: Add instructions for generating an SBOM when installing Qt
The instructions will only run if a coin platform config has the 'GenerateSBOM' feature. The -sbom configure option is not sticky across repos, similar to -headersclean, so that if a user wants to build another qt repo against a prebuilt qt, it won't try to generate the sbom automatically. That's why we append -sbom to all the repos configure args, and not just the qtbase one. Task-number: QTBUG-122899 Change-Id: Ice91cbc430826838119ce3085cbd52c0909f2746 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit d940399b3e6e9403f94190ffc71a5f5db68f51f3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
e05a60c75a
commit
fc3ac85db9
@ -473,6 +473,26 @@ instructions:
|
||||
property: features
|
||||
contains_value: UseConfigure
|
||||
|
||||
# SBOM
|
||||
- type: Group
|
||||
enable_if:
|
||||
condition: property
|
||||
property: features
|
||||
contains_value: GenerateSBOM
|
||||
instructions:
|
||||
- type: AppendToEnvironmentVariable
|
||||
variableName: COMMON_CMAKE_ARGS
|
||||
variableValue: " -DQT_GENERATE_SBOM=ON"
|
||||
- type: AppendToEnvironmentVariable
|
||||
variableName: COMMON_NON_QTBASE_CMAKE_ARGS
|
||||
variableValue: " -DQT_GENERATE_SBOM=ON"
|
||||
- type: AppendToEnvironmentVariable
|
||||
variableName: COMMON_TARGET_CMAKE_ARGS
|
||||
variableValue: " -DQT_GENERATE_SBOM=ON"
|
||||
- type: AppendToEnvironmentVariable
|
||||
variableName: COMMON_NON_QTBASE_TARGET_CMAKE_ARGS
|
||||
variableValue: " -DQT_GENERATE_SBOM=ON"
|
||||
|
||||
- type: Group
|
||||
instructions:
|
||||
- type: AppendToEnvironmentVariable
|
||||
|
Loading…
x
Reference in New Issue
Block a user