2015-09-29 00:23:46 +05:30
|
|
|
project(MultiMC_logic)
|
2015-02-09 06:21:14 +05:30
|
|
|
|
2015-05-28 23:08:29 +05:30
|
|
|
set(LOGIC_SOURCES
|
2015-02-09 06:21:14 +05:30
|
|
|
# LOGIC - Base classes and infrastructure
|
|
|
|
BaseInstaller.h
|
|
|
|
BaseInstaller.cpp
|
|
|
|
BaseVersionList.h
|
|
|
|
BaseVersionList.cpp
|
|
|
|
InstanceList.h
|
|
|
|
InstanceList.cpp
|
|
|
|
BaseVersion.h
|
|
|
|
BaseInstance.h
|
|
|
|
BaseInstance.cpp
|
2015-02-12 00:26:55 +05:30
|
|
|
NullInstance.h
|
2015-04-13 02:20:52 +05:30
|
|
|
MMCZip.h
|
|
|
|
MMCZip.cpp
|
2015-04-19 07:49:29 +05:30
|
|
|
MMCStrings.h
|
|
|
|
MMCStrings.cpp
|
2015-05-28 23:08:29 +05:30
|
|
|
BaseConfigObject.h
|
|
|
|
BaseConfigObject.cpp
|
|
|
|
AbstractCommonModel.h
|
|
|
|
AbstractCommonModel.cpp
|
2015-06-06 16:00:49 +05:30
|
|
|
TypeMagic.h
|
2015-04-19 07:49:29 +05:30
|
|
|
|
|
|
|
# Prefix tree where node names are strings between separators
|
|
|
|
SeparatorPrefixTree.h
|
2015-02-09 06:21:14 +05:30
|
|
|
|
|
|
|
# WARNING: globals live here
|
|
|
|
Env.h
|
|
|
|
Env.cpp
|
|
|
|
|
|
|
|
# JSON parsing helpers
|
2015-05-28 23:08:29 +05:30
|
|
|
Json.h
|
|
|
|
Json.cpp
|
2016-01-05 12:02:52 +05:30
|
|
|
|
2015-05-28 23:08:29 +05:30
|
|
|
FileSystem.h
|
|
|
|
FileSystem.cpp
|
2016-01-05 12:02:52 +05:30
|
|
|
DesktopServices.h
|
|
|
|
DesktopServices.cpp
|
|
|
|
|
2015-05-28 23:08:29 +05:30
|
|
|
Exception.h
|
2015-02-09 06:21:14 +05:30
|
|
|
|
|
|
|
# RW lock protected map
|
|
|
|
RWStorage.h
|
|
|
|
|
|
|
|
# A variable that has an implicit default value and keeps track of changes
|
|
|
|
DefaultVariable.h
|
|
|
|
|
|
|
|
# a smart pointer wrapper intended for safer use with Qt signal/slot mechanisms
|
|
|
|
QObjectPtr.h
|
|
|
|
|
2015-05-28 23:08:29 +05:30
|
|
|
# Resources
|
|
|
|
resources/Resource.cpp
|
|
|
|
resources/Resource.h
|
|
|
|
resources/ResourceHandler.cpp
|
|
|
|
resources/ResourceHandler.h
|
|
|
|
resources/ResourceObserver.cpp
|
|
|
|
resources/ResourceObserver.h
|
|
|
|
resources/ResourceProxyModel.h
|
|
|
|
resources/ResourceProxyModel.cpp
|
|
|
|
|
2015-08-18 05:55:24 +05:30
|
|
|
# Path matchers
|
|
|
|
pathmatcher/FSTreeMatcher.h
|
|
|
|
pathmatcher/IPathMatcher.h
|
|
|
|
pathmatcher/MultiMatcher.h
|
|
|
|
pathmatcher/RegexpMatcher.h
|
|
|
|
|
|
|
|
# Compression support
|
|
|
|
GZip.h
|
|
|
|
GZip.cpp
|
|
|
|
|
2015-10-05 05:17:27 +05:30
|
|
|
# Command line parameter parsing
|
|
|
|
Commandline.h
|
|
|
|
Commandline.cpp
|
|
|
|
|
|
|
|
# Version number string support
|
|
|
|
Version.h
|
|
|
|
Version.cpp
|
|
|
|
|
2015-02-09 06:21:14 +05:30
|
|
|
# network stuffs
|
|
|
|
net/NetAction.h
|
|
|
|
net/MD5EtagDownload.h
|
|
|
|
net/MD5EtagDownload.cpp
|
|
|
|
net/ByteArrayDownload.h
|
|
|
|
net/ByteArrayDownload.cpp
|
|
|
|
net/CacheDownload.h
|
|
|
|
net/CacheDownload.cpp
|
|
|
|
net/NetJob.h
|
|
|
|
net/NetJob.cpp
|
|
|
|
net/HttpMetaCache.h
|
|
|
|
net/HttpMetaCache.cpp
|
|
|
|
net/PasteUpload.h
|
|
|
|
net/PasteUpload.cpp
|
|
|
|
net/URLConstants.h
|
|
|
|
net/URLConstants.cpp
|
|
|
|
|
|
|
|
# Yggdrasil login stuff
|
2016-02-28 00:28:40 +05:30
|
|
|
minecraft/auth/AuthSession.h
|
|
|
|
minecraft/auth/AuthSession.cpp
|
|
|
|
minecraft/auth/MojangAccountList.h
|
|
|
|
minecraft/auth/MojangAccountList.cpp
|
|
|
|
minecraft/auth/MojangAccount.h
|
|
|
|
minecraft/auth/MojangAccount.cpp
|
|
|
|
minecraft/auth/YggdrasilTask.h
|
|
|
|
minecraft/auth/YggdrasilTask.cpp
|
|
|
|
minecraft/auth/flows/AuthenticateTask.h
|
|
|
|
minecraft/auth/flows/AuthenticateTask.cpp
|
|
|
|
minecraft/auth/flows/RefreshTask.cpp
|
|
|
|
minecraft/auth/flows/RefreshTask.cpp
|
|
|
|
minecraft/auth/flows/ValidateTask.h
|
|
|
|
minecraft/auth/flows/ValidateTask.cpp
|
2015-02-09 06:21:14 +05:30
|
|
|
|
2015-07-10 04:41:06 +05:30
|
|
|
# Game launch logic
|
2015-07-21 06:08:15 +05:30
|
|
|
launch/steps/CheckJava.cpp
|
|
|
|
launch/steps/CheckJava.h
|
2015-07-26 21:25:29 +05:30
|
|
|
launch/steps/LaunchMinecraft.cpp
|
|
|
|
launch/steps/LaunchMinecraft.h
|
2015-07-21 06:08:15 +05:30
|
|
|
launch/steps/ModMinecraftJar.cpp
|
|
|
|
launch/steps/ModMinecraftJar.h
|
|
|
|
launch/steps/PostLaunchCommand.cpp
|
|
|
|
launch/steps/PostLaunchCommand.h
|
|
|
|
launch/steps/PreLaunchCommand.cpp
|
|
|
|
launch/steps/PreLaunchCommand.h
|
|
|
|
launch/steps/TextPrint.cpp
|
|
|
|
launch/steps/TextPrint.h
|
|
|
|
launch/steps/Update.cpp
|
|
|
|
launch/steps/Update.h
|
|
|
|
launch/LaunchStep.cpp
|
|
|
|
launch/LaunchStep.h
|
|
|
|
launch/LaunchTask.cpp
|
|
|
|
launch/LaunchTask.h
|
2015-07-10 04:41:06 +05:30
|
|
|
launch/LoggedProcess.cpp
|
2015-07-21 06:08:15 +05:30
|
|
|
launch/LoggedProcess.h
|
2015-07-10 04:41:06 +05:30
|
|
|
launch/MessageLevel.cpp
|
|
|
|
launch/MessageLevel.h
|
|
|
|
|
2015-02-09 06:21:14 +05:30
|
|
|
# Update system
|
|
|
|
updater/GoUpdate.h
|
|
|
|
updater/GoUpdate.cpp
|
|
|
|
updater/UpdateChecker.h
|
|
|
|
updater/UpdateChecker.cpp
|
|
|
|
updater/DownloadTask.h
|
|
|
|
updater/DownloadTask.cpp
|
|
|
|
|
|
|
|
# Notifications - short warning messages
|
|
|
|
notifications/NotificationChecker.h
|
|
|
|
notifications/NotificationChecker.cpp
|
|
|
|
|
|
|
|
# News System
|
|
|
|
news/NewsChecker.h
|
|
|
|
news/NewsChecker.cpp
|
|
|
|
news/NewsEntry.h
|
|
|
|
news/NewsEntry.cpp
|
|
|
|
|
|
|
|
# Status system
|
|
|
|
status/StatusChecker.h
|
|
|
|
status/StatusChecker.cpp
|
|
|
|
|
|
|
|
# Minecraft support
|
2016-02-28 00:28:40 +05:30
|
|
|
minecraft/onesix/OneSixUpdate.h
|
|
|
|
minecraft/onesix/OneSixUpdate.cpp
|
|
|
|
minecraft/onesix/OneSixInstance.h
|
|
|
|
minecraft/onesix/OneSixInstance.cpp
|
|
|
|
minecraft/onesix/OneSixProfileStrategy.cpp
|
|
|
|
minecraft/onesix/OneSixProfileStrategy.h
|
2016-02-28 02:32:56 +05:30
|
|
|
minecraft/onesix/OneSixVersionFormat.cpp
|
|
|
|
minecraft/onesix/OneSixVersionFormat.h
|
2016-02-28 00:28:40 +05:30
|
|
|
minecraft/legacy/LegacyUpdate.h
|
|
|
|
minecraft/legacy/LegacyUpdate.cpp
|
|
|
|
minecraft/legacy/LegacyInstance.h
|
|
|
|
minecraft/legacy/LegacyInstance.cpp
|
|
|
|
minecraft/legacy/LwjglVersionList.h
|
|
|
|
minecraft/legacy/LwjglVersionList.cpp
|
2015-02-09 06:21:14 +05:30
|
|
|
minecraft/SkinUtils.h
|
|
|
|
minecraft/SkinUtils.cpp
|
|
|
|
minecraft/GradleSpecifier.h
|
|
|
|
minecraft/MinecraftProfile.cpp
|
|
|
|
minecraft/MinecraftProfile.h
|
2016-02-28 02:32:56 +05:30
|
|
|
minecraft/MojangVersionFormat.cpp
|
|
|
|
minecraft/MojangVersionFormat.h
|
2015-02-09 06:21:14 +05:30
|
|
|
minecraft/JarMod.h
|
|
|
|
minecraft/MinecraftInstance.cpp
|
|
|
|
minecraft/MinecraftInstance.h
|
|
|
|
minecraft/MinecraftVersion.cpp
|
|
|
|
minecraft/MinecraftVersion.h
|
|
|
|
minecraft/MinecraftVersionList.cpp
|
|
|
|
minecraft/MinecraftVersionList.h
|
2016-03-07 06:31:28 +05:30
|
|
|
minecraft/Rule.cpp
|
|
|
|
minecraft/Rule.h
|
2015-02-09 06:21:14 +05:30
|
|
|
minecraft/OpSys.cpp
|
|
|
|
minecraft/OpSys.h
|
|
|
|
minecraft/ParseUtils.cpp
|
|
|
|
minecraft/ParseUtils.h
|
|
|
|
minecraft/ProfileUtils.cpp
|
|
|
|
minecraft/ProfileUtils.h
|
|
|
|
minecraft/ProfileStrategy.h
|
2016-03-07 06:31:28 +05:30
|
|
|
minecraft/Library.cpp
|
|
|
|
minecraft/Library.h
|
|
|
|
minecraft/MojangDownloadInfo.h
|
2015-02-09 06:21:14 +05:30
|
|
|
minecraft/VersionBuildError.h
|
|
|
|
minecraft/VersionFile.cpp
|
|
|
|
minecraft/VersionFile.h
|
|
|
|
minecraft/ProfilePatch.h
|
|
|
|
minecraft/VersionFilterData.h
|
|
|
|
minecraft/VersionFilterData.cpp
|
|
|
|
minecraft/Mod.h
|
|
|
|
minecraft/Mod.cpp
|
|
|
|
minecraft/ModList.h
|
|
|
|
minecraft/ModList.cpp
|
2015-08-19 04:40:17 +05:30
|
|
|
minecraft/World.h
|
|
|
|
minecraft/World.cpp
|
|
|
|
minecraft/WorldList.h
|
|
|
|
minecraft/WorldList.cpp
|
2015-02-09 06:21:14 +05:30
|
|
|
|
|
|
|
# FTB
|
2016-02-28 00:28:40 +05:30
|
|
|
minecraft/ftb/OneSixFTBInstance.h
|
|
|
|
minecraft/ftb/OneSixFTBInstance.cpp
|
|
|
|
minecraft/ftb/LegacyFTBInstance.h
|
|
|
|
minecraft/ftb/LegacyFTBInstance.cpp
|
|
|
|
minecraft/ftb/FTBProfileStrategy.h
|
|
|
|
minecraft/ftb/FTBProfileStrategy.cpp
|
|
|
|
minecraft/ftb/FTBPlugin.h
|
|
|
|
minecraft/ftb/FTBPlugin.cpp
|
2015-02-09 06:21:14 +05:30
|
|
|
|
|
|
|
# A Recursive file system watcher
|
|
|
|
RecursiveFileSystemWatcher.h
|
|
|
|
RecursiveFileSystemWatcher.cpp
|
|
|
|
|
|
|
|
# the screenshots feature
|
|
|
|
screenshots/Screenshot.h
|
|
|
|
screenshots/ImgurUpload.h
|
|
|
|
screenshots/ImgurUpload.cpp
|
|
|
|
screenshots/ImgurAlbumCreation.h
|
|
|
|
screenshots/ImgurAlbumCreation.cpp
|
|
|
|
|
|
|
|
# Icons
|
|
|
|
icons/MMCIcon.h
|
|
|
|
icons/MMCIcon.cpp
|
|
|
|
icons/IconList.h
|
|
|
|
icons/IconList.cpp
|
|
|
|
|
|
|
|
# Tasks
|
|
|
|
tasks/Task.h
|
|
|
|
tasks/Task.cpp
|
|
|
|
tasks/ThreadTask.h
|
|
|
|
tasks/ThreadTask.cpp
|
|
|
|
tasks/SequentialTask.h
|
|
|
|
tasks/SequentialTask.cpp
|
|
|
|
|
|
|
|
# Settings
|
|
|
|
settings/INIFile.cpp
|
|
|
|
settings/INIFile.h
|
|
|
|
settings/INISettingsObject.cpp
|
|
|
|
settings/INISettingsObject.h
|
|
|
|
settings/OverrideSetting.cpp
|
|
|
|
settings/OverrideSetting.h
|
2015-05-04 04:50:48 +05:30
|
|
|
settings/PassthroughSetting.cpp
|
|
|
|
settings/PassthroughSetting.h
|
2015-02-09 06:21:14 +05:30
|
|
|
settings/Setting.cpp
|
|
|
|
settings/Setting.h
|
|
|
|
settings/SettingsObject.cpp
|
|
|
|
settings/SettingsObject.h
|
|
|
|
|
|
|
|
# Java related code
|
|
|
|
java/JavaChecker.h
|
|
|
|
java/JavaChecker.cpp
|
|
|
|
java/JavaCheckerJob.h
|
|
|
|
java/JavaCheckerJob.cpp
|
2016-01-02 05:05:54 +05:30
|
|
|
java/JavaInstall.h
|
|
|
|
java/JavaInstall.cpp
|
|
|
|
java/JavaInstallList.h
|
|
|
|
java/JavaInstallList.cpp
|
|
|
|
java/JavaUtils.h
|
|
|
|
java/JavaUtils.cpp
|
|
|
|
java/JavaVersion.h
|
|
|
|
java/JavaVersion.cpp
|
2015-02-09 06:21:14 +05:30
|
|
|
|
|
|
|
# Assets
|
|
|
|
minecraft/AssetsUtils.h
|
|
|
|
minecraft/AssetsUtils.cpp
|
|
|
|
|
|
|
|
# Forge and all things forge related
|
2016-02-28 00:28:40 +05:30
|
|
|
minecraft/forge/ForgeVersion.h
|
|
|
|
minecraft/forge/ForgeVersion.cpp
|
|
|
|
minecraft/forge/ForgeVersionList.h
|
|
|
|
minecraft/forge/ForgeVersionList.cpp
|
|
|
|
minecraft/forge/ForgeMirror.h
|
|
|
|
minecraft/forge/ForgeMirrors.h
|
|
|
|
minecraft/forge/ForgeMirrors.cpp
|
|
|
|
minecraft/forge/ForgeXzDownload.h
|
|
|
|
minecraft/forge/ForgeXzDownload.cpp
|
|
|
|
minecraft/forge/LegacyForge.h
|
|
|
|
minecraft/forge/LegacyForge.cpp
|
|
|
|
minecraft/forge/ForgeInstaller.h
|
|
|
|
minecraft/forge/ForgeInstaller.cpp
|
2015-02-09 06:21:14 +05:30
|
|
|
|
|
|
|
# Liteloader and related things
|
2016-02-28 00:28:40 +05:30
|
|
|
minecraft/liteloader/LiteLoaderInstaller.h
|
|
|
|
minecraft/liteloader/LiteLoaderInstaller.cpp
|
|
|
|
minecraft/liteloader/LiteLoaderVersionList.h
|
|
|
|
minecraft/liteloader/LiteLoaderVersionList.cpp
|
2015-02-09 06:21:14 +05:30
|
|
|
|
|
|
|
# Translations
|
|
|
|
trans/TranslationDownloader.h
|
|
|
|
trans/TranslationDownloader.cpp
|
|
|
|
|
|
|
|
# Tools
|
|
|
|
tools/BaseExternalTool.cpp
|
|
|
|
tools/BaseExternalTool.h
|
|
|
|
tools/BaseProfiler.cpp
|
|
|
|
tools/BaseProfiler.h
|
|
|
|
tools/JProfiler.cpp
|
|
|
|
tools/JProfiler.h
|
|
|
|
tools/JVisualVM.cpp
|
|
|
|
tools/JVisualVM.h
|
|
|
|
tools/MCEditTool.cpp
|
|
|
|
tools/MCEditTool.h
|
|
|
|
|
|
|
|
)
|
|
|
|
################################ COMPILE ################################
|
|
|
|
|
2015-09-29 00:23:46 +05:30
|
|
|
# we need zlib
|
|
|
|
find_package(ZLIB REQUIRED)
|
2015-08-18 05:55:24 +05:30
|
|
|
|
2015-09-05 22:16:57 +05:30
|
|
|
add_library(MultiMC_logic SHARED ${LOGIC_SOURCES})
|
2015-09-29 00:23:46 +05:30
|
|
|
set_target_properties(MultiMC_logic PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1)
|
2015-09-23 04:51:19 +05:30
|
|
|
|
2015-09-05 22:16:57 +05:30
|
|
|
generate_export_header(MultiMC_logic)
|
2015-02-09 06:21:14 +05:30
|
|
|
|
|
|
|
# Link
|
2015-10-05 05:17:27 +05:30
|
|
|
target_link_libraries(MultiMC_logic xz-embedded unpack200 iconfix LogicalGui ${QUAZIP_LIBRARIES} nbt++ ${ZLIB_LIBRARIES})
|
2015-09-29 00:23:46 +05:30
|
|
|
qt5_use_modules(MultiMC_logic Core Xml Widgets Network Concurrent)
|
2015-02-09 06:21:14 +05:30
|
|
|
add_dependencies(MultiMC_logic QuaZIP)
|
2015-09-05 22:16:57 +05:30
|
|
|
|
2015-09-29 00:23:46 +05:30
|
|
|
# Mark and export headers
|
|
|
|
target_include_directories(MultiMC_logic PUBLIC "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}" PRIVATE "${ZLIB_INCLUDE_DIRS}")
|