Skip to content

Commit

Permalink
Merge pull request #73 from phunkyfish/add-arm64-windows-zlib
Browse files Browse the repository at this point in the history
Add arm64 windows zlib for msvc
  • Loading branch information
chewitt authored Aug 18, 2024
2 parents 0323cd5 + 34cd17a commit 888fe51
Show file tree
Hide file tree
Showing 18 changed files with 2,493 additions and 4 deletions.
14 changes: 10 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@ find_package(QT NAMES Qt6 REQUIRED COMPONENTS ${qtComponents})
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS ${qtComponents})

if(MSVC_TOOLSET_VERSION EQUAL 142)
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2019/zlib")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64")
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2019-arm64/zlib")
else()
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2019-x64/zlib")
endif()
elseif(MSVC_TOOLSET_VERSION EQUAL 143)
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2022/zlib")
elseif(MINGW)
list(APPEND CMAKE_PREFIX_PATH "windows/mingw64/zlib")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "ARM64")
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2022-arm64/zlib")
else()
list(APPEND CMAKE_PREFIX_PATH "windows/msvc2022-x64/zlib")
endif()
endif()
find_package(ZLIB REQUIRED)

Expand Down
Binary file removed windows/mingw64/lib/libz.a
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added windows/msvc2019-arm64/zlib/lib/zlibstatic.lib
Binary file not shown.
Binary file added windows/msvc2019-arm64/zlib/lib/zlibstaticd.lib
Binary file not shown.
Loading

0 comments on commit 888fe51

Please sign in to comment.