CMake: Add a new SBOM entity type: THIRD_PARTY_SOURCES
It mirrors the Qt-specific QT_THIRD_PARTY_SOURCES one, to be used when creating an SBOM attribution target that references a 3rd party library's sources, as opposed to a complete 3rd party library. Pick-to: 6.8 Task-number: QTBUG-122899 Change-Id: I8f7f9f7386ffdc18dd8ae6ee32e39019639f5303 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 8b06d37fb08d22e9f81ae2653aeafc105fc5bb61) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
db7e6d6fed
commit
68856adf1d
@ -51,6 +51,7 @@ function(_qt_internal_sbom_handle_target_binary_files target)
|
||||
# This will be meant for user projects, and are not currently used by Qt's sbom.
|
||||
THIRD_PARTY_LIBRARY
|
||||
THIRD_PARTY_LIBRARY_WITH_FILES
|
||||
THIRD_PARTY_SOURCES
|
||||
EXECUTABLE
|
||||
LIBRARY
|
||||
TRANSLATIONS
|
||||
@ -71,6 +72,7 @@ function(_qt_internal_sbom_handle_target_binary_files target)
|
||||
QT_CUSTOM_NO_INFIX
|
||||
SYSTEM_LIBRARY
|
||||
THIRD_PARTY_LIBRARY
|
||||
THIRD_PARTY_SOURCES
|
||||
TRANSLATIONS
|
||||
RESOURCES
|
||||
CUSTOM
|
||||
|
@ -1616,6 +1616,8 @@ function(_qt_internal_sbom_get_package_infix type out_infix)
|
||||
set(package_infix "3rdparty-library")
|
||||
elseif(type STREQUAL "THIRD_PARTY_LIBRARY_WITH_FILES")
|
||||
set(package_infix "3rdparty-library-with-files")
|
||||
elseif(type STREQUAL "THIRD_PARTY_SOURCES")
|
||||
set(package_infix "3rdparty-sources")
|
||||
elseif(type STREQUAL "TRANSLATIONS")
|
||||
set(package_infix "translations")
|
||||
elseif(type STREQUAL "RESOURCES")
|
||||
@ -1665,6 +1667,8 @@ function(_qt_internal_sbom_get_package_purpose type out_purpose)
|
||||
set(package_purpose "LIBRARY")
|
||||
elseif(type STREQUAL "THIRD_PARTY_LIBRARY_WITH_FILES")
|
||||
set(package_purpose "LIBRARY")
|
||||
elseif(type STREQUAL "THIRD_PARTY_SOURCES")
|
||||
set(package_purpose "LIBRARY")
|
||||
elseif(type STREQUAL "TRANSLATIONS")
|
||||
set(package_purpose "OTHER")
|
||||
elseif(type STREQUAL "RESOURCES")
|
||||
|
Loading…
x
Reference in New Issue
Block a user