Suppress QtCompressMimeDatabase output

Add the flag to enable the verbose output of QtCompressMimeDatabase
script. Disable the verbose output by default.

Change-Id: I781037b126bef5e3aff69c0738aaea99b932b7e7
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Alexey Edelev 2022-12-01 17:01:51 +01:00
parent 4bb0086b3f
commit 487c823a2d

View File

@ -1270,6 +1270,12 @@ if(QT_FEATURE_mimetype AND QT_FEATURE_mimetype_database)
set(compression_type "gzip")
endif()
if(QT_INTERNAL_ENABLE_VERBOSE_MIME_DATABASE_COMPRESSION)
set(extra_mime_db_compressor_flags "--log-level=STATUS")
else()
set(extra_mime_db_compressor_flags "--log-level=NOTICE")
endif()
# Generate qmimeprovider_database.cpp
set(qmimeprovider_db_output "${CMAKE_CURRENT_BINARY_DIR}/.rcc/qmimeprovider_database.cpp")
add_custom_command(OUTPUT "${qmimeprovider_db_output}"
@ -1279,6 +1285,7 @@ if(QT_FEATURE_mimetype AND QT_FEATURE_mimetype_database)
-DARCHIVING_API=${archiving_api}
-DCOMPRESSION_TYPE=${compression_type}
-P "${CMAKE_CURRENT_SOURCE_DIR}/QtCompressMimeDatabase.cmake"
${extra_mime_db_compressor_flags}
DEPENDS
"${CMAKE_CURRENT_SOURCE_DIR}/QtCompressMimeDatabase.cmake"
"${corelib_mimetypes_resource_file}"