rcc: teach qmake not to use zstd when not available
The zstd feature might have different values between the host
and target, in which case qmake must tell rcc not to use zstd
when the feature is disabled.
Amends 14546d1816
Fixes: QTBUG-103794
Pick-to: 6.4 6.3 6.2
Change-Id: Ia0378742a50e2a85f59985dea2506d3dda5f28e8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
1c0a56a2f3
commit
6eda4919f2
@ -861,7 +861,7 @@ qt_feature("system-zlib" PRIVATE
|
||||
LABEL "Using system zlib"
|
||||
CONDITION WrapSystemZLIB_FOUND
|
||||
)
|
||||
qt_feature("zstd" PRIVATE
|
||||
qt_feature("zstd" PUBLIC
|
||||
LABEL "Zstandard support"
|
||||
CONDITION WrapZSTD_FOUND
|
||||
)
|
||||
|
@ -4,6 +4,7 @@ isEmpty(QMAKE_MOD_RCC):QMAKE_MOD_RCC = qrc
|
||||
|
||||
!contains(QMAKE_RESOURCE_FLAGS, -root):!isEmpty(QMAKE_RESOURCE_ROOT):QMAKE_RESOURCE_FLAGS += -root $$QMAKE_RESOURCE_ROOT
|
||||
!contains(QMAKE_RESOURCE_FLAGS, -name): QMAKE_RESOURCE_FLAGS += -name ${QMAKE_FILE_BASE}
|
||||
!qtConfig(zstd): QMAKE_RESOURCE_FLAGS += --no-zstd
|
||||
|
||||
load(resources_functions)
|
||||
qtFlattenResources()
|
||||
|
Loading…
Reference in New Issue
Block a user