[7-zip] Only build Windows sources for Windows (#41721)

This commit is contained in:
Dan Albert 2024-10-23 19:57:08 -07:00 committed by GitHub
parent 98429dfd6a
commit 41626fd77b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 11 deletions

View File

@ -149,16 +149,6 @@ target_sources(7zip PRIVATE
CPP/Common/XzCrc64Reg.cpp
CPP/Common/Xxh64Reg.cpp
CPP/Windows/FileDir.cpp
CPP/Windows/FileFind.cpp
CPP/Windows/FileIO.cpp
CPP/Windows/FileName.cpp
CPP/Windows/PropVariant.cpp
CPP/Windows/PropVariantUtils.cpp
CPP/Windows/Synchronization.cpp
CPP/Windows/System.cpp
CPP/Windows/TimeUtils.cpp
CPP/7zip/Common/CreateCoder.cpp
CPP/7zip/Common/CWrappers.cpp
CPP/7zip/Common/InBuffer.cpp
@ -302,6 +292,20 @@ target_sources(7zip PRIVATE
C/Util/LzmaLib/LzmaLib.def
)
if(WIN32)
target_sources(7zip PRIVATE
CPP/Windows/FileDir.cpp
CPP/Windows/FileFind.cpp
CPP/Windows/FileIO.cpp
CPP/Windows/FileName.cpp
CPP/Windows/PropVariant.cpp
CPP/Windows/PropVariantUtils.cpp
CPP/Windows/Synchronization.cpp
CPP/Windows/System.cpp
CPP/Windows/TimeUtils.cpp
)
endif()
# 7zCrcOpt
if(VCPKG_TARGET_IS_WINDOWS)
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")

View File

@ -1,6 +1,7 @@
{
"name": "7zip",
"version-string": "24.08",
"port-version": 1,
"description": "Library for archiving file with a high compression ratio.",
"homepage": "https://www.7-zip.org",
"license": "LGPL-2.1-or-later",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "36bee800b8aadc1908cc02cc1561dee40a3b43f6",
"version-string": "24.08",
"port-version": 1
},
{
"git-tree": "f8021d6c213215f0eb9e99500d348291ac5898c5",
"version-string": "24.08",

View File

@ -6,7 +6,7 @@
},
"7zip": {
"baseline": "24.08",
"port-version": 0
"port-version": 1
},
"ableton": {
"baseline": "3.0.6",