From 0f23ee767198999f8feac7d4053a78dbaec24409 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Fri, 4 Jun 2010 21:36:35 +0000 Subject: External DocBook, step 1: remove embedded XML DTDs This commit removes the embedded copy of the currently used XML DTDs (4.2), and uses the external DTD instead. If you compile and update your existing installation, you can safely remove the existing $KDEDIR/share/kde4/apps/ksgmltools2/docbook/xml-dtd-4.2. The code does not use catalog.xml anymore, as our custom DTD (kdex.dtd) includes (or seems to include) all the needed files directly or indirectly. As kdex.dtd is generated dynamically (it depends on the path to system-installed DTD), in order to generate the documentation during the bootstrap phase (kdelibs documentation) the content of customization/ needs to be copied in the builddir and this copy (from the builddir itself) is used for the generation. svn path=/trunk/KDE/kdelibs/; revision=1134669 --- modules/KDE4Macros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index bf130ab8..4a5c955c 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -282,7 +282,7 @@ macro (KDE4_CREATE_HANDBOOK _docbook) #Bootstrap if (_kdeBootStrapping) set(_ssheet ${CMAKE_SOURCE_DIR}/kdoctools/customization/kde-chunk.xsl) - set(_bootstrapOption "--srcdir=${CMAKE_SOURCE_DIR}/kdoctools/") + set(_bootstrapOption "--srcdir=${CMAKE_BINARY_DIR}/kdoctools/") else (_kdeBootStrapping) set(_ssheet ${KDE4_DATA_INSTALL_DIR}/ksgmltools2/customization/kde-chunk.xsl) set(_bootstrapOption) @@ -361,7 +361,7 @@ macro (KDE4_CREATE_MANPAGE _docbook _section) #Bootstrap if (_kdeBootStrapping) set(_ssheet "${CMAKE_SOURCE_DIR}/kdoctools/docbook/xsl/manpages/docbook.xsl") - set(_bootstrapOption "--srcdir=${CMAKE_SOURCE_DIR}/kdoctools/") + set(_bootstrapOption "--srcdir=${CMAKE_BINARY_DIR}/kdoctools/") else (_kdeBootStrapping) set(_ssheet "${KDE4_DATA_INSTALL_DIR}/ksgmltools2/docbook/xsl/manpages/docbook.xsl") set(_bootstrapOption) -- cgit v1.2.1