summaryrefslogtreecommitdiffstats
path: root/src/corelib/mimetypes/mime/generate.bat
Commit message (Collapse)AuthorAgeFilesLines
* Replace the scripting-based mime types compression mechanism with CMakeAlexey Edelev2022-12-011-48/+0
| | | | | | | | | | | | | | | | Use tools that compress mimetypes database directly from CMake as a fallback mechanism instead of using perl and batch scripts. Move the generating of the mimetype database resources to build-time. This removes the perl-based compression from the possible compression options. But assume that CMake-based compression should fill this gap. CMake versions less than 3.26 don't support the value of the zstd compression level higher than 9, so we prefer to use the External API. Task-number: QTBUG-108438 Change-Id: I5686a53b766a243052cfee320f570e2c3b385726 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-161-26/+1
| | | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Id880c92784c40f3bbde861c0d93f58151c18b9f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* MIME: Make the internal database direct content, not a Qt resourceThiago Macieira2019-12-101-0/+73
This saves us from having to bootstrap rcc in regular (non-cross) compilations, as it can now link to QtCore. Actually un-bootstrapping rcc is left as an exercise for the reader. This commit discovered that MSVC cannot handle constexpr arrays bigger than 256 kB, at which point it simply starts claiming that the constant expressions using it are not constexpr. ICC has a similar problem at 64 kB, but it tells you why ("note: type "const unsigned char [65537]" too large for constant-expression evaluation"). Note also that this requires gzip or zstd to be in PATH for compression to happen. RCC linked to zlib, which is always present due to the bundled copy. gzip's presence is not likely to be a problem on Unix systems, but could be for Windows users, especially MSVC ones. If gzip is not present, QtCore's size will increase by about 1910 kB of read-only (sharable) data. Change-Id: I2b1955a995ad40f3b89afffd15a3e65a94670242 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>