[xerces-c] fix library name in pkg-config file under windows (#23535)

* [xerces-c] fix library name in pkg-config file under windows

* [xerces-c] add license
This commit is contained in:
maz-1 2022-03-16 06:04:53 +08:00 committed by GitHub
parent b0d88dd9ff
commit c21f961c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 4 deletions

View File

@ -56,7 +56,7 @@ configure_file(
${CURRENT_PACKAGES_DIR}/share/xercesc
@ONLY
)
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
@ -66,3 +66,13 @@ file(REMOVE_RECURSE
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
vcpkg_fixup_pkgconfig()
if (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
set(pc_file_release "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/xerces-c.pc")
set(pc_file_debug "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/xerces-c.pc")
if(EXISTS "${pc_file_release}")
vcpkg_replace_string("${pc_file_release}" "-lxerces-c" "-lxerces-c_3")
endif()
if(EXISTS "${pc_file_debug}")
vcpkg_replace_string("${pc_file_debug}" "-lxerces-c" "-lxerces-c_3D")
endif()
endif()

View File

@ -1,9 +1,10 @@
{
"name": "xerces-c",
"version-string": "3.2.3",
"port-version": 3,
"version": "3.2.3",
"port-version": 4,
"description": "Xerces-C++ is a XML parser, for parsing, generating, manipulating, and validating XML documents using the DOM, SAX, and SAX2 APIs.",
"homepage": "https://github.com/apache/xerces-c",
"license": "Apache-2.0",
"features": {
"icu": {
"description": "ICU support",

View File

@ -7474,7 +7474,7 @@
},
"xerces-c": {
"baseline": "3.2.3",
"port-version": 3
"port-version": 4
},
"xeus": {
"baseline": "0.24.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6e0b3743b100fd4c22291b3c55ff73aac8ae188c",
"version": "3.2.3",
"port-version": 4
},
{
"git-tree": "b920ebcb559e728e512c42e7e27ce5db58aba440",
"version-string": "3.2.3",