refactor: simpler includes for quazip
This commit is contained in:
parent
81c72c2038
commit
0442b80a2c
@ -263,7 +263,6 @@ add_subdirectory(libraries/javacheck) # java compatibility checker
|
|||||||
add_subdirectory(libraries/xz-embedded) # xz compression
|
add_subdirectory(libraries/xz-embedded) # xz compression
|
||||||
if (NOT QuaZip-Qt${QT_VERSION_MAJOR}_FOUND)
|
if (NOT QuaZip-Qt${QT_VERSION_MAJOR}_FOUND)
|
||||||
set(QUAZIP_QT_MAJOR_VERSION ${QT_VERSION_MAJOR})
|
set(QUAZIP_QT_MAJOR_VERSION ${QT_VERSION_MAJOR})
|
||||||
add_compile_definitions(QUAZIP_USE_SUBMODULE)
|
|
||||||
MESSAGE(STATUS "Adding QuaZip submodule, with QT_VERSION_MAJOR ${QUAZIP_QT_MAJOR_VERSION}")
|
MESSAGE(STATUS "Adding QuaZip submodule, with QT_VERSION_MAJOR ${QUAZIP_QT_MAJOR_VERSION}")
|
||||||
add_subdirectory(libraries/quazip) # zip manipulation library
|
add_subdirectory(libraries/quazip) # zip manipulation library
|
||||||
endif()
|
endif()
|
||||||
|
@ -29,12 +29,7 @@
|
|||||||
#include "modplatform/flame/FileResolvingTask.h"
|
#include "modplatform/flame/FileResolvingTask.h"
|
||||||
#include "modplatform/flame/PackManifest.h"
|
#include "modplatform/flame/PackManifest.h"
|
||||||
#include "Json.h"
|
#include "Json.h"
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazipdir.h>
|
#include <quazip/quazipdir.h>
|
||||||
#else
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazipdir.h>
|
|
||||||
#endif
|
|
||||||
#include "modplatform/technic/TechnicPackProcessor.h"
|
#include "modplatform/technic/TechnicPackProcessor.h"
|
||||||
|
|
||||||
#include "icons/IconList.h"
|
#include "icons/IconList.h"
|
||||||
|
@ -12,15 +12,10 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazip.h>
|
#include <quazip/quazip.h>
|
||||||
#include <quazip/quazipdir.h>
|
#include <quazip/quazipdir.h>
|
||||||
#include <quazip/quazipfile.h>
|
#include <quazip/quazipfile.h>
|
||||||
#else
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazip.h>
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazipdir.h>
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazipfile.h>
|
|
||||||
#endif
|
|
||||||
#include "MMCZip.h"
|
#include "MMCZip.h"
|
||||||
#include "FileSystem.h"
|
#include "FileSystem.h"
|
||||||
|
|
||||||
|
@ -19,14 +19,10 @@
|
|||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
#include "minecraft/mod/Mod.h"
|
#include "minecraft/mod/Mod.h"
|
||||||
#include "nonstd/optional"
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/JlCompress.h>
|
#include <quazip/JlCompress.h>
|
||||||
#else
|
#include <nonstd/optional>
|
||||||
#include <QuaZip-Qt5-1.2/quazip/JlCompress.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace MMCZip
|
namespace MMCZip
|
||||||
{
|
{
|
||||||
|
@ -20,12 +20,7 @@
|
|||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
#include "tasks/Task.h"
|
#include "tasks/Task.h"
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazip.h>
|
#include <quazip/quazip.h>
|
||||||
#else
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazip.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "QObjectPtr.h"
|
#include "QObjectPtr.h"
|
||||||
|
|
||||||
|
@ -22,12 +22,7 @@
|
|||||||
#include "net/NetJob.h"
|
#include "net/NetJob.h"
|
||||||
#include "tasks/Task.h"
|
#include "tasks/Task.h"
|
||||||
#include "minecraft/VersionFilterData.h"
|
#include "minecraft/VersionFilterData.h"
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazip.h>
|
#include <quazip/quazip.h>
|
||||||
#else
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazip.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class MinecraftVersion;
|
class MinecraftVersion;
|
||||||
class MinecraftInstance;
|
class MinecraftInstance;
|
||||||
|
@ -26,16 +26,9 @@
|
|||||||
#include <io/stream_reader.h>
|
#include <io/stream_reader.h>
|
||||||
#include <tag_string.h>
|
#include <tag_string.h>
|
||||||
#include <tag_primitive.h>
|
#include <tag_primitive.h>
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazip.h>
|
#include <quazip/quazip.h>
|
||||||
#include <quazip/quazipfile.h>
|
#include <quazip/quazipfile.h>
|
||||||
#include <quazip/quazipdir.h>
|
#include <quazip/quazipdir.h>
|
||||||
#else
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazip.h>
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazipfile.h>
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazipdir.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
|
@ -17,14 +17,8 @@
|
|||||||
#include <minecraft/MinecraftInstance.h>
|
#include <minecraft/MinecraftInstance.h>
|
||||||
#include <launch/LaunchTask.h>
|
#include <launch/LaunchTask.h>
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazip.h>
|
#include <quazip/quazip.h>
|
||||||
#include <quazip/quazipdir.h>
|
#include <quazip/quazipdir.h>
|
||||||
#else
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazip.h>
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazipdir.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "MMCZip.h"
|
#include "MMCZip.h"
|
||||||
#include "FileSystem.h"
|
#include "FileSystem.h"
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
@ -4,15 +4,8 @@
|
|||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
#include <QJsonArray>
|
#include <QJsonArray>
|
||||||
#include <QJsonValue>
|
#include <QJsonValue>
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazip.h>
|
#include <quazip/quazip.h>
|
||||||
#include <quazip/quazipfile.h>
|
#include <quazip/quazipfile.h>
|
||||||
#else
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazip.h>
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazipfile.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <toml.h>
|
#include <toml.h>
|
||||||
|
|
||||||
#include "settings/INIFile.h"
|
#include "settings/INIFile.h"
|
||||||
|
@ -19,11 +19,7 @@
|
|||||||
|
|
||||||
#include <QtConcurrent/QtConcurrent>
|
#include <QtConcurrent/QtConcurrent>
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazip.h>
|
#include <quazip/quazip.h>
|
||||||
#else
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazip.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "MMCZip.h"
|
#include "MMCZip.h"
|
||||||
#include "minecraft/OneSixVersionFormat.h"
|
#include "minecraft/OneSixVersionFormat.h"
|
||||||
|
@ -1,15 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "InstanceTask.h"
|
#include "InstanceTask.h"
|
||||||
#include "net/NetJob.h"
|
#include "net/NetJob.h"
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazip.h>
|
#include <quazip/quazip.h>
|
||||||
#include <quazip/quazipdir.h>
|
#include <quazip/quazipdir.h>
|
||||||
#else
|
|
||||||
#include "QuaZip-Qt5-1.2/quazip/quazip.h"
|
|
||||||
#include "QuaZip-Qt5-1.2/quazip/quazipdir.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "meta/Index.h"
|
#include "meta/Index.h"
|
||||||
#include "meta/Version.h"
|
#include "meta/Version.h"
|
||||||
#include "meta/VersionList.h"
|
#include "meta/VersionList.h"
|
||||||
|
@ -18,11 +18,7 @@
|
|||||||
#include "InstanceTask.h"
|
#include "InstanceTask.h"
|
||||||
#include "net/NetJob.h"
|
#include "net/NetJob.h"
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazip.h>
|
#include <quazip/quazip.h>
|
||||||
#else
|
|
||||||
#include "QuaZip-Qt5-1.2/quazip/quazip.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <QFutureWatcher>
|
#include <QFutureWatcher>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
@ -19,17 +19,9 @@
|
|||||||
#include <Json.h>
|
#include <Json.h>
|
||||||
#include <minecraft/MinecraftInstance.h>
|
#include <minecraft/MinecraftInstance.h>
|
||||||
#include <minecraft/PackProfile.h>
|
#include <minecraft/PackProfile.h>
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazip.h>
|
#include <quazip/quazip.h>
|
||||||
#include <quazip/quazipdir.h>
|
#include <quazip/quazipdir.h>
|
||||||
#include <quazip/quazipfile.h>
|
#include <quazip/quazipfile.h>
|
||||||
#else
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazip.h>
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazipdir.h>
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazipfile.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <settings/INISettingsObject.h>
|
#include <settings/INISettingsObject.h>
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
@ -18,13 +18,7 @@
|
|||||||
#include "classparser.h"
|
#include "classparser.h"
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
|
||||||
#ifdef QUAZIP_USE_SUBMODULE
|
|
||||||
#include <quazip/quazipfile.h>
|
#include <quazip/quazipfile.h>
|
||||||
#else
|
|
||||||
#include <QuaZip-Qt5-1.2/quazip/quazipfile.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
namespace classparser
|
namespace classparser
|
||||||
|
Loading…
Reference in New Issue
Block a user