[zxc] new port (#50015)

This commit is contained in:
Bertrand Lebonnois 2026-02-18 19:50:10 +01:00 committed by GitHub
parent c7b29f3c42
commit f886e47425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 62 additions and 0 deletions

31
ports/zxc/portfile.cmake Normal file
View File

@ -0,0 +1,31 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO hellobertrand/zxc
REF v${VERSION}
SHA512 012cc905268b1eaf04adff5615e796b2d130a5c4d6b7cb356195b0e94a34a3e7ad360d56bb8debdfdb8001a0321d77b5b499611463ec21047ca74f25ae022459
HEAD_REF main
)
# Remove vendored rapidhash to use the rapidhash port instead
file(REMOVE "${SOURCE_PATH}/src/lib/vendors/rapidhash.h")
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DZXC_NATIVE_ARCH=OFF
-DZXC_ENABLE_LTO=OFF
-DZXC_BUILD_CLI=OFF
-DZXC_BUILD_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/zxc)
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

18
ports/zxc/vcpkg.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "zxc",
"version": "0.7.3",
"description": "High-performance asymmetric lossless compression library",
"homepage": "https://github.com/hellobertrand/zxc",
"license": "BSD-3-Clause AND MIT",
"dependencies": [
"rapidhash",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -11068,6 +11068,10 @@
"baseline": "0.1.2",
"port-version": 0
},
"zxc": {
"baseline": "0.7.3",
"port-version": 0
},
"zycore": {
"baseline": "1.5.2",
"port-version": 0

9
versions/z-/zxc.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "a099a90d13c01059b3ad62b6e2df180a2320091f",
"version": "0.7.3",
"port-version": 0
}
]
}