mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 04:21:38 +08:00
[vcpkg baseline][hunspell] Fix usage when building static (#19323)
This commit is contained in:
parent
fa43004f0c
commit
d2019e507c
@ -77,6 +77,19 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
vcpkg_copy_pdbs()
|
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/include")
|
||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "hunspell",
|
"name": "hunspell",
|
||||||
"version": "1.7.0",
|
"version": "1.7.0",
|
||||||
"port-version": 4,
|
"port-version": 5,
|
||||||
"description": "The most popular spellchecking library.",
|
"description": "The most popular spellchecking library.",
|
||||||
"homepage": "https://github.com/hunspell/hunspell",
|
"homepage": "https://github.com/hunspell/hunspell",
|
||||||
"supports": "!((arm | uwp) & windows)",
|
"supports": "!((arm | uwp) & windows)",
|
||||||
|
@ -2558,7 +2558,7 @@
|
|||||||
},
|
},
|
||||||
"hunspell": {
|
"hunspell": {
|
||||||
"baseline": "1.7.0",
|
"baseline": "1.7.0",
|
||||||
"port-version": 4
|
"port-version": 5
|
||||||
},
|
},
|
||||||
"hwloc": {
|
"hwloc": {
|
||||||
"baseline": "2.2.0",
|
"baseline": "2.2.0",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "2a0514dd8b3893b6d3a502fbf55156e9e971d6f7",
|
||||||
|
"version": "1.7.0",
|
||||||
|
"port-version": 5
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "1441675cd83b048c9fe45d9230ab99c06421b121",
|
"git-tree": "1441675cd83b048c9fe45d9230ab99c06421b121",
|
||||||
"version": "1.7.0",
|
"version": "1.7.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user