2015-09-28 18:53:46 +00:00
|
|
|
project(MultiMC_logic)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2015-05-28 17:38:29 +00:00
|
|
|
set(LOGIC_SOURCES
|
2015-02-09 00:51:14 +00:00
|
|
|
# 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-11 18:56:55 +00:00
|
|
|
NullInstance.h
|
2015-04-12 20:50:52 +00:00
|
|
|
MMCZip.h
|
|
|
|
MMCZip.cpp
|
2015-04-19 02:19:29 +00:00
|
|
|
MMCStrings.h
|
|
|
|
MMCStrings.cpp
|
2015-05-28 17:38:29 +00:00
|
|
|
BaseConfigObject.h
|
|
|
|
BaseConfigObject.cpp
|
|
|
|
AbstractCommonModel.h
|
|
|
|
AbstractCommonModel.cpp
|
2015-06-06 10:30:49 +00:00
|
|
|
TypeMagic.h
|
2015-04-19 02:19:29 +00:00
|
|
|
|
|
|
|
# Prefix tree where node names are strings between separators
|
|
|
|
SeparatorPrefixTree.h
|
2015-02-09 00:51:14 +00:00
|
|
|
|
|
|
|
# WARNING: globals live here
|
|
|
|
Env.h
|
|
|
|
Env.cpp
|
|
|
|
|
|
|
|
# JSON parsing helpers
|
2015-05-28 17:38:29 +00:00
|
|
|
Json.h
|
|
|
|
Json.cpp
|
|
|
|
FileSystem.h
|
|
|
|
FileSystem.cpp
|
|
|
|
Exception.h
|
2015-02-09 00:51:14 +00:00
|
|
|
|
|
|
|
# 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 17:38:29 +00:00
|
|
|
# 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 00:25:24 +00:00
|
|
|
# Path matchers
|
|
|
|
pathmatcher/FSTreeMatcher.h
|
|
|
|
pathmatcher/IPathMatcher.h
|
|
|
|
pathmatcher/MultiMatcher.h
|
|
|
|
pathmatcher/RegexpMatcher.h
|
|
|
|
|
|
|
|
# Compression support
|
|
|
|
GZip.h
|
|
|
|
GZip.cpp
|
|
|
|
|
2015-02-09 00:51:14 +00:00
|
|
|
# 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
|
|
|
|
auth/AuthSession.h
|
|
|
|
auth/AuthSession.cpp
|
|
|
|
auth/MojangAccountList.h
|
|
|
|
auth/MojangAccountList.cpp
|
|
|
|
auth/MojangAccount.h
|
|
|
|
auth/MojangAccount.cpp
|
|
|
|
auth/YggdrasilTask.h
|
|
|
|
auth/YggdrasilTask.cpp
|
|
|
|
auth/flows/AuthenticateTask.h
|
|
|
|
auth/flows/AuthenticateTask.cpp
|
|
|
|
auth/flows/RefreshTask.cpp
|
|
|
|
auth/flows/RefreshTask.cpp
|
|
|
|
auth/flows/ValidateTask.h
|
|
|
|
auth/flows/ValidateTask.cpp
|
|
|
|
|
2015-07-09 23:11:06 +00:00
|
|
|
# Game launch logic
|
2015-07-21 00:38:15 +00:00
|
|
|
launch/steps/CheckJava.cpp
|
|
|
|
launch/steps/CheckJava.h
|
2015-07-26 15:55:29 +00:00
|
|
|
launch/steps/LaunchMinecraft.cpp
|
|
|
|
launch/steps/LaunchMinecraft.h
|
2015-07-21 00:38:15 +00:00
|
|
|
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-09 23:11:06 +00:00
|
|
|
launch/LoggedProcess.cpp
|
2015-07-21 00:38:15 +00:00
|
|
|
launch/LoggedProcess.h
|
2015-07-09 23:11:06 +00:00
|
|
|
launch/MessageLevel.cpp
|
|
|
|
launch/MessageLevel.h
|
|
|
|
|
2015-02-09 00:51:14 +00:00
|
|
|
# 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
|
|
|
|
minecraft/OneSixUpdate.h
|
|
|
|
minecraft/OneSixUpdate.cpp
|
|
|
|
minecraft/OneSixInstance.h
|
|
|
|
minecraft/OneSixInstance.cpp
|
|
|
|
minecraft/LegacyUpdate.h
|
|
|
|
minecraft/LegacyUpdate.cpp
|
|
|
|
minecraft/LegacyInstance.h
|
|
|
|
minecraft/LegacyInstance.cpp
|
|
|
|
minecraft/LwjglVersionList.h
|
|
|
|
minecraft/LwjglVersionList.cpp
|
|
|
|
minecraft/SkinUtils.h
|
|
|
|
minecraft/SkinUtils.cpp
|
|
|
|
minecraft/GradleSpecifier.h
|
|
|
|
minecraft/MinecraftProfile.cpp
|
|
|
|
minecraft/MinecraftProfile.h
|
|
|
|
minecraft/JarMod.cpp
|
|
|
|
minecraft/JarMod.h
|
|
|
|
minecraft/MinecraftInstance.cpp
|
|
|
|
minecraft/MinecraftInstance.h
|
|
|
|
minecraft/MinecraftVersion.cpp
|
|
|
|
minecraft/MinecraftVersion.h
|
|
|
|
minecraft/MinecraftVersionList.cpp
|
|
|
|
minecraft/MinecraftVersionList.h
|
|
|
|
minecraft/NullProfileStrategy.h
|
|
|
|
minecraft/OneSixLibrary.cpp
|
|
|
|
minecraft/OneSixLibrary.h
|
|
|
|
minecraft/OneSixProfileStrategy.cpp
|
|
|
|
minecraft/OneSixProfileStrategy.h
|
|
|
|
minecraft/OneSixRule.cpp
|
|
|
|
minecraft/OneSixRule.h
|
|
|
|
minecraft/OpSys.cpp
|
|
|
|
minecraft/OpSys.h
|
|
|
|
minecraft/ParseUtils.cpp
|
|
|
|
minecraft/ParseUtils.h
|
|
|
|
minecraft/ProfileUtils.cpp
|
|
|
|
minecraft/ProfileUtils.h
|
|
|
|
minecraft/ProfileStrategy.h
|
|
|
|
minecraft/RawLibrary.cpp
|
|
|
|
minecraft/RawLibrary.h
|
|
|
|
minecraft/VersionBuildError.h
|
|
|
|
minecraft/VersionFile.cpp
|
|
|
|
minecraft/VersionFile.h
|
|
|
|
minecraft/ProfilePatch.h
|
|
|
|
minecraft/VersionSource.h
|
|
|
|
minecraft/VersionFilterData.h
|
|
|
|
minecraft/VersionFilterData.cpp
|
|
|
|
minecraft/Mod.h
|
|
|
|
minecraft/Mod.cpp
|
|
|
|
minecraft/ModList.h
|
|
|
|
minecraft/ModList.cpp
|
2015-08-18 23:10:17 +00:00
|
|
|
minecraft/World.h
|
|
|
|
minecraft/World.cpp
|
|
|
|
minecraft/WorldList.h
|
|
|
|
minecraft/WorldList.cpp
|
2015-02-09 00:51:14 +00:00
|
|
|
|
|
|
|
# FTB
|
|
|
|
ftb/OneSixFTBInstance.h
|
|
|
|
ftb/OneSixFTBInstance.cpp
|
|
|
|
ftb/LegacyFTBInstance.h
|
|
|
|
ftb/LegacyFTBInstance.cpp
|
|
|
|
ftb/FTBProfileStrategy.h
|
|
|
|
ftb/FTBProfileStrategy.cpp
|
|
|
|
ftb/FTBPlugin.h
|
|
|
|
ftb/FTBPlugin.cpp
|
|
|
|
|
|
|
|
# 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-03 23:20:48 +00:00
|
|
|
settings/PassthroughSetting.cpp
|
|
|
|
settings/PassthroughSetting.h
|
2015-02-09 00:51:14 +00:00
|
|
|
settings/Setting.cpp
|
|
|
|
settings/Setting.h
|
|
|
|
settings/SettingsObject.cpp
|
|
|
|
settings/SettingsObject.h
|
|
|
|
|
|
|
|
# Java related code
|
|
|
|
java/JavaChecker.h
|
|
|
|
java/JavaChecker.cpp
|
|
|
|
java/JavaUtils.h
|
|
|
|
java/JavaUtils.cpp
|
|
|
|
java/JavaVersionList.h
|
|
|
|
java/JavaVersionList.cpp
|
|
|
|
java/JavaCheckerJob.h
|
|
|
|
java/JavaCheckerJob.cpp
|
|
|
|
|
|
|
|
# Assets
|
|
|
|
minecraft/AssetsUtils.h
|
|
|
|
minecraft/AssetsUtils.cpp
|
|
|
|
|
|
|
|
# Forge and all things forge related
|
|
|
|
forge/ForgeVersion.h
|
|
|
|
forge/ForgeVersion.cpp
|
|
|
|
forge/ForgeVersionList.h
|
|
|
|
forge/ForgeVersionList.cpp
|
|
|
|
forge/ForgeMirror.h
|
|
|
|
forge/ForgeMirrors.h
|
|
|
|
forge/ForgeMirrors.cpp
|
|
|
|
forge/ForgeXzDownload.h
|
|
|
|
forge/ForgeXzDownload.cpp
|
|
|
|
forge/LegacyForge.h
|
|
|
|
forge/LegacyForge.cpp
|
|
|
|
forge/ForgeInstaller.h
|
|
|
|
forge/ForgeInstaller.cpp
|
|
|
|
|
|
|
|
# Liteloader and related things
|
|
|
|
liteloader/LiteLoaderInstaller.h
|
|
|
|
liteloader/LiteLoaderInstaller.cpp
|
|
|
|
liteloader/LiteLoaderVersionList.h
|
|
|
|
liteloader/LiteLoaderVersionList.cpp
|
|
|
|
|
|
|
|
# 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-28 18:53:46 +00:00
|
|
|
# we need zlib
|
|
|
|
find_package(ZLIB REQUIRED)
|
2015-08-18 00:25:24 +00:00
|
|
|
|
2015-09-05 16:46:57 +00:00
|
|
|
add_library(MultiMC_logic SHARED ${LOGIC_SOURCES})
|
2015-09-28 18:53:46 +00:00
|
|
|
set_target_properties(MultiMC_logic PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1)
|
2015-09-22 23:21:19 +00:00
|
|
|
|
2015-09-05 16:46:57 +00:00
|
|
|
generate_export_header(MultiMC_logic)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
|
|
|
# Link
|
2015-09-28 18:53:46 +00:00
|
|
|
target_link_libraries(MultiMC_logic xz-embedded unpack200 iconfix MultiMC_util LogicalGui ${QUAZIP_LIBRARIES} nbt++ ${ZLIB_LIBRARIES})
|
|
|
|
qt5_use_modules(MultiMC_logic Core Xml Widgets Network Concurrent)
|
2015-02-09 00:51:14 +00:00
|
|
|
add_dependencies(MultiMC_logic QuaZIP)
|
2015-09-05 16:46:57 +00:00
|
|
|
|
2015-09-28 18:53:46 +00:00
|
|
|
# Mark and export headers
|
|
|
|
target_include_directories(MultiMC_logic PUBLIC "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}" PRIVATE "${ZLIB_INCLUDE_DIRS}")
|