mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:24:47 +08:00
[libxslt] Fix static usage (#28786)
This commit is contained in:
parent
6630a8b1bb
commit
a3d780b5e6
@ -61,12 +61,10 @@ vcpkg_copy_tools(TOOL_NAMES xsltproc AUTO_CLEAN)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
set(not_static 1)
|
||||
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()
|
||||
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/share")
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "libxslt",
|
||||
"version": "1.1.37",
|
||||
"port-version": 1,
|
||||
"description": "Libxslt is a XSLT library implemented in C for XSLT 1.0 and most of EXSLT",
|
||||
"homepage": "https://github.com/GNOME/libxslt",
|
||||
"license": null,
|
||||
|
@ -4558,7 +4558,7 @@
|
||||
},
|
||||
"libxslt": {
|
||||
"baseline": "1.1.37",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"libxt": {
|
||||
"baseline": "1.2.1",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "1e2ad3abc4c5d53f33c43f0a1b7aa09ca7e06dc1",
|
||||
"version": "1.1.37",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "9aebd365040f19a4060880bbf942aeda189e94ed",
|
||||
"version": "1.1.37",
|
||||
|
Loading…
Reference in New Issue
Block a user