[casclib] Update to 2024-06-05 (#39139)

This commit is contained in:
Shauren 2024-06-07 11:52:01 +02:00 committed by GitHub
parent 960d1bd0a3
commit 47dcaa2db6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 20 additions and 29 deletions

View File

@ -1,20 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,8 +51,15 @@ set(SRC_FILES
src/CascRootFile_WoW.cpp
)
+if(WIN32)
+ set(SRC_FILES ${SRC_FILES}
+ src/DllMain.c
+ src/DllMain.def
+ )
+endif()
+
set(LINK_LIBS)
-find_package(ZLIB)
+find_package(ZLIB REQUIRED)
if (ZLIB_FOUND)
set(LINK_LIBS ${LINK_LIBS} ZLIB::ZLIB)
add_definitions(-DCASC_USE_SYSTEM_ZLIB)

View File

@ -1,22 +1,29 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ladislav-zezula/CascLib
REF 07bfe85fd0804cba49f072819af716274d82b855
SHA512 b333fe6318aa95629aa67613287ac71b1931c6443985e7e52412066d769f7996bffca1c19e890851eba976f572c7a11f14a8ff5fb95433577e1c9af8de0f34af
REF 1623348517352ff0d6364d47533c0d7f118b46e1
SHA512 1b6dd77a399ff21a278d1ac68efa1417f2a9472b241401d3f6cb8f01ea702b32b4296012bb71ae62a932f9b0fa2b6d3035befe6f3ba0d567e85ac747c503b07c
HEAD_REF master
PATCHES
fix-shared-windows-builds.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" CASC_BUILD_SHARED_LIB)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CASC_BUILD_STATIC_LIB)
set(CASC_UNICODE OFF)
if(VCPKG_TARGET_IS_WINDOWS)
message(STATUS "This version of CascLib is built in ASCII mode. To switch to UNICODE version, create an overlay port of this with CASC_UNICODE set to ON.")
message(STATUS "This recipe is at ${CMAKE_CURRENT_LIST_DIR}")
message(STATUS "See the overlay ports documentation at https://github.com/microsoft/vcpkg/blob/master/docs/specifications/ports-overlay.md")
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCMAKE_REQUIRE_FIND_PACKAGE_ZLIB=ON
-DCASC_BUILD_SHARED_LIB=${CASC_BUILD_SHARED_LIB}
-DCASC_BUILD_STATIC_LIB=${CASC_BUILD_STATIC_LIB}
-DCASC_UNICODE=ON
-DCASC_UNICODE=${CASC_UNICODE}
)
vcpkg_cmake_install()

View File

@ -1,7 +1,6 @@
{
"name": "casclib",
"version-date": "2021-11-16",
"port-version": 1,
"version-date": "2024-06-05",
"description": "An open-source implementation of library for reading CASC storage from Blizzard games since 2014",
"homepage": "http://www.zezula.net/en/casc/casclib.html",
"dependencies": [

View File

@ -1497,8 +1497,8 @@
"port-version": 5
},
"casclib": {
"baseline": "2021-11-16",
"port-version": 1
"baseline": "2024-06-05",
"port-version": 0
},
"catch": {
"baseline": "alias",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a60d5ee653ba75af85f76d88f2540c61bfc7741e",
"version-date": "2024-06-05",
"port-version": 0
},
{
"git-tree": "3bb7640c26eb7b742883277db2325a69c6c790aa",
"version-date": "2021-11-16",