mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 09:13:06 +08:00
[zstd] fix tools feature (#34634)
This commit is contained in:
parent
68cf5f59b0
commit
30650503fc
@ -24,10 +24,13 @@ vcpkg_cmake_configure(
|
||||
-DZSTD_BUILD_SHARED=${ZSTD_BUILD_SHARED}
|
||||
-DZSTD_BUILD_STATIC=${ZSTD_BUILD_STATIC}
|
||||
-DZSTD_LEGACY_SUPPORT=1
|
||||
-DZSTD_BUILD_PROGRAMS=${ZSTD_BUILD_PROGRAMS}
|
||||
-DZSTD_BUILD_TESTS=0
|
||||
-DZSTD_BUILD_CONTRIB=0
|
||||
-DZSTD_MULTITHREAD_SUPPORT=1
|
||||
OPTIONS_RELEASE
|
||||
-DZSTD_BUILD_PROGRAMS=${ZSTD_BUILD_PROGRAMS}
|
||||
OPTIONS_DEBUG
|
||||
-DZSTD_BUILD_PROGRAMS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
@ -51,6 +54,10 @@ if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND ZSTD_BUILD_PROGRAMS)
|
||||
vcpkg_copy_tools(TOOL_NAMES zstd AUTO_CLEAN)
|
||||
endif()
|
||||
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
vcpkg_install_copyright(
|
||||
COMMENT "ZSTD is dual licensed under BSD and GPLv2."
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "zstd",
|
||||
"version": "1.5.5",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Zstandard - Fast real-time compression algorithm",
|
||||
"homepage": "https://facebook.github.io/zstd/",
|
||||
"license": "BSD-3-Clause OR GPL-2.0-only",
|
||||
@ -18,7 +18,7 @@
|
||||
"features": {
|
||||
"tools": {
|
||||
"description": "Build zstd binary",
|
||||
"supports": "!uwp"
|
||||
"supports": "!uwp & static"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9274,7 +9274,7 @@
|
||||
},
|
||||
"zstd": {
|
||||
"baseline": "1.5.5",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"zstr": {
|
||||
"baseline": "1.0.7",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "259dc461801ecb946995e13fd3d94b1381d02441",
|
||||
"version": "1.5.5",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "44fdd2e1576b62ee75cdaab5ce74452ed08f84ce",
|
||||
"version": "1.5.5",
|
||||
|
Loading…
Reference in New Issue
Block a user