mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 14:18:07 +00:00
Cleans CMakeLists in sphinx directory
This commit is contained in:
parent
d36a324b7b
commit
bf1334a74a
1 changed files with 1 additions and 18 deletions
|
|
@ -21,24 +21,6 @@
|
|||
############################################################################
|
||||
|
||||
if (ENABLE_SPHINX_DOC)
|
||||
set(GENERATED_LANGUAGES c cpp csharp)
|
||||
set(DOCUMENTATION_DIRS )
|
||||
set(GENERATED_SPHINX_SOURCES )
|
||||
foreach(LANGUAGE_ ${GENERATED_LANGUAGES})
|
||||
set(DOCUMENTATION_DIR ${CMAKE_CURRENT_BINARY_DIR}/source/${LANGUAGE_})
|
||||
list(APPEND DOCUMENTATION_DIRS ${DOCUMENTATION_DIR})
|
||||
list(APPEND GENERATED_SPHINX_SOURCES ${DOCUMENTATION_DIR}/index.rst)
|
||||
endforeach(LANGUAGE_)
|
||||
set(PYTHON_SCRIPTS gendoc.py
|
||||
${linphone_SOURCE_DIR}/tools/abstractapi.py
|
||||
${linphone_SOURCE_DIR}/tools/genapixml.py
|
||||
${linphone_SOURCE_DIR}/tools/metadoc.py
|
||||
${linphone_SOURCE_DIR}/tools/metaname.py
|
||||
)
|
||||
set(MUSTACHE_TEMPLATES class_page.mustache
|
||||
enum_page.mustache
|
||||
index_page.mustache
|
||||
)
|
||||
set(STATIC_DOCUMENTATION_FILES
|
||||
guides/authentication.rst
|
||||
guides/buddy_list.rst
|
||||
|
|
@ -67,6 +49,7 @@ if (ENABLE_SPHINX_DOC)
|
|||
foreach(source ${LINPHONE_C_EXAMPLES_SOURCE})
|
||||
configure_file(${source} source/samples/ COPYONLY)
|
||||
endforeach(source)
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/source/_static)
|
||||
add_custom_target(sphinx-doc ALL ${PYTHON_EXECUTABLE} '${CMAKE_CURRENT_SOURCE_DIR}/gendoc.py' '${LINPHONE_DOXYGEN_XML_DIR}' -o 'source'
|
||||
COMMAND ${PYTHON_EXECUTABLE} -msphinx -M html 'source' 'build'
|
||||
DEPENDS linphone-doc)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue