diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-08-28 20:05:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-04 17:05:22 (GMT) |
commit | e26f0e9dd58b839b880670d6000e7f1ebac1df94 (patch) | |
tree | 34ec16d79ceaaa538c5a645cf2c68676223f4104 /Source/CPack | |
parent | f7085d7b0a0d4cced41669b498a3d03c4a1e65df (diff) | |
download | CMake-e26f0e9dd58b839b880670d6000e7f1ebac1df94.zip CMake-e26f0e9dd58b839b880670d6000e7f1ebac1df94.tar.gz CMake-e26f0e9dd58b839b880670d6000e7f1ebac1df94.tar.bz2 |
CPack: Add generator for .tar.zst packages
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackArchiveGenerator.cxx | 6 | ||||
-rw-r--r-- | Source/CPack/cmCPackArchiveGenerator.h | 1 | ||||
-rw-r--r-- | Source/CPack/cmCPackGeneratorFactory.cxx | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackArchiveGenerator.cxx b/Source/CPack/cmCPackArchiveGenerator.cxx index e9338f2..1271b08 100644 --- a/Source/CPack/cmCPackArchiveGenerator.cxx +++ b/Source/CPack/cmCPackArchiveGenerator.cxx @@ -46,6 +46,12 @@ cmCPackGenerator* cmCPackArchiveGenerator::CreateTZGenerator() ".tar.Z"); } +cmCPackGenerator* cmCPackArchiveGenerator::CreateTZSTGenerator() +{ + return new cmCPackArchiveGenerator(cmArchiveWrite::CompressZstd, "paxr", + ".tar.zst"); +} + cmCPackGenerator* cmCPackArchiveGenerator::CreateZIPGenerator() { return new cmCPackArchiveGenerator(cmArchiveWrite::CompressNone, "zip", diff --git a/Source/CPack/cmCPackArchiveGenerator.h b/Source/CPack/cmCPackArchiveGenerator.h index 9bd1ede..f5be0aa 100644 --- a/Source/CPack/cmCPackArchiveGenerator.h +++ b/Source/CPack/cmCPackArchiveGenerator.h @@ -29,6 +29,7 @@ public: static cmCPackGenerator* CreateTGZGenerator(); static cmCPackGenerator* CreateTXZGenerator(); static cmCPackGenerator* CreateTZGenerator(); + static cmCPackGenerator* CreateTZSTGenerator(); static cmCPackGenerator* CreateZIPGenerator(); /** diff --git a/Source/CPack/cmCPackGeneratorFactory.cxx b/Source/CPack/cmCPackGeneratorFactory.cxx index f230871..4d41049 100644 --- a/Source/CPack/cmCPackGeneratorFactory.cxx +++ b/Source/CPack/cmCPackGeneratorFactory.cxx @@ -54,6 +54,8 @@ cmCPackGeneratorFactory::cmCPackGeneratorFactory() cmCPackArchiveGenerator::CreateTXZGenerator); this->RegisterGenerator("TZ", "Tar Compress compression", cmCPackArchiveGenerator::CreateTZGenerator); + this->RegisterGenerator("TZST", "Tar Zstandard compression", + cmCPackArchiveGenerator::CreateTZSTGenerator); this->RegisterGenerator("ZIP", "ZIP file format", cmCPackArchiveGenerator::CreateZIPGenerator); } |