[vcpkg baseline][hunspell] Fix usage when building static (#19323)

This commit is contained in:
Jack·Boos·Yu 2021-08-05 11:05:18 +08:00 committed by GitHub
parent fa43004f0c
commit d2019e507c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 2 deletions

View File

@ -77,6 +77,19 @@ else()
endif()
vcpkg_copy_pdbs()
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
if (VCPKG_TARGET_IS_WINDOWS)
set(HUNSPELL_EXPORT_HDR "${CURRENT_PACKAGES_DIR}/include/hunvisapi.h")
else()
set(HUNSPELL_EXPORT_HDR "${CURRENT_PACKAGES_DIR}/include/hunspell/hunvisapi.h")
endif()
vcpkg_replace_string(
${HUNSPELL_EXPORT_HDR}
"#if defined(HUNSPELL_STATIC)"
"#if 1"
)
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

View File

@ -1,7 +1,7 @@
{
"name": "hunspell",
"version": "1.7.0",
"port-version": 4,
"port-version": 5,
"description": "The most popular spellchecking library.",
"homepage": "https://github.com/hunspell/hunspell",
"supports": "!((arm | uwp) & windows)",

View File

@ -2558,7 +2558,7 @@
},
"hunspell": {
"baseline": "1.7.0",
"port-version": 4
"port-version": 5
},
"hwloc": {
"baseline": "2.2.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2a0514dd8b3893b6d3a502fbf55156e9e971d6f7",
"version": "1.7.0",
"port-version": 5
},
{
"git-tree": "1441675cd83b048c9fe45d9230ab99c06421b121",
"version": "1.7.0",