[libxslt] Fix static usage (#28786)

This commit is contained in:
Kai Pastor 2023-01-09 06:38:28 +01:00 committed by GitHub
parent 6630a8b1bb
commit a3d780b5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -61,12 +61,10 @@ vcpkg_copy_tools(TOOL_NAMES xsltproc AUTO_CLEAN)
vcpkg_fixup_pkgconfig() vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
set(not_static 1)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
set(not_static 0) vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libxslt/xsltexports.h" "ifdef LIBXSLT_STATIC" "if 1")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libexslt/exsltexports.h" "ifdef LIBEXSLT_STATIC" "if 1")
endif() endif()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libxslt/xsltexports.h" "!defined(LIBXSLT_STATIC)" "${not_static}")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libexslt/exsltexports.h" "!defined(LIBEXSLT_STATIC)" "${not_static}")
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")

View File

@ -1,6 +1,7 @@
{ {
"name": "libxslt", "name": "libxslt",
"version": "1.1.37", "version": "1.1.37",
"port-version": 1,
"description": "Libxslt is a XSLT library implemented in C for XSLT 1.0 and most of EXSLT", "description": "Libxslt is a XSLT library implemented in C for XSLT 1.0 and most of EXSLT",
"homepage": "https://github.com/GNOME/libxslt", "homepage": "https://github.com/GNOME/libxslt",
"license": null, "license": null,

View File

@ -4558,7 +4558,7 @@
}, },
"libxslt": { "libxslt": {
"baseline": "1.1.37", "baseline": "1.1.37",
"port-version": 0 "port-version": 1
}, },
"libxt": { "libxt": {
"baseline": "1.2.1", "baseline": "1.2.1",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "1e2ad3abc4c5d53f33c43f0a1b7aa09ca7e06dc1",
"version": "1.1.37",
"port-version": 1
},
{ {
"git-tree": "9aebd365040f19a4060880bbf942aeda189e94ed", "git-tree": "9aebd365040f19a4060880bbf942aeda189e94ed",
"version": "1.1.37", "version": "1.1.37",