Skip to content
Snippets Groups Projects
Commit ff56e78b authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'cpack_deb_zstd'


051da997 CPack/DEB: Add zstd compression for deb packages

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarMichael Hirsch <michael@scivision.dev>
Merge-request: !6394
parents 6edf3133 051da997
Branches
No related tags found
No related merge requests found
......@@ -274,10 +274,23 @@ List of CPack DEB generator specific variables:
Possible values are:
- lzma
- xz
- bzip2
- gzip
``lzma``
Lempel–Ziv–Markov chain algorithm
``xz``
XZ Utils compression
``bzip2``
bzip2 Burrows–Wheeler algorithm
``gzip``
GNU Gzip compression
``zstd``
.. versionadded:: 3.22
Zstandard compression
.. variable:: CPACK_DEBIAN_PACKAGE_PRIORITY
CPACK_DEBIAN_<COMPONENT>_PACKAGE_PRIORITY
......
cpack-deb-add-zstd-compression
------------------------------
* The :cpack_gen:`CPack DEB Generator` gained the
option to set :variable:`CPACK_DEBIAN_COMPRESSION_TYPE` to zstd,
which enables Zstandard compression for deb packages.
......@@ -111,6 +111,9 @@ DebGenerator::DebGenerator(
} else if (!std::strcmp(debianCompressionType, "gzip")) {
this->CompressionSuffix = ".gz";
this->TarCompressionType = cmArchiveWrite::CompressGZip;
} else if (!std::strcmp(debianCompressionType, "zstd")) {
this->CompressionSuffix = ".zst";
this->TarCompressionType = cmArchiveWrite::CompressZstd;
} else if (!std::strcmp(debianCompressionType, "none")) {
this->CompressionSuffix.clear();
this->TarCompressionType = cmArchiveWrite::CompressNone;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment