chore(cpn): Bump miniz to v2.2.0 (#2010)

* Install miniz v2.2.0 release over v1.15
* Update interfacing to miniz and compile miniz as a library
This commit is contained in:
Neil Horne
2022-06-08 12:38:40 +10:00
committed by GitHub
parent 47a90ed38f
commit 33845b9def
17 changed files with 10317 additions and 4795 deletions
+1 -1
View File
@@ -35,4 +35,4 @@ endforeach()
qt5_wrap_cpp(storage_SRCS ${storage_MOC_HDRS})
add_library(storage ${storage_SRCS} ${storage_HDRS})
target_link_libraries(storage PRIVATE ${CPN_COMMON_LIB})
target_link_libraries(storage PRIVATE miniz ${CPN_COMMON_LIB})
+2 -4
View File
@@ -18,10 +18,10 @@
* GNU General Public License for more details.
*/
#ifndef _CATEGORIZED_H_
#define _CATEGORIZED_H_
#pragma once
#include "storage.h"
#include "miniz.h"
#include <QtCore>
#include <list>
@@ -53,5 +53,3 @@ class CategorizedStorageFormat : public StorageFormat
StorageType probeFormat();
};
#endif // _CATEGORIZED_H_
+1 -8
View File
@@ -18,17 +18,12 @@
* GNU General Public License for more details.
*/
#ifndef _ETX_H_
#define _ETX_H_
#pragma once
#include "categorized.h"
#include <QtCore>
#define MINIZ_HEADER_FILE_ONLY
#include "miniz.c"
#undef MINIZ_HEADER_FILE_ONLY
class EtxFormat : public CategorizedStorageFormat
{
Q_DECLARE_TR_FUNCTIONS(EtxFormat)
@@ -51,5 +46,3 @@ class EtxFormat : public CategorizedStorageFormat
mz_zip_archive zip_archive;
};
#endif // _ETX_H_
+1 -8
View File
@@ -18,17 +18,12 @@
* GNU General Public License for more details.
*/
#ifndef _OTX_H_
#define _OTX_H_
#pragma once
#include "categorized.h"
#include <QtCore>
#define MINIZ_HEADER_FILE_ONLY
#include "miniz.c"
#undef MINIZ_HEADER_FILE_ONLY
class OtxFormat : public CategorizedStorageFormat
{
Q_DECLARE_TR_FUNCTIONS(OtxFormat)
@@ -51,5 +46,3 @@ class OtxFormat : public CategorizedStorageFormat
mz_zip_archive zip_archive;
};
#endif // _OTX_H_