aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-08-23 14:27:15 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:47 -0300
commitc31c7c60da668bc690dd0fde3659f64c7d5c5b9c (patch)
treeba18abb6fdbf37da4f03da478085202b0058af6e /doc
parent8492b69d3302dcf9bbe25fbd7f4ae2654fbbafae (diff)
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 05584eb32..61eeb09e5 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