diff options
author | Marcus Müller <marcus@hostalia.de> | 2020-06-19 11:07:54 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-06-19 11:07:54 +0200 |
commit | e76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch) | |
tree | 1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /docs/doxygen/CMakeLists.txt | |
parent | 98348e37209aa7daeb96fe5ead815e5b083dc6da (diff) | |
parent | 39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (diff) |
Move from SWIG to Pybind11
Goodbye, and thanks for all the fish, SWIG.
Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
Diffstat (limited to 'docs/doxygen/CMakeLists.txt')
-rw-r--r-- | docs/doxygen/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/doxygen/CMakeLists.txt b/docs/doxygen/CMakeLists.txt index af3ee28397..09d18b0dad 100644 --- a/docs/doxygen/CMakeLists.txt +++ b/docs/doxygen/CMakeLists.txt @@ -42,4 +42,20 @@ add_custom_command( add_custom_target(doxygen_target ALL DEPENDS ${BUILT_DIRS}) +if(ENABLE_DOXYGEN) + add_custom_command( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/gnuradio_docstrings.json + COMMAND python3 ${CMAKE_SOURCE_DIR}/docs/doxygen/update_pydoc.py "scrape" + "--xml_path" ${CMAKE_BINARY_DIR}/docs/doxygen/xml + "--json_path" ${CMAKE_CURRENT_BINARY_DIR}/gnuradio_docstrings.json + COMMENT "Scraping generated documentation for docstrings ..." + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/update_pydoc.py doxygen_target) + + add_custom_target( + gnuradio_docstrings ALL + DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/gnuradio_docstrings.json + ) +endif(ENABLE_DOXYGEN) + + install(DIRECTORY ${BUILT_DIRS} DESTINATION ${GR_PKG_DOC_DIR}) |