diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-04-18 12:41:14 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-04-25 11:53:15 +0000 |
commit | 21077bec48f2ca16ec0fed25e0c0af62317606d9 (patch) | |
tree | 8f3e8e6c636ce96c7385745a8b15959c01de426e /sources/shiboken2/CMakeLists.txt | |
parent | e336872828de86146059de0f62ed06afaaf64d8d (diff) |
shiboken2: Enable documentation generation with libxml2/libxslt
As QtXmlPatterns is deprecated in Qt 5.14, the documentation build
needs to be changed to work with libxml2/libxslt exclusively.
Split the XML functionality into separate files for libxslt and Qt and
provide an interface for XPATH queries and XSLT transformations in
xmlutils.h.
Adapt testmodifydocumentation to work on temporary files as libxslt
cannot handle Qt resources.
Change-Id: I923f5b2e7c1d2511f15788e4b80c7721daeb2bc3
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/CMakeLists.txt')
-rw-r--r-- | sources/shiboken2/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/shiboken2/CMakeLists.txt b/sources/shiboken2/CMakeLists.txt index 12429c657..950aa6215 100644 --- a/sources/shiboken2/CMakeLists.txt +++ b/sources/shiboken2/CMakeLists.txt @@ -24,7 +24,12 @@ if(BUILD_TESTS) find_package(Qt5Test 5.12 REQUIRED) endif() -if(NOT Qt5XmlPatterns_FOUND OR NOT Qt5Xml_FOUND) +set(HAS_LIBXSLT 0) +if (LIBXSLT_FOUND AND LIBXML2_FOUND) + set(HAS_LIBXSLT 1) +endif() + +if(NOT Qt5XmlPatterns_FOUND AND NOT HAS_LIBXSLT) set(DISABLE_DOCSTRINGS TRUE) message(WARNING "Documentation will not be built due to missing dependency (no Qt5XmlPatterns found).") |