-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libxml2] Update to v2.13.5 (#42528)
Co-authored-by: jim wang <[email protected]>
- Loading branch information
1 parent
3c5b9b4
commit 0e49ef4
Showing
10 changed files
with
96 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/rsvg-css.c b/rsvg-css.c | ||
index 5b359a206..4f59281b6 100644 | ||
--- a/rsvg-css.c | ||
+++ b/rsvg-css.c | ||
@@ -839,7 +839,7 @@ rsvg_css_parse_overflow (const char *str, gboolean * inherit) | ||
} | ||
|
||
static void | ||
-rsvg_xml_noerror (void *data, xmlErrorPtr error) | ||
+rsvg_xml_noerror (void *data, const xmlError *error) | ||
{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index f922d5ab..70466bc7 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -599,15 +599,5 @@ if(LIBXML2_WITH_PYTHON) | ||
endif() | ||
|
||
-install(FILES doc/xml2-config.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation) | ||
-install(FILES doc/xmlcatalog.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation) | ||
-install(FILES doc/xmllint.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation) | ||
-install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT documentation | ||
- PATTERN "Makefile.*" EXCLUDE | ||
- PATTERN "*.1" EXCLUDE | ||
- PATTERN "*.py" EXCLUDE | ||
- PATTERN "*.res" EXCLUDE | ||
- PATTERN "*.xml" EXCLUDE | ||
- PATTERN "*.xsl" EXCLUDE) | ||
|
||
configure_package_config_file( | ||
libxml2-config.cmake.cmake.in libxml2-config.cmake | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index f99fd368..38dcd377 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -586,17 +586,6 @@ if(LIBXML2_WITH_PYTHON) | ||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libxml2.py DESTINATION ${LIBXML2_PYTHON_INSTALL_DIR} COMPONENT runtime) | ||
endif() | ||
|
||
-install(FILES doc/xml2-config.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation) | ||
-install(FILES doc/xmlcatalog.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation) | ||
-install(FILES doc/xmllint.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation) | ||
-install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT documentation | ||
- PATTERN "Makefile.*" EXCLUDE | ||
- PATTERN "*.1" EXCLUDE | ||
- PATTERN "*.py" EXCLUDE | ||
- PATTERN "*.res" EXCLUDE | ||
- PATTERN "*.xml" EXCLUDE | ||
- PATTERN "*.xsl" EXCLUDE) | ||
- | ||
configure_package_config_file( | ||
libxml2-config.cmake.cmake.in libxml2-config.cmake | ||
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libxml2-${PROJECT_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,34 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 9701bdc..39e96ee 100644 | ||
index f99fd368..3246a42c 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -393,15 +393,15 @@ endif() | ||
if(LIBXML2_WITH_ICU) | ||
target_link_libraries(LibXml2 PRIVATE ICU::data ICU::i18n ICU::uc) | ||
if(WIN32) | ||
- set(ICU_LIBS "-licudt -licuin -licuuc") | ||
+ set(ICU_LIBS "icu-i18n") | ||
else() | ||
- set(ICU_LIBS "-licudata -licui18n -licuuc") | ||
+ set(ICU_LIBS "icu-i18n") | ||
endif() | ||
endif() | ||
|
||
if(LIBXML2_WITH_LZMA) | ||
target_link_libraries(LibXml2 PRIVATE LibLZMA::LibLZMA) | ||
- set(LZMA_LIBS "-llzma") | ||
+ set(LZMA_LIBS "liblzma") | ||
endif() | ||
|
||
if(LIBXML2_WITH_THREADS) | ||
@@ -411,7 +411,7 @@ endif() | ||
|
||
if(LIBXML2_WITH_ZLIB) | ||
target_link_libraries(LibXml2 PRIVATE ZLIB::ZLIB) | ||
- set(Z_LIBS "-lz") | ||
+ set(Z_LIBS "zlib") | ||
endif() | ||
|
||
set_target_properties( | ||
@@ -425,23 +425,9 @@ set_target_properties( | ||
SOVERSION ${LIBXML_MAJOR_VERSION} | ||
) | ||
|
||
+set(XML_LIB_NAME xml2) | ||
if(MSVC) | ||
- if(BUILD_SHARED_LIBS) | ||
- set_target_properties( | ||
- LibXml2 | ||
- PROPERTIES | ||
- DEBUG_POSTFIX d | ||
- ) | ||
- else() | ||
- set_target_properties( | ||
- LibXml2 | ||
- PROPERTIES | ||
- DEBUG_POSTFIX sd | ||
- MINSIZEREL_POSTFIX s | ||
- RELEASE_POSTFIX s | ||
- RELWITHDEBINFO_POSTFIX s | ||
- ) | ||
- endif() | ||
+ set(XML_LIB_NAME libxml2) | ||
endif() | ||
|
||
install(FILES ${LIBXML2_HDRS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libxml2/libxml COMPONENT development) | ||
@@ -586,7 +572,7 @@ endif() | ||
write_basic_package_version_file( | ||
${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-version.cmake | ||
VERSION ${PROJECT_VERSION} | ||
- COMPATIBILITY ExactVersion | ||
+ COMPATIBILITY SameMajorVersion | ||
@@ -438,7 +438,7 @@ set_target_properties( | ||
SOVERSION ${LIBXML_MAJOR_VERSION} | ||
) | ||
|
||
install( | ||
@@ -635,7 +621,7 @@ set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}") | ||
-if(MSVC) | ||
+if(0) | ||
if(BUILD_SHARED_LIBS) | ||
set_target_properties( | ||
LibXml2 | ||
@@ -653,7 +653,11 @@ list(JOIN XML_PRIVATE_LIBS " " XML_PRIVATE_LIBS) | ||
|
||
set(XML_INCLUDEDIR "-I\${includedir}/libxml2") | ||
set(XML_LIBDIR "-L\${libdir}") | ||
+if(NOT MSVC) | ||
set(XML_LIBS "-lxml2") | ||
+else() | ||
+set(XML_LIBS "-llibxml2") | ||
+endif() | ||
|
||
if(BUILD_SHARED_LIBS) | ||
set(XML_PC_PRIVATE ".private") | ||
@@ -679,7 +683,7 @@ set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}") | ||
configure_file(libxml-2.0.pc.in libxml-2.0.pc @ONLY) | ||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libxml-2.0.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig COMPONENT development) | ||
|
||
-if(WIN32) | ||
+if(1) | ||
set(prefix "\$(cd \"\$(dirname \"\$0\")\"; pwd -P)/..") | ||
set(prefix "\$(cd \"\$(dirname \"\$0\")\"; pwd -P)/..") | ||
endif() | ||
configure_file(xml2-config.in xml2-config @ONLY) | ||
diff --git a/libxml-2.0.pc.in b/libxml-2.0.pc.in | ||
index 88e3963b..0d1706c9 100644 | ||
--- a/libxml-2.0.pc.in | ||
+++ b/libxml-2.0.pc.in | ||
@@ -8,6 +8,7 @@ Name: libXML | ||
Version: @VERSION@ | ||
Description: libXML library version2. | ||
Requires: | ||
-Libs: -L${libdir} @XML_LIBS@ | ||
-Libs.private: @XML_PRIVATE_LIBS@ @LIBS@ | ||
+Requires.private: @ICU_LIBS@ @Z_LIBS@ @LZMA_LIBS@ | ||
+Libs: -L${libdir} -l@XML_LIB_NAME@ | ||
+Libs.private: @THREAD_LIBS@ @ICONV_LIBS@ @LIBM@ @WINSOCK_LIBS@ @LIBS@ | ||
Cflags: @XML_INCLUDEDIR@ @XML_CFLAGS@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters