summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-08-23 14:27:15 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-08-23 17:40:55 -0300
commit2fe55feabd4f98b585f21f6f49e46af10035be84 (patch)
tree76a9174483066d482ea1d95725bb7bbc1a6df0c2 /doc
parent703b4608157ccd3e65c3188d92ff8f514caf5ad1 (diff)
downloadpyside-2fe55feabd4f98b585f21f6f49e46af10035be84.tar.gz
pyside-2fe55feabd4f98b585f21f6f49e46af10035be84.tar.xz
pyside-2fe55feabd4f98b585f21f6f49e46af10035be84.zip
Implement support to pyside debug mode on documentation generator.
Reviewed by: Hugo Parente <hugo.lima@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 05584eb..61eeb09 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -8,9 +8,14 @@ add_custom_target(qdoc3
COMMENT "Running qdoc3 against Qt source code..."
SOURCE "pyside.qdocconf")
+
+find_program(SPHINX_BUILD NAMES sphinx-build)
+if (${SPHINX_BUILD} MATCHES "SPHINX_BUILD-NOTFOUND")
+ message(FATAL_ERROR "sphinx-build command not found.")
+endif()
add_custom_target(apidoc
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/rst
- COMMAND sphinx-build -b html ${CMAKE_CURRENT_BINARY_DIR}/rst html
+ COMMAND ${SHIBOKEN_PYTHON_INTERPRETER} ${SPHINX_BUILD} -b html ${CMAKE_CURRENT_BINARY_DIR}/rst html
)
# create conf.py based on conf.py.in