aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-12-07 15:37:48 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-12-07 19:05:56 +0100
commit139f27ac595aedec002624febb2a4b858965b59b (patch)
treeb18728f70b6616b23a9adcfe31546135495973dd
parent8901719fd74ce8d8909608365e68f7354adaa254 (diff)
Documentation: Re-add the documentation copy step
It is still required to copy the examples, tutorials and extra documentation. Make it dependendant on extras as examples might be generated directly in a later change. This partially reverts 30e4777956513daeba0f55cef50de4881d0bb2f1. Pick-to: 6.2 Task-number: PYSIDE-1721 Change-Id: I81e3935fc8001a7a767a017081f4b1120bd3f8c5 Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--sources/pyside6/doc/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/pyside6/doc/CMakeLists.txt b/sources/pyside6/doc/CMakeLists.txt
index 48705aee4..ddb58d453 100644
--- a/sources/pyside6/doc/CMakeLists.txt
+++ b/sources/pyside6/doc/CMakeLists.txt
@@ -290,6 +290,13 @@ add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/rst/PySide6/QtCore/index.
WORKING_DIRECTORY ${${module}_SOURCE_DIR}
COMMENT "Running generator to generate documentation...")
+add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/rst/extras"
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/rst
+ COMMENT "Copying docs...")
+
+add_custom_target("doc_copy"
+ DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/rst/extras")
+
add_custom_target("docrsts"
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/rst/PySide6/QtCore/index.rst")
@@ -304,6 +311,7 @@ add_custom_target("licensedocrsts"
if (FULLDOCSBUILD)
add_dependencies(apidoc docrsts licensedocrsts)
add_dependencies(licensedocrsts docrsts)
+ add_dependencies(docrsts doc_copy qdoc)
endif()
#install files