[xlnt] Fix Windows build (#49466)

This commit is contained in:
Lnkqwq 2026-01-19 16:04:38 +08:00 committed by GitHub
parent 5eb3832048
commit de51e6bfa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 7 deletions

View File

@ -1,10 +1,16 @@
# Download the xlnt source code
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xlnt-community/xlnt
REF "v${VERSION}"
SHA512 2d016416447b56c3902fc86c0441fd1d10cb86c3a542a2a38929e32f8f55470c33e4a3938f9c47b1a672ac4d6784a981c4738a61fd076622a2baa64dbc632810
HEAD_REF master
set(ARCHIVE_NAME "xlnt-${VERSION}.tar.gz")
set(ARCHIVE_SHA512 2d016416447b56c3902fc86c0441fd1d10cb86c3a542a2a38929e32f8f55470c33e4a3938f9c47b1a672ac4d6784a981c4738a61fd076622a2baa64dbc632810)
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/xlnt-community/xlnt/archive/v${VERSION}.tar.gz"
FILENAME "${ARCHIVE_NAME}"
SHA512 ${ARCHIVE_SHA512}
)
# Extract the source archive
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
PATCHES
fix-not-found-include.patch
fix-configure-dependencies.patch

View File

@ -5,6 +5,7 @@
"homepage": "https://github.com/xlnt-community/xlnt",
"documentation": "https://xlnt-community.gitbook.io/xlnt",
"license": "MIT AND BSD-3-Clause AND BSD-2-Clause",
"supports": "windows & linux & osx",
"dependencies": [
"fast-float",
"fmt",

View File

@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "c28a307d002509a5664301322ebc75024146b299",
"git-tree": "255750540ce4c37678c62e64f10fbb0e411f59bc",
"version": "1.6.1",
"port-version": 0
},