2022-03-19 17:08:28 +00:00
|
|
|
cmake_minimum_required(VERSION 3.9.4)
|
2013-01-11 01:25:40 +00:00
|
|
|
project(launcher Java)
|
2021-12-19 18:11:08 +00:00
|
|
|
find_package(Java 1.7 REQUIRED COMPONENTS Development)
|
2013-01-11 01:25:40 +00:00
|
|
|
|
|
|
|
include(UseJava)
|
2022-10-18 15:37:04 +01:00
|
|
|
set(CMAKE_JAVA_JAR_ENTRY_POINT org.prismlauncher.EntryPoint)
|
2022-11-04 10:31:31 +00:00
|
|
|
set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7)
|
2013-01-11 01:25:40 +00:00
|
|
|
|
|
|
|
set(SRC
|
2022-10-18 15:37:04 +01:00
|
|
|
org/prismlauncher/EntryPoint.java
|
2022-10-28 00:52:09 +01:00
|
|
|
org/prismlauncher/launcher/Launcher.java
|
|
|
|
org/prismlauncher/launcher/impl/AbstractLauncher.java
|
|
|
|
org/prismlauncher/launcher/impl/StandardLauncher.java
|
2022-10-18 15:37:04 +01:00
|
|
|
org/prismlauncher/exception/ParameterNotFoundException.java
|
|
|
|
org/prismlauncher/exception/ParseException.java
|
|
|
|
org/prismlauncher/utils/Parameters.java
|
2022-11-01 16:27:04 +00:00
|
|
|
org/prismlauncher/utils/ReflectionUtils.java
|
2022-11-05 17:14:12 +00:00
|
|
|
org/prismlauncher/utils/logging/Level.java
|
|
|
|
org/prismlauncher/utils/logging/Log.java
|
2023-01-06 09:21:09 +00:00
|
|
|
org/prismlauncher/legacy/LegacyProxy.java
|
2014-01-09 00:22:34 +00:00
|
|
|
)
|
2023-01-06 09:21:09 +00:00
|
|
|
|
|
|
|
set(LEGACY_SRC
|
|
|
|
legacy/org/prismlauncher/legacy/LegacyFrame.java
|
|
|
|
legacy/org/prismlauncher/legacy/LegacyLauncher.java
|
|
|
|
legacy/org/prismlauncher/legacy/fix/online/Handler.java
|
|
|
|
legacy/org/prismlauncher/legacy/fix/online/OnlineFixes.java
|
|
|
|
legacy/org/prismlauncher/legacy/fix/online/SkinFix.java
|
|
|
|
legacy/org/prismlauncher/legacy/utils/Base64.java
|
|
|
|
legacy/org/prismlauncher/legacy/utils/api/MojangApi.java
|
|
|
|
legacy/org/prismlauncher/legacy/utils/api/Texture.java
|
2023-01-09 10:48:46 +00:00
|
|
|
legacy/org/prismlauncher/legacy/utils/json/JsonParseException.java
|
|
|
|
legacy/org/prismlauncher/legacy/utils/json/JsonParser.java
|
2023-01-06 09:21:09 +00:00
|
|
|
legacy/org/prismlauncher/legacy/utils/url/CustomUrlConnection.java
|
|
|
|
legacy/org/prismlauncher/legacy/utils/url/UrlUtils.java
|
|
|
|
legacy/net/minecraft/Launcher.java
|
|
|
|
legacy/org/prismlauncher/legacy/LegacyProxy.java
|
|
|
|
)
|
|
|
|
|
2014-01-09 00:22:34 +00:00
|
|
|
add_jar(NewLaunch ${SRC})
|
2023-01-06 09:21:09 +00:00
|
|
|
add_jar(NewLaunchLegacy ${LEGACY_SRC} INCLUDE_JARS NewLaunch)
|
2018-01-22 03:28:07 +00:00
|
|
|
install_jar(NewLaunch "${JARS_DEST_DIR}")
|
2023-01-06 09:21:09 +00:00
|
|
|
install_jar(NewLaunchLegacy "${JARS_DEST_DIR}")
|