diff options
author | Petr Mrázek <peterix@gmail.com> | 2020-05-19 15:13:16 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2020-05-19 15:13:16 +0200 |
commit | e7f79c90764e03b3ba41af8352bdd167cd1db2b2 (patch) | |
tree | 8664088d5bd72377feb862c6a6b7f013ebe1008a /libraries/pack200/CMakeLists.txt | |
parent | 9eaa636908076d7b767e05e4dea4d579cfbbfd4b (diff) | |
download | PrismLauncher-e7f79c90764e03b3ba41af8352bdd167cd1db2b2.tar.gz PrismLauncher-e7f79c90764e03b3ba41af8352bdd167cd1db2b2.tar.bz2 PrismLauncher-e7f79c90764e03b3ba41af8352bdd167cd1db2b2.zip |
Remove some old forge hacks
Forge apparently removed all `.pack.xz` files without warning.
It broke a bunch of stuff, as always. But it also means we don't need some ugly code anymore.
This is removed:
- Support for 'forge-pack-xz' and the forge-specific file download compression.
- The pack200 library we no longer need.
This stays:
- The LZMA decompression library - we may still want to use it.
Diffstat (limited to 'libraries/pack200/CMakeLists.txt')
-rw-r--r-- | libraries/pack200/CMakeLists.txt | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/libraries/pack200/CMakeLists.txt b/libraries/pack200/CMakeLists.txt deleted file mode 100644 index 31eb0f73..00000000 --- a/libraries/pack200/CMakeLists.txt +++ /dev/null @@ -1,50 +0,0 @@ -cmake_minimum_required(VERSION 3.1) - -project(MultiMC_unpack200) - -option(PACK200_BUILD_BINARY "Build a tiny utility that decompresses pack200 streams" OFF) - -# Find ZLIB for quazip -find_package(ZLIB REQUIRED) - -set(PACK200_SRC - include/unpack200.h - src/bands.cpp - src/bands.h - src/bytes.cpp - src/bytes.h - src/coding.cpp - src/coding.h - src/constants.h - src/defines.h - src/unpack200.cpp - src/unpack.cpp - src/unpack.h - src/utils.cpp - src/utils.h - src/zip.cpp - src/zip.h -) - -if (Qt5_POSITION_INDEPENDENT_CODE) - SET(CMAKE_POSITION_INDEPENDENT_CODE ON) -endif() - -add_library(MultiMC_unpack200 SHARED ${PACK200_SRC}) -target_include_directories(MultiMC_unpack200 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_BINARY_DIR}" PRIVATE ${ZLIB_INCLUDE_DIRS} "${CMAKE_CURRENT_SOURCE_DIR}/src") -target_link_libraries(MultiMC_unpack200 ${ZLIB_LIBRARIES}) - -set_target_properties(MultiMC_unpack200 PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1) -generate_export_header(MultiMC_unpack200) - -# Install it -install( - TARGETS MultiMC_unpack200 - RUNTIME DESTINATION ${LIBRARY_DEST_DIR} - LIBRARY DESTINATION ${LIBRARY_DEST_DIR} -) - -if(PACK200_BUILD_BINARY) - add_executable(anti200 anti200.cpp) - target_link_libraries(anti200 MultiMC_unpack200) -endif() |