mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:19:01 +08:00
[7-zip] Only build Windows sources for Windows (#41721)
This commit is contained in:
parent
98429dfd6a
commit
41626fd77b
@ -149,16 +149,6 @@ target_sources(7zip PRIVATE
|
|||||||
CPP/Common/XzCrc64Reg.cpp
|
CPP/Common/XzCrc64Reg.cpp
|
||||||
CPP/Common/Xxh64Reg.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/CreateCoder.cpp
|
||||||
CPP/7zip/Common/CWrappers.cpp
|
CPP/7zip/Common/CWrappers.cpp
|
||||||
CPP/7zip/Common/InBuffer.cpp
|
CPP/7zip/Common/InBuffer.cpp
|
||||||
@ -302,6 +292,20 @@ target_sources(7zip PRIVATE
|
|||||||
C/Util/LzmaLib/LzmaLib.def
|
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
|
# 7zCrcOpt
|
||||||
if(VCPKG_TARGET_IS_WINDOWS)
|
if(VCPKG_TARGET_IS_WINDOWS)
|
||||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "7zip",
|
"name": "7zip",
|
||||||
"version-string": "24.08",
|
"version-string": "24.08",
|
||||||
|
"port-version": 1,
|
||||||
"description": "Library for archiving file with a high compression ratio.",
|
"description": "Library for archiving file with a high compression ratio.",
|
||||||
"homepage": "https://www.7-zip.org",
|
"homepage": "https://www.7-zip.org",
|
||||||
"license": "LGPL-2.1-or-later",
|
"license": "LGPL-2.1-or-later",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "36bee800b8aadc1908cc02cc1561dee40a3b43f6",
|
||||||
|
"version-string": "24.08",
|
||||||
|
"port-version": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "f8021d6c213215f0eb9e99500d348291ac5898c5",
|
"git-tree": "f8021d6c213215f0eb9e99500d348291ac5898c5",
|
||||||
"version-string": "24.08",
|
"version-string": "24.08",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
},
|
},
|
||||||
"7zip": {
|
"7zip": {
|
||||||
"baseline": "24.08",
|
"baseline": "24.08",
|
||||||
"port-version": 0
|
"port-version": 1
|
||||||
},
|
},
|
||||||
"ableton": {
|
"ableton": {
|
||||||
"baseline": "3.0.6",
|
"baseline": "3.0.6",
|
||||||
|
Loading…
Reference in New Issue
Block a user