Recently-released libarchive 3.2.0 adds support for LZ4-compression. We utilize this to enable support for LZ4-compressed tarballs in libarchiveplugin.
Libarchive requires the lz4 executable to be found in path.
Test archive:
elvisangelaccio |
Recently-released libarchive 3.2.0 adds support for LZ4-compression. We utilize this to enable support for LZ4-compressed tarballs in libarchiveplugin.
Libarchive requires the lz4 executable to be found in path.
Test archive:
Lint Skipped |
Unit Tests Skipped |
Forgot to check for lz4 executable in PluginManager::supportedMimeTypes() and PluginManager::supportedWriteMimeTypes().
Enable support for "application/x-lz4-compressed-tar" in libarchive plugin depending on installed libarchive version.
Use target_compile_definitions() in cmake to set a #define in cpp file for libarchive plugin. This is needed to disable code which requires libarchive 3.2.0 on older versions.
plugins/libarchive/CMakeLists.txt | ||
---|---|---|
79 ↗ | (On Diff #4359) | The target_compile_definitions() call needs to be after the add_library() call. |