2015-09-28 19:53:46 +01:00
|
|
|
project(MultiMC_logic)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
include (UnitTest)
|
|
|
|
|
|
|
|
set(CORE_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# LOGIC - Base classes and infrastructure
|
|
|
|
BaseInstaller.h
|
|
|
|
BaseInstaller.cpp
|
|
|
|
BaseVersionList.h
|
|
|
|
BaseVersionList.cpp
|
|
|
|
InstanceList.h
|
|
|
|
InstanceList.cpp
|
|
|
|
InstanceTask.h
|
|
|
|
InstanceTask.cpp
|
|
|
|
LoggedProcess.h
|
|
|
|
LoggedProcess.cpp
|
|
|
|
MessageLevel.cpp
|
|
|
|
MessageLevel.h
|
|
|
|
BaseVersion.h
|
|
|
|
BaseInstance.h
|
|
|
|
BaseInstance.cpp
|
|
|
|
NullInstance.h
|
|
|
|
MMCZip.h
|
|
|
|
MMCZip.cpp
|
|
|
|
MMCStrings.h
|
|
|
|
MMCStrings.cpp
|
|
|
|
|
|
|
|
# Basic instance manipulation tasks (derived from InstanceTask)
|
|
|
|
InstanceCreationTask.h
|
|
|
|
InstanceCreationTask.cpp
|
|
|
|
InstanceCopyTask.h
|
|
|
|
InstanceCopyTask.cpp
|
|
|
|
InstanceImportTask.h
|
|
|
|
InstanceImportTask.cpp
|
|
|
|
|
|
|
|
# Use tracking separate from memory management
|
|
|
|
Usable.h
|
|
|
|
|
|
|
|
# Prefix tree where node names are strings between separators
|
|
|
|
SeparatorPrefixTree.h
|
|
|
|
|
|
|
|
# WARNING: globals live here
|
|
|
|
Env.h
|
|
|
|
Env.cpp
|
|
|
|
|
|
|
|
# String filters
|
|
|
|
Filter.h
|
|
|
|
Filter.cpp
|
|
|
|
|
|
|
|
# JSON parsing helpers
|
|
|
|
Json.h
|
|
|
|
Json.cpp
|
|
|
|
|
|
|
|
FileSystem.h
|
|
|
|
FileSystem.cpp
|
|
|
|
|
|
|
|
Exception.h
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Compression support
|
|
|
|
GZip.h
|
|
|
|
GZip.cpp
|
|
|
|
|
|
|
|
# Command line parameter parsing
|
|
|
|
Commandline.h
|
|
|
|
Commandline.cpp
|
|
|
|
|
|
|
|
# Version number string support
|
|
|
|
Version.h
|
|
|
|
Version.cpp
|
|
|
|
|
|
|
|
# A Recursive file system watcher
|
|
|
|
RecursiveFileSystemWatcher.h
|
|
|
|
RecursiveFileSystemWatcher.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(FileSystem
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES FileSystem_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
DATA testdata
|
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
|
|
|
add_unit_test(GZip
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES GZip_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
|
|
|
set(PATHMATCHER_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# Path matchers
|
|
|
|
pathmatcher/FSTreeMatcher.h
|
|
|
|
pathmatcher/IPathMatcher.h
|
|
|
|
pathmatcher/MultiMatcher.h
|
|
|
|
pathmatcher/RegexpMatcher.h
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set(NET_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# network stuffs
|
|
|
|
net/ByteArraySink.h
|
|
|
|
net/ChecksumValidator.h
|
|
|
|
net/Download.cpp
|
|
|
|
net/Download.h
|
|
|
|
net/FileSink.cpp
|
|
|
|
net/FileSink.h
|
|
|
|
net/HttpMetaCache.cpp
|
|
|
|
net/HttpMetaCache.h
|
|
|
|
net/MetaCacheSink.cpp
|
|
|
|
net/MetaCacheSink.h
|
|
|
|
net/NetAction.h
|
|
|
|
net/NetJob.cpp
|
|
|
|
net/NetJob.h
|
|
|
|
net/PasteUpload.cpp
|
|
|
|
net/PasteUpload.h
|
|
|
|
net/Sink.h
|
|
|
|
net/Validator.h
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Game launch logic
|
|
|
|
set(LAUNCH_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
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
|
|
|
|
launch/LogModel.cpp
|
|
|
|
launch/LogModel.h
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-07-10 00:11:06 +01:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Old update system
|
|
|
|
set(UPDATE_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
updater/GoUpdate.h
|
|
|
|
updater/GoUpdate.cpp
|
|
|
|
updater/UpdateChecker.h
|
|
|
|
updater/UpdateChecker.cpp
|
|
|
|
updater/DownloadTask.h
|
|
|
|
updater/DownloadTask.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(UpdateChecker
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES updater/UpdateChecker_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
DATA updater/testdata
|
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
|
|
|
add_unit_test(DownloadTask
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES updater/DownloadTask_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
DATA updater/testdata
|
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Rarely used notifications
|
|
|
|
set(NOTIFICATIONS_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# Notifications - short warning messages
|
|
|
|
notifications/NotificationChecker.h
|
|
|
|
notifications/NotificationChecker.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Backend for the news bar... there's usually no news.
|
|
|
|
set(NEWS_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# News System
|
|
|
|
news/NewsChecker.h
|
|
|
|
news/NewsChecker.cpp
|
|
|
|
news/NewsEntry.h
|
|
|
|
news/NewsEntry.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-05-03 16:49:56 +01:00
|
|
|
# Icon interface
|
|
|
|
set(ICONS_SOURCES
|
2019-05-31 20:52:58 +01:00
|
|
|
# Icons System and related code
|
2018-07-15 13:51:05 +01:00
|
|
|
icons/IIconList.h
|
|
|
|
icons/IIconList.cpp
|
2019-05-31 20:52:58 +01:00
|
|
|
icons/IconUtils.h
|
|
|
|
icons/IconUtils.cpp
|
2016-05-03 16:49:56 +01:00
|
|
|
)
|
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Minecraft services status checker
|
|
|
|
set(STATUS_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# Status system
|
|
|
|
status/StatusChecker.h
|
|
|
|
status/StatusChecker.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
# Support for Minecraft instances and launch
|
|
|
|
set(MINECRAFT_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# Minecraft support
|
|
|
|
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
|
2019-08-04 04:08:40 +01:00
|
|
|
|
2019-01-29 23:35:24 +00:00
|
|
|
minecraft/gameoptions/GameOptions.h
|
|
|
|
minecraft/gameoptions/GameOptions.cpp
|
2019-08-04 04:08:40 +01:00
|
|
|
|
2018-07-15 13:51:05 +01:00
|
|
|
minecraft/update/AssetUpdateTask.h
|
|
|
|
minecraft/update/AssetUpdateTask.cpp
|
|
|
|
minecraft/update/FMLLibrariesTask.cpp
|
|
|
|
minecraft/update/FMLLibrariesTask.h
|
|
|
|
minecraft/update/FoldersTask.cpp
|
|
|
|
minecraft/update/FoldersTask.h
|
|
|
|
minecraft/update/LibrariesTask.cpp
|
|
|
|
minecraft/update/LibrariesTask.h
|
2019-08-04 04:08:40 +01:00
|
|
|
|
2018-07-15 13:51:05 +01:00
|
|
|
minecraft/launch/ClaimAccount.cpp
|
|
|
|
minecraft/launch/ClaimAccount.h
|
|
|
|
minecraft/launch/CreateServerResourcePacksFolder.cpp
|
|
|
|
minecraft/launch/CreateServerResourcePacksFolder.h
|
|
|
|
minecraft/launch/ModMinecraftJar.cpp
|
|
|
|
minecraft/launch/ModMinecraftJar.h
|
|
|
|
minecraft/launch/DirectJavaLaunch.cpp
|
|
|
|
minecraft/launch/DirectJavaLaunch.h
|
|
|
|
minecraft/launch/ExtractNatives.cpp
|
|
|
|
minecraft/launch/ExtractNatives.h
|
|
|
|
minecraft/launch/LauncherPartLaunch.cpp
|
|
|
|
minecraft/launch/LauncherPartLaunch.h
|
|
|
|
minecraft/launch/PrintInstanceInfo.cpp
|
|
|
|
minecraft/launch/PrintInstanceInfo.h
|
2019-02-19 00:00:03 +00:00
|
|
|
minecraft/launch/ReconstructAssets.cpp
|
|
|
|
minecraft/launch/ReconstructAssets.h
|
2019-08-04 04:08:40 +01:00
|
|
|
minecraft/launch/ScanModFolders.cpp
|
|
|
|
minecraft/launch/ScanModFolders.h
|
|
|
|
|
2018-07-15 13:51:05 +01:00
|
|
|
minecraft/legacy/LegacyModList.h
|
|
|
|
minecraft/legacy/LegacyModList.cpp
|
|
|
|
minecraft/legacy/LegacyInstance.h
|
|
|
|
minecraft/legacy/LegacyInstance.cpp
|
|
|
|
minecraft/legacy/LegacyUpgradeTask.h
|
|
|
|
minecraft/legacy/LegacyUpgradeTask.cpp
|
2019-08-04 04:08:40 +01:00
|
|
|
|
2018-07-15 13:51:05 +01:00
|
|
|
minecraft/GradleSpecifier.h
|
|
|
|
minecraft/MinecraftInstance.cpp
|
|
|
|
minecraft/MinecraftInstance.h
|
|
|
|
minecraft/LaunchProfile.cpp
|
|
|
|
minecraft/LaunchProfile.h
|
|
|
|
minecraft/Component.cpp
|
|
|
|
minecraft/Component.h
|
2020-06-27 11:02:31 +01:00
|
|
|
minecraft/PackProfile.cpp
|
|
|
|
minecraft/PackProfile.h
|
2018-07-15 13:51:05 +01:00
|
|
|
minecraft/ComponentUpdateTask.cpp
|
|
|
|
minecraft/ComponentUpdateTask.h
|
|
|
|
minecraft/MinecraftLoadAndCheck.h
|
|
|
|
minecraft/MinecraftLoadAndCheck.cpp
|
|
|
|
minecraft/MinecraftUpdate.h
|
|
|
|
minecraft/MinecraftUpdate.cpp
|
|
|
|
minecraft/MojangVersionFormat.cpp
|
|
|
|
minecraft/MojangVersionFormat.h
|
|
|
|
minecraft/Rule.cpp
|
|
|
|
minecraft/Rule.h
|
|
|
|
minecraft/OneSixVersionFormat.cpp
|
|
|
|
minecraft/OneSixVersionFormat.h
|
|
|
|
minecraft/OpSys.cpp
|
|
|
|
minecraft/OpSys.h
|
|
|
|
minecraft/ParseUtils.cpp
|
|
|
|
minecraft/ParseUtils.h
|
|
|
|
minecraft/ProfileUtils.cpp
|
|
|
|
minecraft/ProfileUtils.h
|
|
|
|
minecraft/Library.cpp
|
|
|
|
minecraft/Library.h
|
|
|
|
minecraft/MojangDownloadInfo.h
|
|
|
|
minecraft/VersionFile.cpp
|
|
|
|
minecraft/VersionFile.h
|
|
|
|
minecraft/VersionFilterData.h
|
|
|
|
minecraft/VersionFilterData.cpp
|
|
|
|
minecraft/World.h
|
|
|
|
minecraft/World.cpp
|
|
|
|
minecraft/WorldList.h
|
|
|
|
minecraft/WorldList.cpp
|
|
|
|
|
2019-08-04 02:27:53 +01:00
|
|
|
minecraft/mod/Mod.h
|
|
|
|
minecraft/mod/Mod.cpp
|
|
|
|
minecraft/mod/ModDetails.h
|
|
|
|
minecraft/mod/ModFolderModel.h
|
|
|
|
minecraft/mod/ModFolderModel.cpp
|
|
|
|
minecraft/mod/ModFolderLoadTask.h
|
|
|
|
minecraft/mod/ModFolderLoadTask.cpp
|
|
|
|
minecraft/mod/LocalModParseTask.h
|
|
|
|
minecraft/mod/LocalModParseTask.cpp
|
|
|
|
|
2018-07-15 13:51:05 +01:00
|
|
|
# Assets
|
|
|
|
minecraft/AssetsUtils.h
|
|
|
|
minecraft/AssetsUtils.cpp
|
|
|
|
|
|
|
|
# Skin upload utilities
|
|
|
|
minecraft/SkinUpload.cpp
|
|
|
|
minecraft/SkinUpload.h
|
2020-10-11 22:20:35 +01:00
|
|
|
|
|
|
|
mojang/PackageManifest.h
|
|
|
|
mojang/PackageManifest.cpp
|
2018-07-15 13:51:05 +01:00
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
|
|
|
add_unit_test(GradleSpecifier
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES minecraft/GradleSpecifier_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
2020-10-11 22:20:35 +01:00
|
|
|
add_executable(PackageManifest
|
|
|
|
mojang/PackageManifest_test.cpp
|
|
|
|
)
|
|
|
|
target_link_libraries(PackageManifest
|
|
|
|
MultiMC_logic
|
|
|
|
Qt5::Test
|
|
|
|
)
|
|
|
|
target_include_directories(PackageManifest
|
|
|
|
PRIVATE ../../cmake/UnitTest/
|
|
|
|
)
|
|
|
|
add_test(
|
|
|
|
NAME PackageManifest
|
|
|
|
COMMAND PackageManifest
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
add_unit_test(MojangVersionFormat
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES minecraft/MojangVersionFormat_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
DATA minecraft/testdata
|
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
|
|
|
add_unit_test(Library
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES minecraft/Library_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
|
|
|
# FIXME: shares data with FileSystem test
|
2019-08-04 02:27:53 +01:00
|
|
|
add_unit_test(ModFolderModel
|
|
|
|
SOURCES minecraft/mod/ModFolderModel_test.cpp
|
2018-07-15 13:51:05 +01:00
|
|
|
DATA testdata
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
|
|
|
add_unit_test(ParseUtils
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES minecraft/ParseUtils_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
|
|
|
# the screenshots feature
|
|
|
|
set(SCREENSHOTS_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
screenshots/Screenshot.h
|
|
|
|
screenshots/ImgurUpload.h
|
|
|
|
screenshots/ImgurUpload.cpp
|
|
|
|
screenshots/ImgurAlbumCreation.h
|
|
|
|
screenshots/ImgurAlbumCreation.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(TASKS_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# Tasks
|
|
|
|
tasks/Task.h
|
|
|
|
tasks/Task.cpp
|
|
|
|
tasks/SequentialTask.h
|
|
|
|
tasks/SequentialTask.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(SETTINGS_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# Settings
|
|
|
|
settings/INIFile.cpp
|
|
|
|
settings/INIFile.h
|
|
|
|
settings/INISettingsObject.cpp
|
|
|
|
settings/INISettingsObject.h
|
|
|
|
settings/OverrideSetting.cpp
|
|
|
|
settings/OverrideSetting.h
|
|
|
|
settings/PassthroughSetting.cpp
|
|
|
|
settings/PassthroughSetting.h
|
|
|
|
settings/Setting.cpp
|
|
|
|
settings/Setting.h
|
|
|
|
settings/SettingsObject.cpp
|
|
|
|
settings/SettingsObject.h
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_unit_test(INIFile
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES settings/INIFile_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(JAVA_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# Java related code
|
|
|
|
java/launch/CheckJava.cpp
|
|
|
|
java/launch/CheckJava.h
|
|
|
|
java/JavaChecker.h
|
|
|
|
java/JavaChecker.cpp
|
|
|
|
java/JavaCheckerJob.h
|
|
|
|
java/JavaCheckerJob.cpp
|
|
|
|
java/JavaInstall.h
|
|
|
|
java/JavaInstall.cpp
|
|
|
|
java/JavaInstallList.h
|
|
|
|
java/JavaInstallList.cpp
|
|
|
|
java/JavaUtils.h
|
|
|
|
java/JavaUtils.cpp
|
|
|
|
java/JavaVersion.h
|
|
|
|
java/JavaVersion.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
add_unit_test(JavaVersion
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES java/JavaVersion_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(TRANSLATIONS_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
translations/TranslationsModel.h
|
|
|
|
translations/TranslationsModel.cpp
|
2019-01-02 00:41:07 +00:00
|
|
|
translations/POTranslator.h
|
|
|
|
translations/POTranslator.cpp
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(TOOLS_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# 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
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
2017-03-11 00:39:45 +00:00
|
|
|
set(META_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# Metadata sources
|
|
|
|
meta/JsonFormat.cpp
|
|
|
|
meta/JsonFormat.h
|
|
|
|
meta/BaseEntity.cpp
|
|
|
|
meta/BaseEntity.h
|
|
|
|
meta/VersionList.cpp
|
|
|
|
meta/VersionList.h
|
|
|
|
meta/Version.cpp
|
|
|
|
meta/Version.h
|
|
|
|
meta/Index.cpp
|
|
|
|
meta/Index.h
|
2015-02-09 00:51:14 +00:00
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
2018-03-16 22:33:58 +00:00
|
|
|
set(FTB_SOURCES
|
2019-11-03 22:48:12 +00:00
|
|
|
modplatform/legacy_ftb/PackFetchTask.h
|
|
|
|
modplatform/legacy_ftb/PackFetchTask.cpp
|
|
|
|
modplatform/legacy_ftb/PackInstallTask.h
|
|
|
|
modplatform/legacy_ftb/PackInstallTask.cpp
|
|
|
|
modplatform/legacy_ftb/PrivatePackManager.h
|
|
|
|
modplatform/legacy_ftb/PrivatePackManager.cpp
|
|
|
|
|
|
|
|
modplatform/legacy_ftb/PackHelpers.h
|
2018-03-16 22:33:58 +00:00
|
|
|
)
|
2018-02-28 18:42:30 +00:00
|
|
|
|
2018-03-16 22:33:58 +00:00
|
|
|
set(FLAME_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
# Flame
|
|
|
|
modplatform/flame/PackManifest.h
|
|
|
|
modplatform/flame/PackManifest.cpp
|
|
|
|
modplatform/flame/FileResolvingTask.h
|
|
|
|
modplatform/flame/FileResolvingTask.cpp
|
2018-02-28 18:42:30 +00:00
|
|
|
)
|
|
|
|
|
GH-3095 New FTB platform support
Models are based on the models from my go-modpacksch library.
License:
========
The MIT License (MIT)
Copyright (c) Jamie Mansfield <https://www.jamiemansfield.me/>
Copyright (c) contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
2020-06-07 16:14:47 +01:00
|
|
|
set(MODPACKSCH_SOURCES
|
2020-08-21 01:40:19 +01:00
|
|
|
modplatform/modpacksch/FTBPackInstallTask.h
|
|
|
|
modplatform/modpacksch/FTBPackInstallTask.cpp
|
|
|
|
modplatform/modpacksch/FTBPackManifest.h
|
|
|
|
modplatform/modpacksch/FTBPackManifest.cpp
|
GH-3095 New FTB platform support
Models are based on the models from my go-modpacksch library.
License:
========
The MIT License (MIT)
Copyright (c) Jamie Mansfield <https://www.jamiemansfield.me/>
Copyright (c) contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
2020-06-07 16:14:47 +01:00
|
|
|
)
|
|
|
|
|
2020-06-07 16:46:12 +01:00
|
|
|
set(TECHNIC_SOURCES
|
|
|
|
modplatform/technic/SingleZipPackInstallTask.h
|
|
|
|
modplatform/technic/SingleZipPackInstallTask.cpp
|
|
|
|
modplatform/technic/SolderPackInstallTask.h
|
|
|
|
modplatform/technic/SolderPackInstallTask.cpp
|
|
|
|
modplatform/technic/TechnicPackProcessor.h
|
|
|
|
modplatform/technic/TechnicPackProcessor.cpp
|
|
|
|
)
|
|
|
|
|
2017-03-11 00:39:45 +00:00
|
|
|
add_unit_test(Index
|
2018-07-15 13:51:05 +01:00
|
|
|
SOURCES meta/Index_test.cpp
|
|
|
|
LIBS MultiMC_logic
|
|
|
|
)
|
2016-04-14 00:23:54 +01:00
|
|
|
|
2015-02-09 00:51:14 +00:00
|
|
|
################################ COMPILE ################################
|
|
|
|
|
2015-09-28 19:53:46 +01:00
|
|
|
# we need zlib
|
|
|
|
find_package(ZLIB REQUIRED)
|
2015-08-18 01:25:24 +01:00
|
|
|
|
2016-04-14 00:23:54 +01:00
|
|
|
set(LOGIC_SOURCES
|
2018-07-15 13:51:05 +01:00
|
|
|
${CORE_SOURCES}
|
|
|
|
${PATHMATCHER_SOURCES}
|
|
|
|
${NET_SOURCES}
|
|
|
|
${LAUNCH_SOURCES}
|
|
|
|
${UPDATE_SOURCES}
|
|
|
|
${NOTIFICATIONS_SOURCES}
|
|
|
|
${NEWS_SOURCES}
|
|
|
|
${STATUS_SOURCES}
|
|
|
|
${MINECRAFT_SOURCES}
|
|
|
|
${SCREENSHOTS_SOURCES}
|
|
|
|
${TASKS_SOURCES}
|
|
|
|
${SETTINGS_SOURCES}
|
|
|
|
${JAVA_SOURCES}
|
|
|
|
${TRANSLATIONS_SOURCES}
|
|
|
|
${TOOLS_SOURCES}
|
|
|
|
${META_SOURCES}
|
|
|
|
${ICONS_SOURCES}
|
|
|
|
${FTB_SOURCES}
|
|
|
|
${FLAME_SOURCES}
|
GH-3095 New FTB platform support
Models are based on the models from my go-modpacksch library.
License:
========
The MIT License (MIT)
Copyright (c) Jamie Mansfield <https://www.jamiemansfield.me/>
Copyright (c) contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
2020-06-07 16:14:47 +01:00
|
|
|
${MODPACKSCH_SOURCES}
|
2020-06-07 16:46:12 +01:00
|
|
|
${TECHNIC_SOURCES}
|
2016-04-14 00:23:54 +01:00
|
|
|
)
|
|
|
|
|
2015-09-05 17:46:57 +01:00
|
|
|
add_library(MultiMC_logic SHARED ${LOGIC_SOURCES})
|
2015-09-28 19:53:46 +01:00
|
|
|
set_target_properties(MultiMC_logic PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1)
|
2015-09-23 00:21:19 +01:00
|
|
|
|
2015-09-05 17:46:57 +01:00
|
|
|
generate_export_header(MultiMC_logic)
|
2015-02-09 00:51:14 +00:00
|
|
|
|
|
|
|
# Link
|
2020-07-18 15:18:02 +01:00
|
|
|
target_link_libraries(MultiMC_logic systeminfo MultiMC_quazip MultiMC_classparser ${NBT_NAME} ${ZLIB_LIBRARIES} BuildConfig)
|
2018-06-01 15:20:33 +01:00
|
|
|
target_link_libraries(MultiMC_logic Qt5::Core Qt5::Xml Qt5::Network Qt5::Concurrent)
|
2015-09-05 17:46:57 +01:00
|
|
|
|
2015-09-28 19:53:46 +01:00
|
|
|
# Mark and export headers
|
|
|
|
target_include_directories(MultiMC_logic PUBLIC "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}" PRIVATE "${ZLIB_INCLUDE_DIRS}")
|
2018-01-22 03:28:07 +00:00
|
|
|
|
|
|
|
# Install it
|
2018-01-27 01:42:27 +00:00
|
|
|
install(
|
2018-07-15 13:51:05 +01:00
|
|
|
TARGETS MultiMC_logic
|
|
|
|
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
|
|
|
|
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
|
2018-01-27 01:42:27 +00:00
|
|
|
)
|